Added in custom color formatting for footnotes

This commit is contained in:
Vijay Janapa Reddi
2024-11-06 19:00:09 -05:00
parent da86b6585a
commit eb7083927c

View File

@@ -39,13 +39,21 @@
% }
% }
% % Redefine \sidenote to include a custom styled box
% \let\oldsidenote\sidenote
% \renewcommand{\sidenote}[1]{%
% \oldsidenote{%
% \footnotesize #1
% }%
% }
% Redefine \sidenote to include a custom minimalist styled box with a vertical bar
\renewcommand{\thefootnote}{\textcolor{crimson}{\arabic{footnote}}}
\let\oldsidenote\sidenote
\renewcommand{\sidenote}[1]{%
\oldsidenote{%
\vspace{-1em} % Adjust position to align better with main text
\noindent
\begin{minipage}{0.9\marginparwidth}
\color{crimson!100} % Light blue color for the vertical line
\rule{0.5pt}{1.5em} \hspace{0.3em} % Thin vertical line with spacing
{\footnotesize #1} % Light background for sidenote text
\end{minipage}%
}
}
% Redefine the figure environment (fixes the bug where even page captions don't show, odd I know!)
\makeatletter