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 defined this \newcommand for binomial genus/species names, which should be in italics:

\newcommand{\taxon}[1]{{\it #1}}

For whatever reason, it only renders the relevant text in italics if I use \it; \emph or \textit do not work (the text is unchanged).

Is there a reason for this strange behaviour? \textit and \emph work perfectly well if I apply them directly.

share|improve this question
4  
Note that \textit takes an argument. Have you written \textit{#1}? –  Stephan Lehmke Aug 27 '12 at 4:29
1  
I'm curious: \it is deprecated since 1993 (release of LaTeX2e). Which documentation told you to use it? –  Martin Schröder Aug 27 '12 at 20:57

1 Answer 1

Update: \it is deprecated in LaTeX2e, therefore using \itshape instead.

\itshape is the declarative form. At this time the text is in italics until the current group ends. \textit sets the argument in italics:

{\itshape ...}
\textit{...}

\emph emphasizes the argument, whereas \em is the declarative form.

The macro definitions for these variants:

\newcommand*{\taxon}[1]{{\itshape #1}}
\newcommand*{\taxon}[1]{{\em #1}}
\newcommand*{\taxon}[1]{\textit{#1}}
\newcommand*{\taxon}[1]{\emph{#1}}
share|improve this answer
    
Thanks, that makes sense. –  Roger Aug 27 '12 at 4:49

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.