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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I read about week list in the PGF/TikZ manual, but I couldn't find an example that arranges the days of the week vertically:

June 1997

M   2  9 16 23 30
T   3 10 17 24
W   4 11 18 25
T   5 12 19 26
F   6 13 20 27
S   7 14 21 28
S 1 8 15 22 29

Could you help me with an example of how to create a week list arrangement like this?

share|improve this question
Maybe also have a look at the ctan.org/pkg/calxxxx and ctan.org/pkg/calxxxx-yyyy packages. – Stephen Jan 2 '12 at 18:02
up vote 7 down vote accepted

Here's a new style vertical week list, which is adapted from the week list style found in the TikZ source code. The day labels are adapted from the answer to Weekday captions with the TikZ library "calendar".


\tikzstyle{week list}=[%
  execute before day scope={%
    \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}
        % On first of month, except when first date in calendar.
  execute at begin day scope={%
  execute after day scope={%

\tikzoption{day headings}{\tikzstyle{day heading}=[#1]}
\tikzstyle{day heading}=[]
\tikzstyle{day letter headings}=[
    execute before day scope={ \ifdate{day of month=1}{%
      \foreach \d/\l in {0/M,1/T,2/W,3/T,4/F,5/S,6/S} {
        \node[every day,day heading, anchor=base]{\l};%

    dates=1997-06-01 to 1997-06-last,
    week list,
    day letter headings,
    day heading/.style={gray, xshift=-1em},
    month label above left,
    month text=\%mt \%y0
share|improve this answer

You could use \pgftransformyshift for shifting days down. Here's an example style arranging the days vertically:

\tikzstyle{week list downward}=[%
  execute before day scope={%
    \ifdate{day of month=1}{\ifdate{equals=\pgfcalendarbeginiso}{}{%
  execute after day scope={%
  \tikz\calendar [dates=2012-01-01 to 2012-03-last,week list downward];

weekly calender with vertically arranged days

share|improve this answer
Thanks, great example of \pgftransformyshift! – Nyiti Jan 2 '12 at 10:04

Your Answer


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.