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.

In the following documentclass

\documentclass[prb,twocolumn,showpacs]{revtex4}

how to have italic and bold in a subsection title? The italic command removes the boldness when inside a subsection, so I tried the following :

\subsection{Short-range {\bf {\it vs}} long-range scattering}

It does not work. Any idea how to solve this? Maybe the documentclass has nothing to do with it, I did not check it.

share|improve this question
5  
For the record, the Documentation on Obsolete commands and packages warns against continuing to use "\it" and "\bf". –  frabjous Jan 18 '11 at 16:49

3 Answers 3

up vote 14 down vote accepted

This has nothing to do with the documentclass, but with font selection. \it selects non-bold italics, and \bf selects non-italic bold. You should use

\textbf{\textit{vs}}

instead. See also this question.

share|improve this answer
    
+1 for the link to Caramdir's answer. I've deleted my own answer. –  lockstep Jan 18 '11 at 14:17

Try doing \textit{\textbf{vs}} instead. That should work.

share|improve this answer

Using \secit{vs} would solve the problem. This is how I worked it out for my subsection when I needed both bold and italic.

share|improve this answer
    
Welcome to TeX.sx! A tip: You can use backticks ` to mark your inline code as I did in my edit. –  doncherry Jan 6 '13 at 7:04
2  
How is \secit defined? revtex4 does not include it. –  Werner Jan 6 '13 at 7:04

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.