enter image description hereI have a weird problem that I can't seem to figure out. In a beamer document I use \mathsf to specify how I want some of the text to appear. The specific command is

$\mathsf{ASG}_{1}=\sigma_{\mathsf{ENO} \leq \mathsf{“E3”}}(\mathsf{ASG})$

which puts in a \ after \leq and before E3as shown in the attached figure. I can't figure out why. Any help would be appreciated.

Here is a MWE


 $\mathsf{ASG}_{1}=\sigma_{\mathsf{ENO} \leq \mathsf{“E3”}}(\mathsf{ASG})$
  • 6
    You can't use arbitrary symbols inside \mathXX. Better switch to text mode then. – Ulrike Fischer Jun 30 '18 at 12:06
  • Thank you Ulrike -- can you clarify what you mean by "arbitrary symbols"? The only thing I have inside \mathsf is text -- no symbols as far as I can see. – ozsu Jun 30 '18 at 12:30
  • 4
    You have quotes. – Ulrike Fischer Jun 30 '18 at 13:06
  • 1
    In case you don't know, there is the command \text{} from amsmath. – Sigur Jun 30 '18 at 13:41
  • Many thanks Ulrike and Sigur -- those are helpful. I was not aware of \text{}. I'll try that. – ozsu Jun 30 '18 at 16:51

You can define math symbols for the quotes:





$\mathsf{ASG}_{1}=\sigma_{\mathsf{ENO} \leq \mathsf{\quoted{E3}}}(\mathsf{ASG})$

$A_{1}=\sigma_{E\le\quoted{E3}} B$


enter image description here

Note: this assumes your math alphabets are taken from OT1 encoded fonts.

  • Thank you; this is interesting to know. For this case, I just used \text{} rather than \mathsf and it is sufficient. But for more complex cases, I'll keep your suggestion in mind. – ozsu Jul 1 '18 at 2:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.