I am trying to generate a 365-day notebook that contains the current date and a small calendar of the current month. I wwould like to highlight the current day in the small calendar, for example by adding a circle around it or by making it in boldface. For example, if the date listed on the left is January 10, I would like to have a mark on the calendar on the right highlighting the date January 10. After spending hours of reading the pgf/tikz manuals and calendar-related topics on this forum, I did not reach any solution.
Below is my code:
\documentclass[b5paper, fontsize=12pt, parskip=half, DIV=12,BCOR=2cm]{scrartcl}
%pagesize,
\usepackage[T1]{fontenc}
\usepackage[romanian]{babel}
\usepackage{translator, tikz, pgfcalendar, array, libertine}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{xcolor}
\usepackage{tabu}
\usepackage{epstopdf}
\usepackage{color}
\usepackage{pgf}
%=========================================================
%== Page characteristics (Page Setup) ====================
\setlength{\textwidth}{126mm}
\setlength{\textheight}{230.0mm}
\setlength{\topmargin}{-30mm}
\setlength{\hoffset}{-20mm}
\setlength{\marginparwidth}{-20mm}
\setlength{\footskip}{12mm}
\setlength{\headheight}{10.5mm}
\setlength{\headsep}{4mm}
\setlength{\parindent}{0cm}
\usetikzlibrary{calendar,shapes.geometric}
%== Define colors =================================
\definecolor{rozmam}{RGB}{242,172,184}
\newcommand{\troz}{\textcolor{rozmam}}
\makeatletter%
\tikzoption{day headings}{\tikzstyle{day heading}=[#1]}
\tikzstyle{day heading}=[]
\tikzstyle{day letter headings}=[
execute before day scope={ \ifdate{day of month=1}{%
\pgfmathsetlength{\pgf@ya}{\tikz@lib@cal@yshift}%
\pgfmathsetlength\pgf@xa{\tikz@lib@cal@xshift}%
\pgftransformyshift{-\pgf@ya}
\foreach \d/\l in {0/M,1/T,2/W,3/T,4/F,5/S,6/S} {
\pgf@xa=\d\pgf@xa%
\pgftransformxshift{\pgf@xa}%
\pgftransformyshift{\pgf@ya}%
\node[every day,day heading]{\l};%
}
}{}%
}%
]
\makeatother
\newcommand{\PaginaMea}{
\minisec{\textcolor{gray}{Notes}}
\begin{tabu}{@{}p{0.12\textwidth}p{0.32\textwidth}p{0.32\textwidth}p{0.20\textwidth}c}\taburulecolor{gray}\hline
$\diamond$ \textbf{ } & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
$\diamond$ & & & & \\\hline
\end{tabu}
}
\begin{document}
\foreach \n in {1,...,1}{
\pgfcalendar{cal}{2018-\n-01}{2018-\n-last}
{
\thispagestyle{empty}
\noindent{\Huge \bfseries
\pgfcalendarcurrentday{}\\[20pt]
\Huge \pgfcalendarweekdayname{\pgfcalendarcurrentweekday}
}
\begin{tikzpicture}[remember picture, overlay, transform shape]
\node [anchor=north east, inner sep=8pt, xshift = 30pt]
at (current page.north east)
{
\begin{tikzpicture}[every node/.append style = {anchor=center}]
\calendar[dates=2018-\n-01 to 2018-\n-last,
week list,
day text=\%d0,
month label above centered,
month text={\%mt} \%y-,
day xshift = 0.8cm,
day headings=gray,
day letter headings
]
if (Saturday) [rozmam]
if (Sunday) [rozmam];
\end{tikzpicture}
};
\end{tikzpicture}
\\[30pt]
\PaginaMea
\pagebreak
{}
}
}
\end{document}