Created
July 24, 2014 03:34
-
-
Save axper/964379d503a001b5c5be to your computer and use it in GitHub Desktop.
tex report template in armenian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[a4paper,10pt]{article} | |
\usepackage{polyglossia} | |
\newfontfamily{\armenianfont}{DejaVu Sans} | |
\newfontfamily{\armenianfonttt}{DejaVu Sans Mono} | |
\newfontfamily{\armenianfontsc}{DejaVu Sans Mono} | |
\setmainlanguage{armenian} | |
\usepackage{datetime} | |
% Report number | |
\newcounter{reportid} | |
\newwrite\writecompilation | |
\newread\readcompilation | |
\openin\readcompilation=report_id.txt | |
\ifeof\readcompilation | |
% no file yet | |
\setcounter{reportid}{1}% | |
\else | |
\read\readcompilation to \temp | |
\setcounter{reportid}{\temp}% | |
\stepcounter{reportid}% | |
\fi | |
\closein\readcompilation | |
\immediate\openout\writecompilation=report_id.txt | |
\immediate\write\writecompilation{\thereportid} | |
\immediate\closeout\writecompilation | |
\renewcommand\datearmenian{\def\today{\number\day~% | |
\ifcase | |
\month | |
\or Հունվար | |
\or Փետրվար | |
\or Մարտ | |
\or Ապրիլ | |
\or Մայիս | |
\or Հունիս | |
\or Հուլիս | |
\or Օգոստոս | |
\or Սեպտեմբեր | |
\or Հոկտեմբեր | |
\or Նոյեմբեր | |
\or Դեկտեմբեր | |
\fi\space | |
\number\year}} | |
\datearmenian | |
\title{Արձանագրություն \#\thereportid} | |
\author{Բ. Վարդանյան} | |
\date{\today, \currenttime} | |
\begin{document} | |
\maketitle | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment