Advertisement
Hirwanto

polyglot

Mar 30th, 2015
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.53 KB | None | 0 0
  1. \documentclass[12pt,a4paper]{article}
  2.  
  3. \usepackage{polyglossia}
  4. \setmainlanguage[numerals=maghrib]{arabic}
  5. \setotherlanguage{english}
  6.  
  7. \newfontfamily\arabicfont[Script=Arabic,Scale=1.2,AutoFakeSlant=-0.02]{Traditional Arabic}
  8. \setmonofont{DejaVu Sans Mono}
  9. \let\arabicfonttt\ttfamily
  10. \setsansfont[Script=Arabic,Scale=1.5]{Traditional Arabic}
  11. \begin{document}
  12.  
  13. \begin{english}
  14. \begin{verbatim}
  15. The command \LaTeX prints the Latex logo.
  16.  
  17. أمر
  18. \LaTeX
  19. يعطي لوجو لاتخ
  20. \end{verbatim}
  21. \end{english}
  22. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement