[texhax] Conditional control of paragraph spacing.
Ben Whale
ben.whale at anu.edu.au
Tue Sep 19 09:25:34 CEST 2006
Hi,
I want to produce an environment so that when it follows anything but a
chapter( or section, subsection, etc...) command it inserts a \smallskip. I
have been unable to do this. Help please!
Here is a small example of code that I have tried, but that doesn't work
\newboolean{indent}
\setboolean{indent}{false}
\newcommand{\bensection}[1]{\setboolean{indent}{false}\section{#1}}
\newenvironment{Para}
{\ifthenelse{\boolean{indent}}{\smallskip}{\setboolean{indent}{true}}
\noindent\ignorespaces}
{\ignorespacesafterend}
I am running an up to date version of MikTeX.
Ben Whale
Centre for Gravitational Physics
Department of Physics
Faculty of Science
The Australian National University
ACT 0200
AUSTRALIA
ben.whale at anu.edu.au
Ph: +61-2-6125-9977
Fax: +61-2-6125-0741
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.5/450 - Release Date: 18/09/2006
More information about the texhax
mailing list