Calendars and MiscellaneousYearly Calendar Formatting

Calendars, invoices, tables, memos, contracts, dictionaries, code snippets
Post Reply
nvulic
Posts: 1
Joined: Tue Jun 09, 2015 10:48 pm

Yearly Calendar Formatting

Post by nvulic »

Hi, I was using the template from http://www.texample.net/tikz/examples/a ... ed-din-a4/ to make a calendar. Whenever I try inserting text for any day in June it always pushes the calendar down and left. Just trying to figure out what is happening with the formatting. There is no issue with December on the 2nd page which is why this is weird. Something to do with maximum text width being violated I suppose...

Thanks,

Neven

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Yearly Calendar Formatting

Post by Stefan Kottwitz »

Hi Neven,

welcome to the forum!
nvulic wrote:Whenever I try inserting text for any day in June it always pushes the calendar down and left.
How are you doing this? I guess you don't insert text into the drawing but outside. You can place text by placing a node, similar to the \termin command there.

For example, you could define

Code: Select all

\newcommand*{\mydate}[2]{
  \node [anchor=north west, text width= 3.4cm] at
    ($(cal-#1.north west)+(3em, -0.2ex)$) {#2};
}
and later in the drawing you use it like

Code: Select all

\mydate{\year-06-05}{Today is the day}
calendar.png
calendar.png (8.21 KiB) Viewed 29291 times
Stefan
LaTeX.org admin
Post Reply