-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Math symbols not displayed correctly when using mdsymbol package #45
Comments
Well, that's kind of tricky. Package \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 |
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
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:
The text was updated successfully, but these errors were encountered: