[texhax] include a pdf graphics file whose name includes a varying date

Ulrike Fischer news3 at nililand.de
Thu Feb 2 09:51:48 CET 2017


Am Wed, 1 Feb 2017 08:19:13 -0500 schrieb William Adams:

> While David's solution (of course) works, I'm pretty sure that if you
> consult the documentation for the package datenumber there will be an
> option to enable padding with a leading zero (though it's odd to me that
> apparently this is turned one for days? 

The documentation doesn't have such an option, but shows an example
which uses exaclty Davids code:

\thedateyear/%
\ifnum\value{datemonth}<10 0\fi
\thedatemonth/%
\ifnum\value{dateday}<10 0\fi
\thedateday%

But I don't quite see why one need a package for this. 

\the\year-\ifnum\month<10 0\fi\the\month-\ifnum\day<10 0\fi\the\day

works fine. 


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the texhax mailing list