GeneralCreating a full agenda booklet

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
OlaffTheGreat
Posts: 5
Joined: Mon Sep 30, 2013 4:59 pm

Creating a full agenda booklet

Post by OlaffTheGreat »

Hi everyone,

I have to create a one year agenda which shape would be an A6 booklet.
So far, I tryed most of tutorials I found about calendars makings (I did not find a lot of them), I focused mainly on a Evan A. Sultanik's calendar package as a start.

I have two problems with this idea:
1, I can not adjust counter system over the pages that are splitted all over 4 A4 pages, both sides (see below)
2, the counter is not an automatic system, which means if I success for one year, I have to modify, data by data every single lines of the .tex file.

Of course, I suppose there are specific programs that can make exactly what I'm describing here (e.g. all agenda books found in supermarket), but I know
nothing about it, neither in printing industry. Perhaps someone on this forum have some enlightments ?

Even if I don't have book making industry skills, I realised that pattern:
The whole book would contain on 4 A4 sheets (A, B, C, D), organized as follow:

Code: Select all

A: top - I    | B.  1 flyleaf - 32 Rs oct2   |   F.  2    ?    - 31 Ls oct1
   bot - II   | B.  3    ?    - 30 Ls oct1   |   F.  4 Ls sep1 - 29 Ls sep1
  
B: top - III  | B.  5 Ls sep1 - 28 Ls sep1   |   F.  6 Ls oct1 - 27 Rs agu2
   bot - IV   | B.  7 Ls oct1 - 26 Ls agu1   |   F.  8 Ls nov1 - 25 Ls jul1

C: top - V    | B.  9 Rs nov2 - 24 Ls jul1   |   F. 10 Ls dec1 - 23 Rs jun2
   bot - VI   | B. 11 Rs dec2 - 22 Ls jun1   |   F. 12 Ls jan1 - 21 Rs may2

D: top - VII  | B. 13 Rs jan2 - 20 Ls may1   |   F. 14 Ls fev1 - 19 Rs avr2
   bot - VIII | B. 15 Rs fev2 - 18 Ls avr1   |   F. 16 Ls mar1 - 17 Rs mar2
Where:
- top ou bot indicates the top or bottom half of the sheet should be printed
- I to VIII indicates the serie to print
- F. for Front; and B. for Back precise the concerned side of the sheet
- Ls for Left side indicates the left pattern (from monday to wednesday + a margin
- Rs for Right side. Right pattern (from thursday to sunday)
- dec1 for december 1, on the left part of the sheet
- dec2 for december 2, on the right part of the sheet
- flyleaf
- ? for some unused space (I probably use it for a global calendar)
- values are marks to ordonate each parts of the calendar.

The two sides patterns should look like this:

Code: Select all

 Ls :                                           Rs :
 __________________________________              _________________________________
|January                                                                          |   
|   1                                                                             |   
|        _|monday_|tuesday|wednes_|              _|thurda_|fryday_|saturd_|sunday_|
|       | |       |       |       |               |       |       |       |       |   
|       | |       |       |       |               |       |       |       |       |   
|       |_|_______|_______|_______|               |_______|_______|_______|_______|
|       | |       |       |       |               |       |       |       |       |   
|       | |       |       |       |               |       |       |       |       |   
|       |_|_______|_______|_______|               |_______|_______|_______|_______|
|       | |       |       |       |               |       |       |       |       |   
|       | |       |       |       |               |       |       |       |       |   
|       |_|_______|_______|_______|               |_______|_______|_______|_______|
|       | |       |       |       |               |       |       |       |       |   
|       | |       |       |       |               |       |       |       |       |   
|       |_|_______|_______|_______|               |_______|_______|_______|_______|
|       | |       |       |       |               |       |       |       |       |   
|       | |       |       |       |               |       |       |       |       |   
|       |_|_______|_______|_______|               |_______|_______|_______|_______|
|       | |       |       |       |               |       |       |       |       |   
|       | |       |       |       |               |       |       |       |       |   
|       |_|_______|_______|_______|              _|_______|_______|_______|_______|
|                                                                                 |   
|_________________________________                ________________________________|

In the end, the idea would be to have a .tex (or a script) to ba able to input new variables for further editions of the calendar (such as leap years, marking holidays, lunar months markings, etc.)

Here I display the Sultanik's template:

Code: Select all

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Monthly Calendar
% LaTeX Template
%
% This template has been downloaded from:
% http://www.latextemplates.com
%
% Original calendar style author:
% Evan Sultanik (http://www.sultanik.com/LaTeX_calendar_style)
%
% Important note:
% This template requires the calendar.sty file to be in the same directory as the
% .tex file. The calendar.sty file provides the necessary structure to create the
% calendar.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[landscape,a4paper]{article}

\usepackage{calendar} % Use the calendar.sty style

\usepackage[landscape,margin=0.5in]{geometry}

\begin{document}

\pagestyle{empty} % Removes the page number from the bottom of the page

\noindent

\StartingDayNumber=1 % Calendar starting day, default of 1 means Sunday, 2 for Monday, etc

%----------------------------------------------------------------------------------------
%	MONTH AND YEAR SECTION
%----------------------------------------------------------------------------------------

\begin{center}
\textsc{\LARGE Month}\\ % Month
\textsc{\large Year} % Year
\end{center}

%----------------------------------------------------------------------------------------

\begin{calendar}{\hsize}
 
%----------------------------------------------------------------------------------------
%	BLANK DAYS BEFORE THE BEGINNING OF THE CALENDAR
%----------------------------------------------------------------------------------------

% This part is very finicky. 
% It defines the number of blank days before the first day of the month.
% If you need more than 4 (i.e. 1st starts on a Friday in a 31 days month), then you have two options: 
%    1) You can uncomment another one or two \BlankDay's below which will make a new week (6 total) 
%       which makes the calendar too big for one page, 
%       remedy this by decreasing the size of each day by replacing 2.5cm below with a smaller number. 
%    2) Make the spill-over days start at the top left of the calendar 
%       (i.e. the calendar starts with 31 then a few days blank then 1, 2, 3, etc). 
%       The second option can be configured by uncommenting the \setcounter below:

%\setcounter{calendardate}{31} % Begin the count with 31 so the top left day is 31; 
%                                this can be changed to 29 or 30 as required
%\day{}{\vspace{2.5cm}} % 31 - add another line identical to this if starting at 30 or earlier

% You will need to comment out the 31 in the NUMBERED DAYS AND CALENDAR CONTENT 
% section below for this as well as commenting out one of the \BlankDay's below. 
% Play around with it and you will get it.

\BlankDay
\BlankDay
\BlankDay
%\BlankDay
%\BlankDay
%\BlankDay

%----------------------------------------------------------------------------------------
%	NUMBERED DAYS AND CALENDAR CONTENT
%----------------------------------------------------------------------------------------

% These are the numbered days in the template - if there are less than 31 days simply comment out the bottom lines.

% \vspace{2.5cm} is only there to provide an even look to the calendar where each day is 2.5cm tall, 
% it can be changed or removed to automatically adjust to the day in the week with the most content

\setcounter{calendardate}{1} % Start the date counter at 1

\day{Work}{10am Meeting with Boss \\[6pt] 12pm Meeting with Group} % 1 - Example of content
\day{}{\vspace{2.5cm}} % 2 
\day{}{\vspace{2.5cm}} % 3
\day{}{\vspace{2.5cm}} % 4
\day{}{\vspace{2.5cm}} % 5
\day{}{\vspace{2.5cm}} % 6
\day{}{\vspace{2.5cm}} % 7
\day{}{\vspace{2.5cm}} % 8
\day{}{\vspace{2.5cm}} % 9
\day{}{\vspace{2.5cm}} % 10
\day{}{\vspace{2.5cm}} % 11
\day{}{\vspace{2.5cm}} % 12
\day{}{\vspace{2.5cm}} % 13
\day{}{\vspace{2.5cm}} % 14
\day{}{\vspace{2.5cm}} % 15
\day{}{\vspace{2.5cm}} % 16
\day{}{\vspace{2.5cm}} % 17
\day{}{\vspace{2.5cm}} % 18
\day{}{\vspace{2.5cm}} % 19
\day{}{\vspace{2.5cm}} % 20 
\day{}{\vspace{2.5cm}} % 21
\day{}{\vspace{2.5cm}} % 22
\day{}{\vspace{2.5cm}} % 23
\day{}{\vspace{2.5cm}} % 24
\day{}{\vspace{2.5cm}} % 25
\day{}{\vspace{2.5cm}} % 26
\day{}{\vspace{2.5cm}} % 27
\day{}{\vspace{2.5cm}} % 28
\day{}{\vspace{2.5cm}} % 29 
\day{}{\vspace{2.5cm}} % 30 
\day{}{\vspace{2.5cm}} % 31

% Un-comment the \BlankDay below if the bottom line of the calendar is missing
%\BlankDay

% Un-comment to start counting again after 31
%\setcounter{calendardate}{1}
%\day{}{\vspace{2.5cm}} % 1
%\day{}{\vspace{2.5cm}} % 2
%\day{}{\vspace{2.5cm}} % 3

%----------------------------------------------------------------------------------------

\finishCalendar
\end{calendar}
\end{document}
Beginner with LaTeX
Using it for sciences and linguistics works
Debian and Archlinux user

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

OlaffTheGreat
Posts: 5
Joined: Mon Sep 30, 2013 4:59 pm

Creating a full agenda booklet

Post by OlaffTheGreat »

Just one more template for the try :
I don't use calendar package in hear, just a regular tabular function.

Code: Select all

%------------------------------------------------------------------------------
%       DOCUMENT BASE CONFIGURATIONS
%------------------------------------------------------------------------------
\documentclass[landscape,a4paper]{article}
 
%------------------------------------------------------------------------------
%       PACKAGES
%------------------------------------------------------------------------------
    \usepackage{calendar}
    \usepackage[landscape,margin=0.5in]{geometry}
 
        %\usepackage[french]{babel}      % pour dire que le texte est en français
        %\usepackage{a4}                 % pour indiquer le format du document
        %\usepackage[T1]{fontenc}        % pour les font postscript
        %\usepackage[cyr]{aeguill}       % police vectorielle TrueType, guillemets français
        %\usepackage{float}              % pour le placement des figures
 
%------------------------------------------------------------------------------
%       INTRO
%------------------------------------------------------------------------------
    \begin{document}
     
        \pagestyle{empty} % Removes the page number from the bottom of the page
        \noindent
        \StartingDayNumber=2 % Calendar starting day, default of 1 means Sunday, 2 for Monday, etc

%------------------------------------------------------------------------------
%       MONTH AND YEAR SECTION
%------------------------------------------------------------------------------
        %\begin{center}
        %\textsc{\LARGE Month}\\ % Month
        %\textsc{\large Year} % Year
        %\end{center}

%------------------------------------------------------------------------------
%       TABLES
%------------------------------------------------------------------------------
        \begin{tabular}{|p{0.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{0.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|p{2.5cm}|}
          \hline
                IX & Monday & Tuesday & Wednesday & & Thursday & Friday & Saturday & Sunday \\
          \hline\hline
                40 & 30     & 1       & 2         & & 3        & 4      & 5        & 6      \\[2cm]
          \hline
                41 & 7      & 8       & 9         & & 10       & 11     & 12       & 13     \\[2cm]
          \hline
                42 & 14     & 15      & 16        & & 17       & 18     & 19       & 20     \\[2cm]
          \hline
                43 & 21     & 22      & 23        & & 24       & 25     & 26       & 27     \\[2cm]
          \hline
                44 & 28     & 29      & 30        & & 1        &        &          &        \\[2cm]
          \hline
                   &        &         &           & &          &        &          &        \\[2cm]
          \hline
        \end{tabular}


%----------------------------------------------------------------------------------------
%       OUTRO
%----------------------------------------------------------------------------------------
        %\finishCalendar
        %\end{calendar}
    \end{document}
Beginner with LaTeX
Using it for sciences and linguistics works
Debian and Archlinux user
Post Reply