Open siegmund42 opened 4 years ago
Well, that's kind of tricky. Package mdsymbol
redeclares some default symbol fonts in an incompatible manner. For you particular problem you could do something like
\documentclass{tudscrreprt}
\let\savedpropto\propto
\let\savedcdot\cdot
\usepackage{mdsymbol}
\let\propto\savedpropto
\let\cdot\savedcdot
\begin{document}
$P \propto f \cdot U^2$
\end{document}
Nevertheless, I have to think about a more general solution for the next version.
Although this is quite hacky and requires a lot of caution when using more symbols it works...
Is there a list of symbols that are redeclared by mdsymbol
?
Unfortunately not. This is something, I will have to do by hand :(
Just saw this too, quite dangerous when compiling a large document with equations copy-pasted from another document... Perhaps putting a warning to the Doc is needed here? Especially since I do not get any warnings about this in my log. I just get wrong symbols in the document.
I just discovered that this is even the case for the plus sign - just add $a + b$
to the mwe above.
The suggested workaround does not work in this case:
\let\savedplus\plus
\usepackage{mdsymbol}
\let\plus\savedplus
Undefined control sequence. $a \plus
This is even more serious. I agree, at least a warning should be added..
As TUD-Forum will be shut down, the following similar issue is recorded here:
Loading additional font packages can blow the maximum number of available math alphabets. Therefore, an interface for using dedicated symbols from a font without loading the according package would be nice. Using the approach from https://tex.stackexchange.com/a/14406/38481, this is a first PoC
\documentclass{tudscrreprt}
\iftutex
\usepackage{fontspec}
\else
\usepackage[T1]{fontenc}
\usepackage[ngerman=ngerman-x-latest]{hyphsubst}
\fi
\usepackage{mathrsfs}
\usepackage{siunitx}
% Workaround
%\usepackage{txfonts}
\makeatletter
\newcommand*\txmathsymbol[3][\mathord]{#1{\@txmathsymbol{#2}{#3}}}
\newcommand*\@txmathsymbol[2]{\mathchoice%
{\@@txmathsymbol{#1}{#2}\tf@size}%
{\@@txmathsymbol{#1}{#2}\tf@size}%
{\@@txmathsymbol{#1}{#2}\sf@size}%
{\@@txmathsymbol{#1}{#2}\ssf@size}%
}
\newcommand*\@@txmathsymbol[3]{\mbox{\fontsize{#3}{#3}\txsymbol{#1}{#2}}}
\newcommand*\txsymbol[2]{\begingroup\usefont{U}{#1}{m}{n}\char#2\endgroup}
\makeatother
\newcommand*\multimapboth{\txmathsymbol[\mathrel]{txsyc}{19}}
\begin{document}
$a \multimapboth b$
$a \upnu b$
\end{document}
MWE:
Using pdflatex to build pdf.
Expected output: (Same output as when removing the mdsymbol package)
Actual output:
I need the
mdsymbol
package forcleveref
and similar. Yes, it could be replaced by theamssymb
package, but some thread stated that these symbols do not fit so nicely to the OpenSans font.What should I do from here - is this combination unsupported?
Debug info: