Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. documentclass[12pt]{book}
  2.  
  3. usepackage{polyglossia}
  4.  
  5. setdefaultlanguage[numerals=maghrib]{arabic}
  6. setotherlanguage{english}
  7.  
  8. setmainfont{Traditional Arabic}
  9. newfontfamilyenglishfont{Times New Roman}
  10.  
  11. begin{document}
  12.  
  13. pagestyle{empty}
  14.  
  15. begin{english}
  16. noindent
  17. One can write multi-lingual documents, and math equations, by using the polyglossia package, and compile it with XeLaTeX, in several sizes. The basic size is 12pt.
  18. end{english}
  19. hrule
  20.  
  21. {centering
  22.  
  23. LR{Text in 14pt is obtained by using the command $backslash$large:
  24.  
  25. {large A latin text, in size 14 pt.}
  26.  
  27. An arabic text, in size 14 pt, is the following centered text:}
  28.  
  29. {large
  30. نص عربي في حجم 14.
  31. }
  32.  
  33. hrule
  34.  
  35. LR{Text in 17pt is obtained by using the command $backslash$Large:
  36.  
  37. {Large A latin text, in size 17 pt.}
  38.  
  39. An arabic text, in size 17 pt, is the following centered text:}
  40.  
  41. {Large
  42. نص عربي في حجم 17.
  43. }
  44.  
  45. hrule
  46.  
  47. LR{For larger sizes, we use the command, for example, $backslash$fontsize{18}{22}, which puts the size to 18pt for arabic and english characters, but has no effect under the package polyglossia, else if we put the characters under the commands \
  48. $backslash$begin{Arabic} ...$backslash$end{Arabic}, and $backslash$begin{english} ...$backslash$end{english}, respectively. I give examples of compilations:
  49.  
  50. hrule
  51. {fontsize{18}{22} A latin text, under the command $backslash$fontsize{18}{22}, and outside $backslash$begin{english} ...$backslash$end{english}.}
  52. hrule
  53.  
  54. {fontsize{18}{22} begin{english}
  55. A latin text, under the command $backslash$fontsize{18}{22}, and $backslash$begin{english} ...$backslash$end{english}.
  56. end{english}}
  57. hrule
  58.  
  59. Arabic text, under the command $backslash$fontsize{18}{22}, and outside $backslash$begin{Arabic} ...$backslash$end{Arabic}:
  60. }
  61.  
  62. {fontsize{18}{22}
  63. نص عربي في حجم 18.
  64. }
  65.  
  66. hrule
  67. LR{ Arabic text, under the command $backslash$fontsize{18}{22}, and $backslash$begin{Arabic} ...$backslash$end{Arabic}:}
  68.  
  69. {fontsize{18}{22}
  70. begin{Arabic}
  71. نص عربي في حجم 18.
  72. end{Arabic}}
  73.  
  74. par}
  75.  
  76. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement