1

I'm wanting to make a vertical calendar with tasks listed on certain days. For instance, how can I make the code below list a task on February 19th?

\documentclass{article}

\usepackage[top=15mm, bottom=15mm, left=15mm, right=15mm]{geometry}
\usepackage{tikz}

\usetikzlibrary{calendar}

\begin{document}

\begin{tikzpicture}
    \calendar [dates=2016-02-01 to 2016-02-29, day list downward, month label left]
    if (weekend) [black!25]
;
\end{tikzpicture}

\end{document}
3

First you have to give your calendar a name with the option name=mycalendar. Then you can reference the dates. In your example with mycalendar-2016-02-19. Using this name you can then place a node.

\documentclass{article}

\usepackage[top=15mm, bottom=15mm, left=15mm, right=15mm]{geometry}
\usepackage{tikz}

\usetikzlibrary{calendar}

\begin{document}

\begin{tikzpicture}
    \calendar [dates=2016-02-01 to 2016-02-29, day list downward, month label left, name=mycalendar]
    if (weekend) [black!25];
    \node [anchor=base west] at (mycalendar-2016-02-19.base east) {\textbf{My Task}};
\end{tikzpicture}

\end{document}

Output:

calendar

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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