I used to use
{\rm \&}
for ampersands in the bibliography, but it is deprecated, and leads to an error with scrbook document class.
If I remove the "\rm" it looks like this:
But what I want is this
but actually better in italic.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe italic version of the ampersand in Computer Modern just looks like the first picture you posted. But you could use the slanted version of it:
\documentclass{article}
\begin{document}
\& % or {\upshape \&}
{\itshape \&}
{\slshape \&}
\end{document}
Edit
If you want to change the appearance of & in the whole document to it’s non-italic version, you could make use of this answer. For example as follows:
\documentclass{article}
\makeatletter
\DeclareRobustCommand*{\&}{%
\nfss@text{%
\upshape\symbol{`\&}%
}%
}
\makeatother
\begin{document}
\textit{one \& two}
\textbf{one \& two}
\texttt{one \& two}
\end{document}
This way, the & will always be non-italic, but bold face or changing to another font will still work. However, take care that this may lead to bad kerning (especially between the non-italic & and an italic letter that follows) and, of course, it prevents you from entering an italic &. Also, it is possible that this breaks due to incompatibilities in certain situations.
\textrm
actually sets the font family to a roman (= serif) font, regardless of its shape (italic or not). You can use {\upshape \&}
to achieve this effect. Do you want to override the default shape for the whole document at once?
Nov 26, 2019 at 19:04
\rm
hasn't been defined by default in latex since 1993, use\textrm{\&}
but the form you show is the usual italic form in most fonts.