derric / cleanthesis

Clean Thesis is a clean, simple, and elegant LaTeX style (or template) for thesis documents.
http://cleanthesis.der-ric.de/
908 stars 116 forks source link

Incompatibility with mathtools package #109

Open IsraelBuitronD opened 5 years ago

IsraelBuitronD commented 5 years ago

If we add \usepackage{mathtools} into the setup file (e.g. my-thesis-setup.tex), then we will have some compilation error.

Suppose you need to use mathtools package to have available math commands like \mathbb, \mathcal, etc., and a chuck of code like:

\begin{equation}
  \mathbb{F} = \emptyset
\end{equation}

you will have an error message, like this:

Undefined control sequence. [...\mathbb]
JanWaldhorn commented 4 years ago

If you include the other packages instead it works without problems

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
mcomis commented 3 years ago

I had the exact same issue. Was able to fix it by protecting line 435 in cleanthesis.sty, i.e., by replacing it with \protect\settowidth{\lensectionnumber}{\textbf{\thesection}\quad}