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?

Timofey
  • 2,478
  • 3
  • 37
  • 53

3 Answers3

8

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

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

Community
  • 1
  • 1
gotgenes
  • 38,661
  • 28
  • 100
  • 128
5

\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.
Frank
  • 2,738
  • 19
  • 30
  • this doesn't work in \begin{frame}{\textit{italics}}. There is no error reported...it just doesn't do anything...(I'm using the Metropolis theme) – Fernando DePaolis Jan 18 '22 at 17:19
1

What about \emph{text} ?

Jim Brissom
  • 31,821
  • 4
  • 39
  • 33
  • 1
    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 Oct 20 '10 at 21:52