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 am trying to redefine \emph to bold its argument:

\renewcommand\emph[1]{{\textbf{\oldemph{#1}}}}

However, after typing this command before begin{document}, I get an error every time I use \emph{Some text.}: Undefined control sequence.

What is a control sequence? How do I fix my redefinition?

share|improve this question

closed as not a real question by doncherry, Kurt, Andrew Swann, Stefan Kottwitz Oct 29 '12 at 6:26

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

4  
Can you provide a minimal working example (MWE) that reproduces your error? –  user2473 Oct 29 '12 at 1:54
    
How did you define \oldemph? –  Mico Oct 29 '12 at 1:55
    
@cmhughes's answer solves my problem and has a working example. Sorry, I will make sure to provide an MWE in the future. –  David Faux Oct 29 '12 at 2:00
    
@DavidFaux glad it helped- my code is an example of a complete MWE :) –  cmhughes Oct 29 '12 at 2:02
add comment

1 Answer

up vote 4 down vote accepted

The following works for me

\documentclass{article}

\let\oldemph\emph
\renewcommand\emph[1]{{\bfseries{\oldemph{#1}}}}

\begin{document}

\emph{hello world}
\end{document}
share|improve this answer
add comment

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