Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. %!TEX TS-program = xelatex
  2. %!TEX encoding = UTF-8 Unicode
  3. documentclass[11pt, a4paper]{report}
  4.  
  5. usepackage{fontspec}
  6.  
  7. usepackage{polyglossia}
  8. setmainlanguage{english}
  9. setotherlanguage[numerals=arabic]{thai}
  10. newfontfamily{thaifont}[Script=Thai, Scale=1.3]{TH Sarabun New:script=thai}
  11.  
  12. XeTeXlinebreaklocale 'th_TH'
  13.  
  14. newfontfamily{sans}[Scale=1.0]{Helvetica}
  15. newfontfamily{thai}[Scale=1.3]{TH Sarabun New}
  16. newfontfamily{thaiit}[Scale=1.3]{TH Sarabun New Italic}
  17. newfontfamily{thaibf}[Scale=1.3]{TH Sarabun New Bold}
  18. newfontfamily{thaibi}[Scale=1.3]{TH Sarabun New Bold Italic}
  19.  
  20. (/opt/local/share/texmf-texlive/tex/latex/polyglossia/gloss-english.ldf
  21. File: gloss-english.ldf polyglossia: module for english)
  22. Package polyglossia Info: Default language is english.
  23.  
  24. (/opt/local/share/texmf-texlive/tex/latex/polyglossia/gloss-thai.ldf
  25. File: gloss-thai.ldf polyglossia: module for thai)
  26.  
  27. Package fontspec Warning: Font "TH Sarabun New:script=thai" does not contain
  28. (fontspec) requested Script "Thai".
  29.  
  30.  
  31. Package fontspec Info: Font family 'THSarabunNew:script=thai(0)' created for
  32. (fontspec) font 'TH Sarabun New:script=thai' with options
  33. (fontspec) [Script=Thai,Scale=1.3].
  34. (fontspec)
  35. (fontspec) This font family consists of the following NFSS
  36. (fontspec) series/shapes:
  37. (fontspec)
  38. (fontspec) - 'normal' (m/n) with NFSS spec.: <->s*[1.3]"TH Sarabun
  39. (fontspec) New:script=thai/OT:script=latn;language=DFLT;"
  40. (fontspec) - 'small caps' (m/sc) with NFSS spec.:
  41. (fontspec) - 'bold' (bx/n) with NFSS spec.: <->s*[1.3]"TH Sarabun
  42. (fontspec) New:script=thai/B/OT:script=latn;language=DFLT;"
  43. (fontspec) - 'bold small caps' (bx/sc) with NFSS spec.:
  44. (fontspec) - 'italic' (m/it) with NFSS spec.: <->s*[1.3]"TH
  45. (fontspec) Sarabun
  46. (fontspec) New:script=thai/I/OT:script=latn;language=DFLT;"
  47. (fontspec) - 'italic small caps' (m/itsc) with NFSS spec.:
  48. (fontspec) - 'bold italic' (bx/it) with NFSS spec.: <->s* [1.3]"TH
  49. (fontspec) Sarabun
  50. (fontspec) New:script=thai/BI/OT:script=latn;language=DFLT;"
  51. (fontspec) - 'bold italic small caps' (bx/itsc) with NFSS spec.:
  52.  
  53. Package fontspec Info: Font family 'THSarabunNew(0)' created for font 'TH
  54. (fontspec) Sarabun New' with options [Scale=1.3].
  55. (fontspec)
  56. (fontspec) This font family consists of the following NFSS
  57. (fontspec) series/shapes:
  58. (fontspec)
  59. (fontspec) - 'normal' (m/n) with NFSS spec.: <->s*[1.3]"TH Sarabun
  60. (fontspec) New/OT:script=latn;language=DFLT;"
  61. (fontspec) - 'small caps' (m/sc) with NFSS spec.:
  62. (fontspec) - 'bold' (bx/n) with NFSS spec.: <->s*[1.3]"TH Sarabun
  63. (fontspec) New/B/OT:script=latn;language=DFLT;"
  64. (fontspec) - 'bold small caps' (bx/sc) with NFSS spec.:
  65. (fontspec) - 'italic' (m/it) with NFSS spec.: <->s*[1.3]"TH
  66. (fontspec) Sarabun New/I/OT:script=latn;language=DFLT;"
  67. (fontspec) - 'italic small caps' (m/itsc) with NFSS spec.:
  68. (fontspec) - 'bold italic' (bx/it) with NFSS spec.: <->s*[1.3]"TH
  69. (fontspec) Sarabun New/BI/OT:script=latn;language=DFLT;"
  70. (fontspec) - 'bold italic small caps' (bx/itsc) with NFSS spec.:
  71.  
  72.  
  73. ./Misc58_ex.tex:39: LaTeX3 Error: Command 'thai' already defined!
  74.  
  75. For immediate help type H <return>.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement