summaryrefslogtreecommitdiff
path: root/templates/ef/grid.tex
blob: 51432e9c5b8b357b15fb506018f21d0b2a314244 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% colitur wall calendar -- LaTeX. flavour: latex
% Build: colitur table --year 2027 --template grid.tex > grid.tex && pdflatex grid.tex
%
% Day label falls back to the slug when the day carries no Latin name (most
% temporal days, and most sanctoral entries, which are Latin-less in the
% shipped data). The fallback is written as a name-section wrapping a plain
% var and its inverse, deliberately NOT as a single dotted-path lookup
% followed by its own inverse: a dotted lookup that misses climbs to the
% enclosing scope for the WHOLE path, and the month object also carries a
% same-named key one level up, so the naive form would render the month's
% own Latin name on every day lacking one, and never fall back at all.
%
% Every cell also carries a last flag, true on the seventh of its row: the
% engine has no unless-last construct, so the separator BETWEEN cells comes
% from data, not the template. A trailing separator on every cell would give
% eight columns for seven and pdflatex would reject the file outright.
\documentclass[10pt,landscape]{article}
\usepackage[a4paper,margin=10mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\definecolor{lwhite}{HTML}{FFFFFF}\definecolor{lred}{HTML}{FFDDDD}
\definecolor{lgreen}{HTML}{DDFFDD}\definecolor{lviolet}{HTML}{EEAAEE}
\definecolor{lrose}{HTML}{FFDDEE}\definecolor{lblack}{HTML}{DDDDDD}
\begin{document}
{{#months}}
\section*{ {{name.la}} {{year}} }
\begin{tabular}{|p{2.6cm}|p{2.6cm}|p{2.6cm}|p{2.6cm}|p{2.6cm}|p{2.6cm}|p{2.6cm}|}
\hline Dom & Lun & Mar & Mer & Iov & Ven & Sab \\ \hline
{{#weeks}}{{#days}}{{#in_month}}\cellcolor{l{{colour}}}\textbf{ {{dom}} } \footnotesize {{#name}}{{la}}{{^la}}{{slug}}{{/la}}{{/name}}{{/in_month}}{{^last}} & {{/last}}{{/days}} \\ \hline
{{/weeks}}
\end{tabular}
\newpage
{{/months}}
\end{document}