Ich dachte, man könne das ggf. mit Am besten wäre eh ein allgemeiner style, der das dann bei einen beliebigen Kalender ergänzt. Öffne in Overleaf
\documentclass[margin=5mm, varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{calendar} \begin{document} \def\Date{2018-11-01} Test: \Date~ \pgfcalendarifdate{\Date}{Monday} {ist ein Montag}% test true {ist kein Montag}% test false \begin{tikzpicture}[font=\footnotesize] \calendar[dates=2018-11-01 to 2018-11-last,week list ] (cal); \node[anchor=south] at (cal-2018-11-04.north) {Test}; % Macht er nicht: \pgfcalendarifdate{2018-11-01}{Monday} {\node[anchor=south] at (cal-2018-11-01.north) {M};}% test true {X}% test false \end{tikzpicture} \end{document} |
Ich denke, es wäre einfacher den Öffne in Overleaf
\documentclass[margin=5mm, varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{calendar,positioning} \begin{document} \begin{tikzpicture}[font=\footnotesize] \calendar[ dates=2018-11-01 to 2018-11-last, week list, day xshift=5em, day yshift=5ex, day code={ \node[name=\pgfcalendarsuggestedname,every day,align=center,text width=5em]{ \pgfcalendarweekdayname{\pgfcalendarcurrentweekday}\break \tikzdaytext }; } ] (cal); \end{tikzpicture} \end{document} So besser? Öffne in Overleaf
\documentclass[margin=5mm, varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{calendar,positioning} \newcount\tempcount \begin{document} \begin{tikzpicture}[font=\footnotesize] \calendar[ dates=2018-11-01 to 2018-11-last, week list, day xshift=5em, ] (cal); \foreach \i in {1,...,7} { \node at ([yshift=3ex]cal-2018-11-0\i |- cal-2018-11-01) {% \pgfcalendardatetojulian{2018-11-0\i}{\tempcount}% \pgfcalendarjuliantoweekday{\the\tempcount}{\tempcount}% \pgfcalendarweekdayname{\the\tempcount}% }; } \end{tikzpicture} \end{document} Ouh, werde ich mir heute oder morgen mal zu Gemüte führen. Natürlich soll, wie bei Kalendern üblich, der Tagesname nur einmal in der obersten Zeile stehen.
(24 Nov '18, 23:30)
cis
Ja super. Ich habe noch die Umbenennung in deutsche Tagesnamen (elegant) ergänzt, und zwar durch ein array:
(25 Nov '18, 13:31)
cis
Deutsche Tagesnamen erhält man auch mit
(26 Nov '18, 10:20)
cis
|