I am trying to create a fancy date format as shown below:

enter image description here

The following is a MWE of what I have so far. For some reason or the other I can't seem to get the right height.

enter image description here


            May\\ %
        \monthname[\THEMONTH]\\ %


Any suggestions or improvements are welcomed. I know this can be done in TikZ; hence, I would consider it as a possible solution. Other improvement that are welcomed could be that the other months, like November, could be abbreviated so that they have the same width of May; that is, Nov. Probably an \ifelse case?


You are providing the incorrect height/width sizing in \resizebox. This is the appropriate interface: \resizebox{<width>}{<height>}{<stuff>}, so you should use


enter image description here

Here is something else to work with:

enter image description here



    \cellcolor{datebackground} & \cellcolor{datebackground}\color{datecolor}\monthname[\THEMONTH] \\ %
    \cellcolor{datebackground}\smash{\color{datecolor}\resizebox{2.5\normalbaselineskip}{!}{\sffamily\THEDAY}} &

| improve this answer | |
  • How silly of me :-) I guess I was tired last night I didn't realize it. Thanks for the reminder. – azetina May 22 '14 at 0:31

I think this will do it. I have used tikz to achieve the goal. Here is the code:


\filldraw[color=lightgray] (-.1,-7) rectangle (-4.5,-5);
\draw (-3.5,-6) node {\fontsize{50}{60}\selectfont\bfseries  #1}; %%the two arguments to \fontsize are the actual font size and the size of the baseline-skip. The baseline-skip should be set to roughly 1.2x the font size.
\draw (-1.3,-5.5) node {\LARGE\bfseries #2};
\draw (-2.5,-6) -- (-0.2,-6);
\draw (-1.4,-6.5) node {\LARGE\bfseries #3};


I have defined a new command squaredate. It takes 3 arguments. The date, month and the year. And displays as per requirement.

Here is the output:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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