Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want & symbol in small font size. But \small{\&} produces italicized ampersand symbol like here. How can I get the small fontsize & symbol?

Edit: figured out that, the italics was because of the theorem environment (from acm_proc_article-sp style). Is there any way to override italics only for & character?

share|improve this question
    
Harish Kumar's answer is correct. Hovever, I don't get the result you complain about in standard document. The italics must be due to something else in your document. –  Andrew Swann Jan 15 '13 at 12:58
    
I figured that the italics were because of the theorem environment, and have updated the question accordingly. The question is not the same duplicate anymore. –  anuj919 Jan 15 '13 at 13:14
    
Turns out \DeclareMathOperator{\amp}{\textup{\scriptsize \&}} solves the problem. As question is now closed, I can not add this as answer. –  anuj919 Jan 15 '13 at 13:26
2  
Well, the question was originally a duplicate. If you change the meaning (such as "how to get an upright ampersand within italic text"), please do it clearly (no "Edit:" addition, reworded) including the title. Also consider, it it just a localized support question (fixed) or of good use for the public, i.e. a bit general (not just "how do I ... in acm_proc_article-sp ... in the case xy ... ). Then I'm convinced to reopen. ;-) But everybody feel free to cast a reopen vote. –  Stefan Kottwitz Jan 15 '13 at 14:01
add comment

1 Answer

\small doesn't take an argument. Use it like \small \&. To make the effect local, put the entire thing inside braces like {\small \&}

\documentclass{article}
\begin{document}

\Huge \& \huge \& \LARGE \& \large \& \normalsize \& \small \& \footnotesize \&  \scriptsize \& \tiny \&
\end{document}

enter image description here

Edit

In math mode I get this:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
E_{1} \& \text{\small\&} E_{2}
\]
\end{document}

enter image description here

If this is what you are not getting, then something else is going on in your code. Please try posting it so that we can play with it :-)

share|improve this answer
    
Ah, silly me. Thanks! –  anuj919 Jan 15 '13 at 12:52
    
BTW I still get italicized & when I use this in math mode. I am not able to figure out why. How can I do this is math mode? I tried using both \mathrm and \textrm. –  anuj919 Jan 15 '13 at 13:02
1  
The problem was the theorem environment, which was italicizing the &. After google-ing I found that declaring & as binary operator, I can stop it from being italicized. So \DeclareMathOperator{\amp}{\textup{\scriptsize \&}} resolves my problem. –  anuj919 Jan 15 '13 at 13:24
    
@anuj919 I don't think \textup is needed. If you enclose it inside as \text{\&}, then it is treated as normal text, hence won't be italicized. –  Harish Kumar Jan 15 '13 at 13:27
1  
Without \textup, it becomes italicized again. :) –  anuj919 Jan 15 '13 at 13:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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