Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

from time to time, a current month value has to be updated.

it is a din a4 page, which includes german and english text. at the end of the page, only the month and year (without a day) is given.

For instance Jänner / January 2014 (right now)

which LaTeX command / trick can be used to avoid manual month modifications? (when using pdflatex, the 2 month values and the year should be up to date without a modification but in german and english --- as stated in the example above)

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

I would define my own translations, which also allows you to predict the output. Below \monthGermanEnglish conditions on \THEMONTH (provided by datetime) and prints the appropriate German translation:

enter image description here

\documentclass{article}
\usepackage{datetime}% http://ctan.org/pkg/datetime
\makeatletter
\newcommand{\monthGermanEnglish}{%
  \ifcase\THEMONTH
  \or Januar / January% 1
  \or Februar / February% 2
  \or M\"arz / March% 3
  \or April / April% 4
  \or Mai / May% 5
  \or Juni / June% 6
  \or Juli / July% 7
  \or August / August% 8
  \or September / September% 9
  \or Oktober / October% 10
  \or November / November% 11
  \or Dezember / December% 12
  \fi%
}
\makeatother
\begin{document}
\verb|\today:| \today \par
Month: \monthGermanEnglish
\end{document}
share|improve this answer
    
that avoids much headache & some update effort. Danke / Thanks –  mnemonic Jan 13 at 8:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.