You can simply remove the option math
when loading mathspec
.
MWE
\documentclass[11pt]{article}
\usepackage{mathspec}
\setprimaryfont{Linux Libertine O}
\begin{document}
1 $1$ $\mathrm{1}$ $\text{1}$
\end{document}
Output
Loading mathspec
with the math
option forces mathspec
to load fontspec
without the no-math
option.
And the fontspec
manual states:
If you find that fontspec
is incorrectly changing the maths font when it should be leaving well enough alone, apply the [no-math]
package option to manually suppress its maths font.
It's easy with thmtools
:
\documentclass[
11pt,
% a5paper,% really?
footinclude=true,
headinclude=true
]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
\usepackage[bitstream-charter]{mathdesign}
\usepackage{bbding}
\usepackage{amsthm}
\usepackage{thmtools}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers
\declaretheoremstyle[
style=definition,
qed=\openbox,
]{example}
\declaretheorem[
name=Example,
style=example,
numberlike=thm,
]{exmp}
\renewcommand\qedsymbol{\RectangleBold}
\begin{document}
\begin{proof}
This is my proof
\end{proof}
\begin{exmp}
Want a hollow square at the end of this example.
\end{exmp}
\end{document}
I have removed the inessential parts of the preamble. Note that there is no lemma
, corollary
or proposition
theorem style. A full specification with thmtools
would be
\documentclass[
11pt,
% a5paper,% really?
footinclude=true,
headinclude=true
]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}
\usepackage[linedheaders,parts,pdfspacing]{classicthesis} % ,manychapters
\usepackage[bitstream-charter]{mathdesign}
\usepackage{bbding}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[
style=plain,
name=Theorem,
within=chapter,
]{thm}
\declaretheorem[
style=plain,
name=Lemma,
numberlike=thm,
]{lem}
\declaretheorem[
style=plain,
name=Proposition,
numberlike=thm,
]{prop}
\declaretheorem[
style=plain,
name=Corollary,
numberlike=thm,
]{cor}
\theoremstyle{definition}
\declaretheorem[
style=definition,
name=Definition,
numberlike=thm,
]{defn}
\declaretheoremstyle[
style=definition,
qed=\openbox,
]{example}
\declaretheorem[
name=Example,
style=example,
numberlike=thm,
]{exmp}
\renewcommand\qedsymbol{\RectangleBold}
\begin{document}
\chapter{Title}
\begin{prop}
A proposition.
\end{prop}
\begin{lem}
A lemma.
\end{lem}
\begin{thm}
A theorem.
\end{thm}
\begin{proof}
This is my proof
\end{proof}
\begin{cor}
A corollary.
\end{cor}
\begin{exmp}
Want a hollow square at the end of this example.
\end{exmp}
\end{document}
Best Answer
Define a new math font from a new font family besides the default
cmex
, for instance,mdbch
andeuex
. Refer toarevmath.sty
.