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

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10068
Joined: Mon Mar 10, 2008 9:44 pm

Yearly Calendar Formatting

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

\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

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


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


Stefan
LaTeX.org admin


Return to “Calendars and Miscellaneous”

Who is online

Users browsing this forum: No registered users and 1 guest