summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/thaispec/README.md
blob: dddc9d9ade993d42f5c8165a5ab32198d5aa46c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# thaispec
Thai Language Typesetting in XeLaTeX

This package allows you to input Thai characters directly to LaTeX documents
and choose any (system wide) Thai fonts for typesetting in XeLaTeX.
It also tries to appropriately justify paragraphs with no more external tools.

## Author
Ratthaprom Promkam (ratthaprom@me.com)

## Prerequisite
Thai national fonts, i.e., SIPAFonts (See https://github.com/epsilonxe/sipafonts)

## Recommendation
Install TeX Gyre font family (Possibly included with your TeX distribution)

## Usage
If you already have TeX Gyre font family, just simply add the preamble
```
\usepackage{thaispec}
```
Otherwise
```
\usepackage[texgyrefont=false]{thaispec}
```
This package allows you to input Thai characters directly to ```.tex``` file,
and choose any Thai fonts to be used in the document.
In order to choose the font, please make sure that the font is system wide, then use
```
\usepackage[thaifont = <SYSTEM THAI FONT NAME>]{thaispec}
```
Moreover, the package give you options to choose any system wide fonts for
`mainfont`, `sansfont` and  `monofont` too

For additional usage or more options, see the documentation.

## Credits
This package is motivated by a set of LaTex commands for typesetting Thai documents
provided by Dittaya Wanvarie from Chulalongkorn University.
(See http://pioneer.netserv.chula.ac.th/~wdittaya/)

## License
Copyright 2018 Ratthaprom Promkam

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license of (at your option) any later version.
The latest version of this license is in
  http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.