views:

29

answers:

3

I am using Beamer in order to make a presentation. In one of the frames I want to write something like this:

"Italics is like that"

I used a command \it of Beamer for doing this:

\it{Italics} is like that

But as a result I get:

"Italics is like that"

Is it possible to make italics only a piece of text?

+1  A: 

What about \emph{text} ?

Jim Brissom
Works perfectly fine, thanks
Tim
A word of caution: `\emph` has different behavior depending on the style of the document. In some cases, it may italicize text, but in others, it may underline it, recolor it, etc.
gotgenes
@gotgenes thanks, in the env I work it italicize text
Tim
+4  A: 

I believe you're looking for \textit{}.

Also, in the future, consider asking LaTeX questions on the TeX - LaTeX Stack Exchange site.

gotgenes
Nice tip about the Tex stack exchange, thanks
Tim
+1 for TeX - LaTeX Stack Exchange site.
Mihir Gokani
+2  A: 

\it is a switch, it changes the font series starting from the point it was issued till the end of the current block. Therefore you have to enclose the block of text it should affect:

{\it Italics} is like that

Alternatively you can use \textit as suggested by gotgenes which only affects the text passed to the command within braces:

\textit{Italics} is like that.
Novox