The simple code
\[ \text{CIR} \left[ t \right] = \left(g_\text{loc} * s\right) \left[ t \right] \]
looks like:
I already found suggestions to try mathtools (same problem) instead and assure to use pdflatex instead of latex.
Somebody created a really huge header with lots of options for the template. I tried to delete as much as possible without making the error disappear. I found if disable lmodern package, than it works. But it alters the font, right?
Minimal working example:
\RequirePackage{silence} % :-\
\WarningFilter{scrreprt}{Usage of package `titlesec'}
%\WarningFilter{scrreprt}{Activating an ugly workaround}
\WarningFilter{titlesec}{Non standard sectioning command detected}
\documentclass[ twoside,openright,titlepage,numbers=noenddot,%1headlines,
headinclude,footinclude,cleardoublepage=empty,abstract=on,
BCOR=5mm,paper=a4,fontsize=11pt
]{scrreprt}
%********************************************************************
% PDF/A for TUbama
%*******************************************************
\PassOptionsToPackage{dvipsnames}{xcolor}
\usepackage[a-1b]{pdfx}
%********************************************************************
% Note: Make all your adjustments in here
%*******************************************************
\usepackage{etoolbox}
\newtoggle{adrianstyle}
%\toggletrue{adrianstyle} % uncomment this line to have smaller margins
\PassOptionsToPackage{adrianstyle=\iftoggle{adrianstyle}{true}{false}}{classicthesis}
\newtoggle{parts}
%\toggletrue{parts} % uncomment to use parts (for long theses only!)
\newtoggle{phd}
%\toggletrue{phd} % uncomment to write a full-blown PhD thesis (with parts, author references, etc.)
\iftoggle{phd}{\toggletrue{parts}}{}
% !TeX root = ./Thesis.tex
\PassOptionsToPackage{utf8}{inputenc}
\usepackage{inputenc}
\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
\usepackage{fontenc}
\PassOptionsToPackage{
drafting=false, % print version information on the bottom of the pages
tocaligned=false, % the left column of the toc will be aligned (no indentation)
dottedtoc=true, % page numbers in ToC flushed right
eulerchapternumbers=true, % use AMS Euler for chapter font (otherwise Palatino)
linedheaders=false, % chaper headers will have line above and beneath
floatperchapter=false, % numbering per chapter for all floats (i.e., Figure 1.1)
eulermath=true, % use awesome Euler fonts for mathematical formulae (only with pdfLaTeX)
beramono=true, % toggle a nice monospaced font (w/ bold)
palatino=true, % deactivate standard font for loading another one, see the last section at the end of this file for suggestions
style=classicthesis % classicthesis, arsclassica
}{classicthesis}
\providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\PassOptionsToPackage{ngerman,american}{babel} % change this to your language(s), main language last
\usepackage{babel}
\PassOptionsToPackage{autostyle=true}{csquotes}
\usepackage{csquotes}
\PassOptionsToPackage{%
backend=biber,bibencoding=utf8,
language=auto,%
style=numeric-comp,%
sorting=nyt, % name, year, title
maxbibnames=10, % default: 3, et al.
%backref=true,%
defernumbers=true, % enable so split references (author's publications) have continuous numbers
natbib=true % natbib compatibility mode (\citep and \citet still work)
}{biblatex}
\usepackage{biblatex}
\usepackage{classicthesis}
\usepackage{lmodern} %TODO delete later
\begin{document}
\[ \textrm{CIR} [ t ] = (g_{\textrm{loc}} * s) [ t ] \]
\end{document}
\text
for this, it does not do what you think (making things upright). Secondly, assuming_\text{loc}
will always work is dangerous, here use_{\mathrm{loc}}
instead. Thirdly, those\left ... \right
does nothing but make your code look more complicated.\documentclass{article} \begin{document} \[ \textrm{CIR} [ t ] = (g_{\textrm{loc}} * s) [ t ] \] \end{document}
creates any surprises on your system.¨classicthesis
witheulermath
and then also loadinglmodern
after you loadedclassicthesis
. Now, removinglmodern
will "change the font", but you are already specifyingpalatino
andeulermath
when loadingclassicthesis
, so you've placed yourself in a position where there will be font conflicts no matter what.