Hi,
with "\the\year" I can get the current year...but how can I get next year? I couldn't find any command and I don't know that much about counters and that kind of thing to do it.
Is there a simple way to do this? I just want to get
Course 2010/2011
or something like that.
Greetings!!
General ⇒ Next year command?
-
- Posts: 9
- Joined: Wed Nov 10, 2010 2:49 pm
Next year command?
Last edited by manuavazquez on Wed Nov 10, 2010 7:46 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Next year command?
Hi,
Code: Select all
\documentclass{article}
\newcommand\NextYear{%
\advance\year by 1 \the\year\advance\year by -1}
\begin{document}
Course \the\year /\NextYear
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 9
- Joined: Wed Nov 10, 2010 2:49 pm
Re: Next year command?
Thank you very much!! That did the trick.
Greetings!!
Greetings!!