-
Notifications
You must be signed in to change notification settings - Fork 2
/
rmcal.tex
68 lines (60 loc) · 2.01 KB
/
rmcal.tex
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\documentclass[a4paper]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{amssymb}
\usepackage{tabularx}
\usepackage[vlines]{tabularht}
\usepackage{float}
\usepackage{lscape}
\usepackage{tikz}
\usepackage[breakall]{truncate}
\usetikzlibrary{calc}
\usepackage{hyperref}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\newcommand\Tstrut{\rule{0pt}{2.8ex}} % "top" strut
\newcommand{\Day}[4]{\begin{minipage}[t][0.02\textheight]{\linewidth}
#4\hfill\hyperlink{#3}{#1}\\%
#2
\end{minipage}}
\newcommand{\Week}[7]{#1\Tstrut\\\interrowfill\hline}
\newcommand{\Month}[3]{\begin{center}
\textsc{\LARGE \hypertarget{#1}{#1}}\\ % Month
\textsc{\large #2} % Year
\end{center}
\begin{table}[H]
\begin{tabularhtx}{\dimexpr\pagegoal-\pagetotal-\baselineskip\relax}{1.47\textwidth}{|X|X|X|X|X|X|X|}
\hline
\hfil Monday \hfil & \hfil Tuesday \hfil & \hfil Wednesday \hfil & \hfil Thursday \hfil & \hfil Friday \hfil & \hfil Saturday \hfil & \hfil Sunday \hfil\\
\hline
\hline
#3
\end{tabularhtx}
\end{table}}
\newcommand{\Daynotes}[3]{\newpage
\begin{tikzpicture}[remember picture,overlay]
\foreach \i in {1,2,...,28}{
\draw[lightgray] ($$(current page.south west)+(0,\i)$$) -- ($$(current page.south east)+(0,\i)$$);
}
\end{tikzpicture}
\LARGE{\hypertarget{#1}{#2}} \hfill \LARGE{\hyperlink{#3}{×}}
}
\newcommand{\Weektodo}[3]{\newpage
\begin{tikzpicture}[remember picture,overlay]
\foreach \i in {1,2,...,28}{
\draw[lightgray] ($$(current page.south west)+(2.12,\i)$$) -- ($$(current page.south east)+(0,\i)$$);
\ifnum\i<28
\draw[lightgray] ($$(current page.south west)+(0.76,\i+0.2)$$) -- ($$(current page.south west)+(1.36,\i+0.2)$$) -- ($$(current page.south west)+(1.36,\i+0.8)$$) -- ($$(current page.south west)+(0.76,\i+0.8)$$) -- ($$(current page.south west)+(0.76,\i+0.2)$$);
\fi
}
\end{tikzpicture}
\LARGE{\hypertarget{#1}{#2}} \hfill \LARGE{\hyperlink{#3}{×}}
}
\begin{document}
\pagestyle{empty}
\noindent
\begin{landscape}
$calendar
\end{landscape}
\newgeometry{left=1.5cm,top=1cm,right=0.7cm}
$notepages
\end{document}