6

I need a short command to replace \textbf{\emph{...}}. Especially, in entering tables in the text editor, this would help me to keep the structure of table uniform and easy to edit.

Thanks.

10

It would be more normal to use \textit rather than \emph in a table cell, as it isn't normally free text that requires emphasis,

You can make commands as short as you like, also the table cell automatically scopes the font change so you can use the declaration form rather than the form that takes an argument.

After

\newcommand\z{\bfseries\itshape}

You can use

.... &\z this is bold italic & this is not bold italic & ...\\
5

Why not define it yourself:

\newcommand{\bfem}[1]{\textbf{\emph{#1}}}

After that you can use it just like the predefined commands \textbf and \emph.

See also the Comprehensive list of tools that simplify the generation of LaTeX tables to make life even simpler.

  • Thanks. Usually, I generate the Latex tables directly from the simulator. However, there are a few tables that I have to type in. – imriss Jul 3 '13 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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