[latex3-commits] [latex3/babel] docs: More on Chinese dates. (ede2975)
github at latex-project.org
github at latex-project.org
Sat Sep 9 10:55:50 CEST 2023
Repository : https://github.com/latex3/babel
On branch : docs
Link : https://github.com/latex3/babel/commit/ede29754be2e97af3c1ccdaf84f2684338cafc1f
>---------------------------------------------------------------
commit ede29754be2e97af3c1ccdaf84f2684338cafc1f
Author: Javier <email at localhost>
Date: Sat Sep 9 10:55:50 2023 +0200
More on Chinese dates.
>---------------------------------------------------------------
ede29754be2e97af3c1ccdaf84f2684338cafc1f
docs/news/whats-new-in-babel-3.94.md | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/docs/news/whats-new-in-babel-3.94.md b/docs/news/whats-new-in-babel-3.94.md
index f14f2f6..769c7df 100644
--- a/docs/news/whats-new-in-babel-3.94.md
+++ b/docs/news/whats-new-in-babel-3.94.md
@@ -9,17 +9,26 @@ printed. By default the year is numeric, but there is a variant with
the sexagenary cycle (the latter is available only if the locale is
loaded with `provide` or `\babelprovide`).
+The following two commands print the current date in the Chinese
+calendar (numeric and sexagenary). See the `babel` manual for further
+info:
+
```tex
\localedate[calendar=chinese, convert]{\year}{\month}{\day}
\localedate[calendar=chinese, variant=sexagenary, convert]{\year}{\month}{\day}
```
-To set the default in `\today`:
+By default, `\today` prints the gregorian date, but this can be changed
+with the option `calendar`. Remember setting it always implies the date
+is converted:
```tex
\babelprovide[import, calendar=chinese]{babel}
\babelprovide[import, calendar=chinese.sexagenary]{babel}
```
+With the first one, `\today` will print something like 二〇二三年七月二十, and
+the second one like 癸卯年七月二十.
+
Note the string can be slightly diferent depending on the locale.
## New locale files
More information about the latex3-commits
mailing list.