summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/datetime2-contrib/datetime2-serbian/README.md
blob: cacfff42e5ed7b8b4f7bfcc231b3e62b2191e6bc (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Serbian Language Module for datetime2 CTAN Package
==================================================

**Current maintainer:** Andrej Radović

**Authors:** Andrej Radović (r.andrej@gmail.com), Nicola L. C. Talbot 
(inactive)

**Licence:** LPPL

**Required Packages:** `datetime2`, `tracklang`

Styles
------

This module provides the following styles:

### Latin:
* serbian    - regionless style
* sr-Latn    - Serbian, Serbia
* sr-Latn-RS - Serbian, Serbia
* sr-Latn-ME - Serbian, Montenegro
* sr-Latn-BA - Serbian, Bosnia and Herzegovina

### Cyrillic
* serbianc   - regionless style
* sr-Cyrl    - Serbian, Serbia
* sr-Cyrl-RS - Serbian, Serbia
* sr-Cyrl-ME - Serbian, Montenegro
* sr-Cyrl-BA - Serbian, Bosnia and Herzegovina

Notes:
------

The regional settings still don't work, but `serbian` and `serbianc` work just
fine.
The package is still in development.

Example usage:
--------------

### Generic w/ `babel`
    \documentclass{article}
    \usepackage[serbian]{datetime2}
    \begin{document}
    \today
    \end{document}

### Generic w/ `babel`

    \documentclass[serbian]{article}
    \usepackage{babel}
    \usepackage[useregional]{datetime2}
    \begin{document}
    \today
    \end{document}

### Generic w/ `polyglossia`

    \documentclass{article}
    \usepackage{polyglossia}
    \setmainlanguage{serbian}
    \usepackage[serbian]{datetime2}
    \begin{document}
    \today
    \end{document}


Installation
------------

Extract the language definition files first:

Run LuaLaTeX over the file `datetime2-serbian.ins`:

    lualatex datetime2-serbian.ins

Move all `*.ldf` files to

    TEXMF/tex/latex/datetime2-contrib/datetime2-serbian/

 Then, you can compile the documentation yourself by executing

    lualatex datetime2-serbian.dtx
    makeindex -s ginddt2s.ist datetime2-serbian.idx
    makeindex -s gglodt2s.ist -o datetime2-serbian.gls datetime2-serbian.glo
    lualatex datetime2-serbian.dtx
    lualatex datetime2-serbian.dtx

or just use the precompiled documentation shipped with the source files.
In both cases, copy the files `datetime2-serbian.pdf` and `README.md` to
`TEXMF/doc/latex/datetime2-contrib/datetime2-serbian/`.

This material is subject to the LaTeX Project Public License.
See http://www.ctan.org/license/lppl1.3 for the details of that
license.