CTAN Comprehensive TeX Archive Network

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


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


This module provides the following styles:


  • serbian - regionless style
  • sr-Latn - Serbian, Serbia
  • sr-Latn-RS - Serbian, Serbia
  • sr-Latn-ME - Serbian, Montenegro
  • sr-Latn-BA - Serbian, Bosnia and Herzegovina


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


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


Generic w/ babel


Generic w/ polyglossia



Extract the language definition files first:

Run Lua over the file datetime2-serbian.ins:

lualatex datetime2-serbian.ins

Move all *.ldf files to


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.

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 Andrej Radović
2019 Nicola Talbot
MaintainerAndrej Radović
Nicola Talbot (inactive)
Contained inTeX Live as datetime2-serbian
MiKTeX as datetime2-serbian
TopicsDate time
Guest Book Sitemap Contact Contact Author