From: Rolf S. <in...@to...> - 2009-01-09 21:27:32
|
> 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. Rolf |