Skip to content

Commit

Permalink
add fmtcount compat (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertucci47 authored Aug 6, 2024
1 parent 11a5062 commit 65ff43a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _data/tagging-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3522,13 +3522,12 @@

- name: fmtcount
type: package
status: unknown
status: compatible
included-in: [tlc3, arxiv001]
priority: 2
issues:
tests: false
tasks: needs tests
updated: 2024-07-14
tests: true
updated: 2024-08-05

- name: fnbreak
type: package
Expand Down
34 changes: 34 additions & 0 deletions tagging-status/testfiles/fmtcount/fmtcount-01.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
\DocumentMetadata
{
lang=en-US,
pdfversion=2.0,
pdfstandard=ua-2,
testphase={phase-III,math,title,table,firstaid},
}
\documentclass{report}

\usepackage[ngerman]{babel,fmtcount}

\setcounter{chapter}{3}
\setcounter{section}{1}
\setcounter{footnote}{7}

\newcounter{test} \setcounter{test}{29}

\begin{document}

\Ordinalstring{chapter}[n] Kapitel \ordinalstring{section}[m]
Abschnitt, \ordinalstring{footnote}[f] Fußnote.

\Ordinalstring{section} section in \ordinal{chapter}
chapter has \numberstring{subsection} subsections.
\par \selectlanguage{ngerman}%
\Ordinalstring{section} Abschnitt im \ordinal{chapter}[n]
Kapitel hat \numberstring{subsection}[m] Unterabschnitte.

\padzeroes[4]
\decimal{test} \binary{test} \octal{test} \hexadecimal{test} \par
Unpadded: \padzeroes[0]
\decimal{test} \binary{test} \octal{test} \hexadecimal{test}

\end{document}

0 comments on commit 65ff43a

Please sign in to comment.