Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to know, how to decrease/increase the distance between month label and the calendar. There seem to be no "month label xshift" key.

Here is an MWE to play with:

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calendar}

\begin{document}

\begin{tikzpicture}[scale=.8] 
  \calendar (mycal) [dates=2013-01-01 to 2013-01-last, week list, month label left vertical];
  \draw[red, thick] (mycal-2013-01-28) circle (7.3pt);
\end{tikzpicture}

\end{document}

With following result:

enter image description here

share|improve this question
2  
You could for example use every month/.append style={xshift=.5cm}. –  Qrrbrbirlbel Feb 8 '13 at 14:02
    
@Qrrbrbirlbel: I think that's the answer, that's basically what happens inside the calendar library as well (month label left vertical sets every month/.append style{..., xshift=...} too). –  Jake Feb 8 '13 at 14:08
    
@Qrrbrbirlbel: Yes, that's the answer. Thank you –  schmendrich Feb 8 '13 at 14:14
add comment

1 Answer

up vote 5 down vote accepted

Use the every month style but .append style your changes, otherwise you’ll overwrite all previous changes to the every month.

The month label left vertical style already appends anchor=base east, xshift=-4.5ex, yshift=2.25ex, rotate=90, the latter transformation is also the reason we need to use yshift to move our label in the x direction.

Code

\documentclass[tikz]{standalone}
\usetikzlibrary{calendar}
\begin{document}
\begin{tikzpicture}[scale=.8] 
    \calendar (mycal) [
        dates=2013-01-01 to 2013-01-last,
        week list, 
        month label left vertical,
        every month/.append style={yshift=1em},
    ];
    \draw[red, thick] (mycal-2013-01-28) circle (7.3pt);
\end{tikzpicture}
\end{document}

Output

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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