On Sep 3, 2007, at 18:56, Fritz Anderson wrote:

I'm editing some LaTeX, and because I was dissatisfied by the way pdflatex was laying out subsections, I defined a new command for sectioning. For what it's worth, it's

        \newcommand{\sub}[1]{\subsection* {#1}\setlength{\parskip}{2ex}}

It works fine as far as LaTex goes, but I found I lost the folding I'd had with \subsection. Other than changing subsection*, which got folding, to sub, which didn't, I made no change to my LaTeX source.

The right way would be to alter the \subsection command to conform to your idea of sectioning. This is a little trickier for starred commands, but usually you can dive into the code of the class you're using, and find out which commands to alter. Doing it this way keeps the content of your document more portable, and maintains some separation between formatting and content.

Maarten

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to