mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 17:20:21 -05:00
Added in custom color formatting for footnotes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user