Fixed left alignment for captions in PDF and HTML

This commit is contained in:
Vijay Janapa Reddi
2024-08-05 11:57:40 -04:00
parent 1eca8d01e4
commit bb6fb3e0dd
2 changed files with 20 additions and 1 deletions

View File

@@ -314,7 +314,14 @@ format:
}
\usepackage{marginfix} % Fixes the issue of margin notes being cut off
\usepackage{marginnote}
\usepackage{ragged2e}
% Redefine \marginnote to always include \RaggedRight
\let\oldmarginnote\marginnote
\renewcommand{\marginnote}[2][\null]{%
\oldmarginnote[#1]{\RaggedRight #2}%
}
\patchcmd{\chapter}{\thispagestyle{plain}}{\thispagestyle{fancy}}{}{}
% Disable the default title page

View File

@@ -58,6 +58,18 @@ code a:any-link {
/*-- scss:defaults --*/
.figure {
margin: auto;
text-align: left;
}
/* Aligns the caption in margin to the left */
.csl-entry {
display: block;
margin-left: 0;
text-align: left;
}
/* Mixin for callout styling */
@mixin base-callout {
margin-top: 1em;