TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 use the TikZ library calendar to produce a week list. The code looks like this:



    \tikz\calendar[dates=2011-02-01 to 2011-02-last,week list];

However, I want to add abbreviated captions for the weekdays (M, T, W, ...) in the first line of the week list:

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

I couldn't find any option to the \calendar macro which produces this effect. Is there any other solution to achieve my goal?

share|improve this question
up vote 13 down vote accepted

There's no way of doing this with a single option, but the following code is a way of getting the weekday headings in a way that keeps all options of the week list calendar. It adds the style day letter headings (which in this form only makes sense to use with the week list style). The style of the headings can be set with the option day headings.



\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]{\l};%


    \tikz\calendar[dates=2011-02-01 to 2011-04-last,
        week list,
        month label above centered,
        day xshift = 0.8cm,
        day headings=orange,
        day letter headings

Week list calendar with single letter day headings

share|improve this answer
Thank you, that's exactly what I was looking for! :-) – diabonas Feb 3 '11 at 21:57
BTW: A slash is missing between \d and \l (it should be \foreach \d/\l in {0/M,1/T,2/W,3/T,4/F,5/S,6/S} {, otherwise, I get an error message). – diabonas Feb 4 '11 at 12:39
@diabonas Thanks! I've added the missing slash. Interestingly, it worked fine without it for me, although according to the manual it shouldn't. Maybe something changed in recent versions of pgf. – Jake Feb 4 '11 at 12:59

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.