Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions kao.sty
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@

\RequirePackage{marginnote} % Provides options for margin notes
%\RequirePackage{marginfix} % Make marginpars float freely; it should not be loaded as it prevents the marginnotes to stay aligned with the main text
\RequirePackage{marginfit} % Make marginpars float freely while addressing some of the issues of `marginfix`
\RequirePackage{sidenotes} % Use sidenotes
\RequirePackage{chngcntr} % Reset counters at sections

Expand Down Expand Up @@ -442,10 +443,9 @@
\renewcommand*{\raggedleftmarginnote}{} % Suppress left margin
\renewcommand*{\raggedrightmarginnote}{} % Suppress right margin
\renewcommand*{\marginfont}{\@margin@par} % Format marginnotes according to \@marginpar (see above)
\renewcommand{\marginnotevadjust}{0.8\vscale} % Bring all marginnotes downwards a bit
%\marginposadjustment=1\vscale % Bring downwards also the marginpars
%\marginheightadjustment=10cm % Adjust the height of the margins for each page
%\RequirePackage[marginnote=true]{snotez} % Provides options for sidenotes
\renewcommand{\marginnotevadjust}{0.8\vscale} % Bring all marginnotes downwards a bit; Adjusts the top position where marginpars start but seems to affect margintoc only (larger values mean lower marginpars); Note that there's a separate value for adjusting the margintoc (see \mtocshift)
\marginfit@minoffset=-0.675\vscale % Shifts the calculated minimum position of marginpars (larger values mean higher marginpars); `-0.75\vscale` would be perfect for non-chapter-start-pages and `-0.6\vscale` for chapter-start-pages. We pick their average.
% \RequirePackage[marginnote=true]{snotez} % Provides options for sidenotes

% Copied from snotez's \sidenote
\def\kao@if@nblskip#1{%
Expand Down
2 changes: 1 addition & 1 deletion kaobook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
}%
}%
\RedeclareSectionCommand[beforeskip=0cm,afterskip=10\vscale]{chapter}%
\setlength{\mtocshift}{-3.5\vscale}%
\setlength{\mtocshift}{-3.25\vscale}%
}

% Takes as input the image path and optionally the "beforeskip"
Expand Down
Loading