vincentb1 / fmtcount

Source for LaTeX fmtcount package
11 stars 5 forks source link

Use language option of document class #9

Closed vincentb1 closed 10 years ago

vincentb1 commented 10 years ago

With:

\documentclass[french]{article} \usepackage{fmtcount}

fmtcount should load french.

vincentb1 commented 10 years ago

I think that I have solved this issue. It was a bit more tricky than I initially thought because one cannot interleave \DeclareOption and \RequirePackage --- this is not LaTeX2e conformant. So I needed to do it in two passes:

Now, duplicating information is the worst of all evil, isn't it, so I factorized the list of supported languages between these two passes, and I added some iterator to implement the passes. That also allowed to list the option inside the manual based on some other iteration body with the same engine.

I will publish the change on fr.comp.text.tex to see if I receive any comments, and if ok, I would then upload to CTAN and close the issue.

vincentb1 commented 10 years ago

Closed after commit 3dc2c6124ce03a8f978c5543bfa34e00a976c476 This is fmtcount version 3.00 to be delivered to ctan