
Estou querendo fazer um calendário vertical com tarefas listadas em determinados dias. Por exemplo, como posso fazer com que o código abaixo liste uma tarefa em 19 de fevereiro?
\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}
Responder1
Primeiro você deve dar um nome ao seu calendário com a opção name=mycalendar
. Então você pode fazer referência às datas. No seu exemplo com mycalendar-2016-02-19
. Usando este nome você pode então colocar um nó.
\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}
Saída: