Skip to content

Commit

Permalink
Updates from Overleaf
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudomanifold committed Sep 12, 2022
1 parent 995b39a commit 6e12a51
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions mimosis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,19 @@
toc=bibliography,
toc=index,]{scrbook}

\RequirePackage{ifpdf}
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}

\newif\ifxetexorluatex
\RequirePackage{iftex}
\newif\ifxetexorluatex\xetexorluatexfalse
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\ifluatex
\xetexorluatextrue
\fi

\ifxetexorluatex
\RequirePackage{fontspec}
\else
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\fi

Expand Down Expand Up @@ -89,7 +84,6 @@

\RequirePackage[%
acronym,
automake,
nogroupskip,
nopostdot,
nonumberlist,
Expand Down Expand Up @@ -163,15 +157,17 @@
% Proper typesetting of units
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\RequirePackage[binary-units=true]{siunitx}
\RequirePackage{siunitx}

\sisetup{%
detect-all = true,
detect-family = true,
detect-mode = true,
detect-shape = true,
detect-weight = true,
detect-inline-weight = math,
%mode = match,
propagate-math-font = true,
reset-math-version = false,
reset-text-family = false,
reset-text-series = false,
reset-text-shape = false,
text-family-to-math = true,
text-series-to-math = true,
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down Expand Up @@ -248,4 +244,4 @@
% Large number for chapter
\renewcommand*{\chapterformat}{%
\fontsize{50}{55}\selectfont\thechapter\autodot\enskip
}
}

0 comments on commit 6e12a51

Please sign in to comment.