Skip to content

Commit

Permalink
Merge pull request #341 from harvard-edge/331-marginnotes-needs-to-be…
Browse files Browse the repository at this point in the history
…-left-aligned-but-they-seem-to-be-justified

331 Marginnotes needs to be left aligned, but they seem to be justified
  • Loading branch information
profvjreddi authored Aug 5, 2024
2 parents 74975ac + bb6fb3e commit 4715cd6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,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
Expand Down
12 changes: 12 additions & 0 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4715cd6

Please sign in to comment.