From: Marcus S. <li...@lo...> - 2009-01-10 12:53:19
|
Hi Rolf, Am Freitag, den 09.01.2009, 22:27 +0100 schrieb Rolf Stöckli: > > I'd like to set a variable eg. %currentyear% in the description of an > > article. This variable sould be replaced to 2009 when printing the > > invoice. Any idea in which script I've to do the "regsub"? > > I'd suggest that you don't edit any scripts because you loose the > changes with the next update. If you print the invoices in the month you > need them, you can edit the LaTeX template for example in the following way: > > ... > \usepackage[german]{babel} > \usepackage{datetime} > > \newdateformat{invoicedate}{% > \monthname[\THEMONTH] \THEYEAR} > > > ... > > \invoicedate\today > > The last command will print "Januar 2009" if your language is German. Thanks a lot for your answer. This is exactly what I was looking for. A howto that helped me with is datetime packge is found here: http://theoval.sys.uea.ac.uk/~nlct/latex/packages/datetime/datetime-manual.html Ciao, Marcus |