From 251c19eedbcccdd924c5b63d35a8e1dc28036848 Mon Sep 17 00:00:00 2001 From: Luke Hsiao Date: Mon, 20 Aug 2018 14:36:05 -0700 Subject: Remove unused code --- pa2cal.tex | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/pa2cal.tex b/pa2cal.tex index 725032e..01005af 100644 --- a/pa2cal.tex +++ b/pa2cal.tex @@ -80,37 +80,6 @@ tikz@lib@cal@width=7 ] - % New style for drawing the year, it is always drawn - % for January - \tikzstyle{year label left}=[ - execute before day scope={ - \ifdate{start of year}{ - \drawyear - }{} - }, - % Right align - every year/.append style={ - anchor=east, - } - ] - - % Style to force giving a month a year label. - \tikzset{draw year/.style={ - execute before day scope={ - \ifdate{day of month=1}{\drawyear}{} - } - }} - - % This actually draws the year. - \newcommand{\drawyear}{ - \pgfmathsetlength{\pgf@x}{\tikz@lib@cal@xshift}% - \pgftransformxshift{-\pgf@x} - % \tikzyearcode is defined by default - \tikzyearcode - \pgfmathsetlength{\pgf@x}{\tikz@lib@cal@xshift}% - \pgftransformxshift{\pgf@x} - } - \makeatother \begin{minipage}{0.28\linewidth} -- cgit v1.2.3