Skip to content
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

DeclareMathOperator with MathML does not work with styled text #85

Closed
fatanassow opened this issue Feb 9, 2016 · 0 comments
Closed

Comments

@fatanassow
Copy link

Using the MathML writer, this works:

\DeclareMathOperator{\den}{den}

but this:

\DeclareMathOperator{\den}{\mathsf{den}}

produces visible occurrences of \operatorname{\mathsf{den}} all over the text. I thought this might be because the parser for \DeclareMathOperator wrongly expects only a string in the second brackets, but it works as expected with the MathJax writer: the operator gets rendered in sans-serif.

I also tested this in LaTeX to make sure \DeclareMathOperator really accepts something besides simple strings for the operator name, and it does. Here is proof:

\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator{\den}{\mathsf{den}}
\begin{document}    
$\den t = \den t'$    
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant