Skip to content

Instantly share code, notes, and snippets.

@alex-pat
Created October 5, 2018 11:45
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 alex-pat/2b549059ff19926125e5d6a1d46e9469 to your computer and use it in GitHub Desktop.
Save alex-pat/2b549059ff19926125e5d6a1d46e9469 to your computer and use it in GitHub Desktop.
cyrtex
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true]{russian}
\setotherlanguage{english}
\setmonofont{Courier New}
\newfontfamily\cyrillicfonttt{Courier New}[Script = Cyrillic]
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Arial}
\newfontfamily\cyrillicfont{Times New Roman}[Script = Cyrillic]
\setsansfont{Times New Roman}
\newfontfamily\cyrillicfontsf{Arial}[Script = Cyrillic]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment