CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/datemultical

README.md

The datemultical package

Named dates and multi-calendar date formatting for .

Description

The datemultical package provides a unified interface for defining, converting, and formatting dates in documents.

It provides two calculation backends:

  • basic: the built-in backend, available under all supported engines, with support for the three core calendars: Gregorian, Solar Hijri, and Lunar Hijri;
  • lua: the Lua backend, which includes the same three core calendars and additionally supports the calendar systems provided by lua-calendrica.

When Persian localization is enabled, Persian month and weekday names are available where defined by the package.

Under Lua, the lua backend is selected by default. The basic backend can be selected with the native option.

Installation

Manual installation from GitHub: ~bash git clone https://github.com/gambi-shah/datemultical.git ~

Copy the package files (.sty, .def, and .lua) into a -searchable directory. Alternatively, keep them in the same directory as your document.

If necessary, refresh the filename database:

~bash mktexlsr ~

Usage

A minimal example:

~latex documentclass{article} usepackage{datemultical}

begin{document}

dmcsetsh{birth}{1365}{3}{11}

dmc{birth}{short}

dmclh{birth}{full}

end{document} ~

Here, birth is defined once as a Solar Hijri date and can then be formatted in different styles and calendar systems.

To enable Persian localization:

~latex usepackagepersian{datemultical} ~

To select the basic backend explicitly under Lua:

~latex usepackagenative{datemultical} ~

Documentation

see the main manual for the complete documentation.

License and maintainer

  • License: LPPL 1.3c or later
  • Maintainer: Amer Amikhteh
  • Bug reports: please use the repository issue tracker

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

Datemultical – Named dates, calendar conversion, and date formatting for

This package provides a unified interface for defining, converting, and formatting named dates in multiple calendar systems in . It provides a built-in backend supporting the Gregorian, Solar Hijri, and Lunar Hijri calendars under supported engines, and an extended Lua backend that additionally interfaces with lua-calendrica to support a wide range of historical, astronomical, and traditional calendar systems. Dates can be stored under user-defined names, converted between supported calendars, and retrieved through a common field-based interface. The package provides predefined date styles and customizable formatting patterns, including calendar-specific month and weekday names, week information, and leap-year, leap-month, and leap-day fields. Persian localization and high-level Persian date and weekday wrappers are also provided.

PackageDatemultical
Bug tracker
Repository
Version0.1.0 2026-09-17
LicensesThe Project Public License 1.3c
Copyright2026 Amer Amikhteh
MaintainerAmer Amikhteh
Contained inTeX Live as datemultical
TopicsDate time
Persian
Calendar
Use Lua
...
Guest Book Sitemap Contact Contact Author