mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 00:59:07 -05:00
Fixed left alignment for captions in PDF and HTML
This commit is contained in:
@@ -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
|
||||
|
||||
12
style.scss
12
style.scss
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user