Preconfigured template for XeLaTeX documents.
Codename tenth
used to stand for for Template for English and Thai
as it was historically set up for pdfLaTeX, but no more!
It even supports more scripts with fontspec
package.
Other preconfigurations are according to my own taste, of course.
Feel free to look at or modify tenth.sty
as you wish.
Please see a separate README on how to use the software called IPE to draw diagrams and embed them in XeLaTeX documents.
This template is preconfigured with the following fonts:
- Google Font variant of Sarabun
as the main font (represented as
\rmfamily
) - FiraGO
as the loopless font (represented as
\sffamily
) - FiraCode
as the monospaced font (represented as
\ttfamily
)
In case you are wondering, all fonts mentioned above are released under SIL Open Font License. See below for the exhaustive list of fonts filenames.
However, these font files do not come with this template; you will need to download them either by visiting each link provided above, or simply use the prepared download script:
$ ./download_fonts.py
Next, you have two options of what to do with the downloaded fonts:
- Keep them inside
fonts/
directory. For this particular case, you will need to supply thelocalfonts=true
to the loading oftenth
xelatex package:\usepackage[localfonts=true]{tenth}
- Install them (located in
fonts/
directory) into your computer, and include the following package:\usepackage{tenth}
Sarabun-BoldItalic.ttf
Sarabun-Bold.ttf
Sarabun-ExtraBoldItalic.ttf
Sarabun-ExtraBold.ttf
Sarabun-ExtraLightItalic.ttf
Sarabun-ExtraLight.ttf
Sarabun-Italic.ttf
Sarabun-LightItalic.ttf
Sarabun-Light.ttf
Sarabun-MediumItalic.ttf
Sarabun-Medium.ttf
Sarabun-Regular.ttf
Sarabun-SemiBoldItalic.ttf
Sarabun-SemiBold.ttf
Sarabun-ThinItalic.ttf
Sarabun-Thin.ttf
FiraGO-BoldItalic.otf
FiraGO-Bold.otf
FiraGO-BookItalic.otf
FiraGO-Book.otf
FiraGO-ExtraBoldItalic.otf
FiraGO-ExtraBold.otf
FiraGO-ExtraLightItalic.otf
FiraGO-ExtraLight.otf
FiraGO-Italic.otf
FiraGO-LightItalic.otf
FiraGO-Light.otf
FiraGO-MediumItalic.otf
FiraGO-Medium.otf
FiraGO-Regular.otf
FiraGO-SemiBoldItalic.otf
FiraGO-SemiBold.otf
FiraCode-Bold.ttf
FiraCode-Light.ttf
FiraCode-Medium.ttf
FiraCode-Regular.ttf
FiraCode-SemiBold.ttf