GeneralSimple question

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Abu Noor El-Din
Posts: 11
Joined: Wed Nov 21, 2007 1:43 am

Simple question

Post by Abu Noor El-Din »

Hi all,

I have a simple question. What is the difference between \emph and textit{}? I cannot notice the difference.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Simple question

Post by gmedina »

The \emph command switchs to the \itshape shape if the current font is upright, and to the \upshape shape if the current font is already slanted. Take a look at this example:

Code: Select all

\documentclass{article}

\begin{document}
\noindent
\emph{slanted text}\\
\textit{slanted text}\\
{\itshape slanted text}\\
{\itshape \emph{slanted} text?}\\
\textit{\emph{slanted} text?}\\
{\slshape Now with this shape}\\
{\slshape Now with \textit{this} shape}\\
{\slshape Now with \emph{this} shape}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Abu Noor El-Din
Posts: 11
Joined: Wed Nov 21, 2007 1:43 am

Re: Simple question

Post by Abu Noor El-Din »

Again, thanks gmedina very much.
Post Reply