General ⇒ Next year command?
-
- Posts: 9
- Joined: Wed Nov 10, 2010 2:49 pm
Next year command?
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!!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Next year command?
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}
-
- Posts: 9
- Joined: Wed Nov 10, 2010 2:49 pm
Re: Next year command?
Greetings!!