Skip to content

Instantly share code, notes, and snippets.

@axper
Created July 24, 2014 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axper/964379d503a001b5c5be to your computer and use it in GitHub Desktop.
Save axper/964379d503a001b5c5be to your computer and use it in GitHub Desktop.
tex report template in armenian
\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