LaTeX forum ⇒ Calendars and MiscellaneousYearly Calendar Formatting

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

Yearly Calendar Formatting

Postby nvulic » Tue Jun 09, 2015 11:26 pm

Hi, I was using the template from http://www.texample.net/tikz/examples/a-calender-for-doublesided-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

User avatar
Stefan Kottwitz
Site Admin
Posts: 8536
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Wed Jun 10, 2015 7:34 pm

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

  1. \newcommand*{\mydate}[2]{
  2. \node [anchor=north west, text width= 3.4cm] at
  3. ($(cal-#1.north west)+(3em, -0.2ex)$) {#2};
  4. }


and later in the drawing you use it like

  1. \mydate{\year-06-05}{Today is the day}


calendar.png
calendar.png (8.21 KiB) Viewed 12165 times


Stefan
Site admin


Return to “Calendars and Miscellaneous”

Who is online

Users browsing this forum: No registered users and 1 guest