I have modified code given by cfr in the answer to this question about current day nodes. I want different colored (green and red) lines at the bottom and left of each day. However, for the single digit dates, the bottom line does not completely fill the area I want underlined.
I think I should be able to use the =
modifier on d
to insert the missing space where the zero would go, but I can't make it work. Do I need to modify the definition of week list
to accomplish this?
\documentclass[border=10pt,multi,tikz]{standalone}
\usetikzlibrary{calendar}
\begin{document}
\begin{tikzpicture}
\calendar (cal)
[%
week list,
dates=2016-08-01 to 2016-10-last,
day xshift=1.5em,
month xshift=1pt,
month label above left,
]
if (weekend) [text=black!25]
[%
execute at end day scope={%
\draw[red]
(cal-\%y0-\%m0-\%d0.north east) --
(cal-\%y0-\%m0-\%d0.south east);
}][%
execute at end day scope={%
\draw[green]
(cal-\%y0-\%m0-\%d0.south east) --
(cal-\%y0-\%m0-\%d0.south west);
}];
\end{tikzpicture}
\end{document}
[Note: This is one of two questions about modifying the same code. The other is here.]