TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to conform to the IoP guidelines, which from the IoP latex files they provide do not seem to follow the IoP guidelines. Several colleagues of mine have altered the files so they do fit the guidelines, with the caveat of needing to place \bigskip{} between section and subsection where one immediately follows the other.

Is it possible to automate this with a macro, so I don't need to go through my document and manually insert/remember to insert one?

I'm already using a macro as such:


Do I follow that formatting? How is it done?

share|improve this question
It's quite difficult to answer without knowing the context: what's the class used? – egreg Jan 12 '12 at 16:42
iopart.cls ? I'm assuming that's the class file. – Pureferret Jan 12 '12 at 16:50
The {spacing} tag is appropriate. – lockstep Jan 13 '12 at 19:56
It's fairly easy to add\bigskip after eyery \section. It's not that easy to add \bigskip only if a \subsection follows. – lockstep Jan 13 '12 at 20:24
No. One might add code to \section to see whether a \subsection follows directly. But from what I see in the result of the typesetting this seems not to be necessary. – egreg Jan 13 '12 at 20:48
up vote 3 down vote accepted

You can try with the following code




But, of course, you can't put \label commands after \section: for this you have to say

\section{A section\label{a-label}}

Anyway I believe that the safest method is to check your manuscript for \subsection commands directly following a \section. Moreover it's not good style, in my opinion, to start directly a subsection after a section title.

share|improve this answer
Thanks, that's more complicated than I expected. I think you're right about manually checking through. – Pureferret Jan 13 '12 at 21:22

Your Answer


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.