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?

1 Answers1

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

JPi
  • 13,595
  • Inside a list you need to indent code blocks by eight instead of four spaces – cgnieder May 02 '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 08:00