Debian Codegraph @

texmf-dist/doc/latex/datetime2-serbian/README.md

raw
1 Serbian Language Module for datetime2 CTAN Package
2 ==================================================
3
4 **Current maintainer:** Andrej Radović
5
6 **Authors:** Andrej Radović ([email protected]), Nicola L. C. Talbot (inactive)
7
8 **Licence:** LPPL
9
10 **Required Packages:** `datetime2`, `tracklang`
11
12 Styles
13 ------
14
15 This module provides the following styles:
16
17 ### Latin:
18 * serbian - regionless style
19 * sr-Latn - Serbian, Serbia
20 * sr-Latn-RS - Serbian, Serbia
21 * sr-Latn-ME - Serbian, Montenegro
22 * sr-Latn-BA - Serbian, Bosnia and Herzegovina
23
24 ### Cyrillic
25 * serbianc - regionless style
26 * sr-Cyrl - Serbian, Serbia
27 * sr-Cyrl-RS - Serbian, Serbia
28 * sr-Cyrl-ME - Serbian, Montenegro
29 * sr-Cyrl-BA - Serbian, Bosnia and Herzegovina
30
31 Notes:
32 ------
33
34 The regional settings still don't work, but `serbian` and `serbianc` work just
35 fine.
36 The package is still in development.
37
38 Example usage:
39 --------------
40
41 ### Generic w/ `babel`
42 \documentclass{article}
43 \usepackage[serbian]{datetime2}
44 \begin{document}
45 \today
46 \end{document}
47
48 ### Generic w/ `babel`
49
50 \documentclass[serbian]{article}
51 \usepackage{babel}
52 \usepackage[useregional]{datetime2}
53 \begin{document}
54 \today
55 \end{document}
56
57 ### Generic w/ `polyglossia`
58
59 \documentclass{article}
60 \usepackage{polyglossia}
61 \setmainlanguage{serbian}
62 \usepackage[serbian]{datetime2}
63 \begin{document}
64 \today
65 \end{document}
66
67
68 Installation
69 ------------
70
71 Extract the language definition files first:
72
73 Run LuaLaTeX over the file `datetime2-serbian.ins`:
74
75 lualatex datetime2-serbian.ins
76
77 Move all `*.ldf` files to
78
79 TEXMF/tex/latex/datetime2-contrib/datetime2-serbian/
80
81 Then, you can compile the documentation yourself by executing
82
83 lualatex datetime2-serbian.dtx
84 makeindex -s ginddt2s.ist datetime2-serbian.idx
85 makeindex -s gglodt2s.ist -o datetime2-serbian.gls datetime2-serbian.glo
86 lualatex datetime2-serbian.dtx
87 lualatex datetime2-serbian.dtx
88
89 or just use the precompiled documentation shipped with the source files.
90 In both cases, copy the files `datetime2-serbian.pdf` and `README.md` to
91 `TEXMF/doc/latex/datetime2-contrib/datetime2-serbian/`.
92
93 This material is subject to the LaTeX Project Public License.
94 See http://www.ctan.org/license/lppl1.3 for the details of that
95 license.