CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/datetime2-contrib/datetime2-serbian

README.md

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 Lua 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 Project Public License. See http://www.ctan.org/license/lppl1.3 for the details of that license.

Download the contents of this package in one zip archive (288.3k).

datetime2-serbian – Serbian language module for the datetime2 package

This module provides the “serbian” style that can be set using \DTMsetstyle provided by datetime2.sty. It provides both Cyrillic and Latin, Ekavian and Ijekavian variants of Serbian date formats, regionalized and non-regionalized.

Packagedatetime2-serbian
Home pagehttps://gitlab.com/andrejr/datetime2-serbian
Bug trackerhttps://gitlab.com/andrejr/datetime2-serbian/-/issues
Version2.1.0 2019-11-22
LicensesThe Project Public License 1.3
Copyright2019 Nicola Talbot
2019 Andrej Radović
MaintainerAndrej Radović
Nicola Talbot (inactive)
Contained inTeX Live as datetime2-serbian
MiKTeX as datetime2-serbian
TopicsDate time
Multi-lingual
Serbian
...
Guest Book Sitemap Contact Contact Author