TikZ 달력 날짜 목록(레이블 포함)

TikZ 달력 날짜 목록(레이블 포함)

특정 날짜에 나열된 작업이 포함된 세로 달력을 만들고 싶습니다. 예를 들어, 아래 코드를 2월 19일 작업 목록으로 만들려면 어떻게 해야 합니까?

\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}

답변1

먼저 옵션을 사용하여 달력에 이름을 지정해야 합니다 name=mycalendar. 그런 다음 날짜를 참조할 수 있습니다. 귀하의 예에서는 mycalendar-2016-02-19. 이 이름을 사용하여 노드를 배치할 수 있습니다.

\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}

산출:

달력

관련 정보