1

When I try to write the symbol "&" inside a theorem it looks different than I want it to. Is there a way to get the symbol inside the theorem? Here is what I get:

enter image description here

Here is the code:

\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{theo}{Theorem}

\begin{document}
    Outside theorem \&
\begin{theo}
    Inside theorem \&

    Inside theorem 2 \text{\&}
    \end{theo}
\end{document}

Do you see how to fix this?

  • 3
    Theorems are italic by default. You could use {\normalfont \&} in these cases as described in this answer. – epR8GaYuh May 2 '17 at 9:48
  • 4
    You can also try \textup{\&} and \textsl{\&} – StefanH May 2 '17 at 9:49
  • Can you show a “real world” example of usage, please? – egreg May 2 '17 at 13:37
  • 1
    @egreg Inside a proof referring to and article written by two mathematicians. The article uses "&" instead of "and" between the names. – user119615 May 2 '17 at 14:33
  • 2
    Use “and” instead, they're not a business company. ;-) – egreg May 2 '17 at 14:40
3

The suggestions in the comments work, but it sounds to me like you still want a properly italic ampersand, just not in that design. There are two solutions to this:

  1. Use a different font altogether. Tgtermes is close to computer modern (the default tex font), but gives you the ampersands that you want.

    \documentclass[a4paper]{memoir}
    \usepackage{amsmath}
    \usepackage{amsthm}
    \usepackage{tgtermes}
    \newtheorem{theo}{Theorem}
    
    \begin{document}
        Outside theorem \&
    \begin{theo}
        Inside theorem \&
    
    Inside theorem 2 \&
    \end{theo}
    
    \end{document}
    
  2. Borrow an individual character from another font. See e.g. Font substitution with XeLaTeX

enter image description here

  • Inside a list you need to indent code blocks by eight instead of four spaces – clemens May 2 '17 at 13:24
  • Package tgtermes gives you the font Computer Modern in math mode, but the font Times in text mode, hence the different (Times) ampersand. – Rosie F May 29 '17 at 8:00

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.