BBEdit 8.5.

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.

I poked around in BBEdit.app/Contents/Language Modules/TeX.bblm, and found that although the language support came from a plugin binary, the Info.plist contained the following:

        <key>com.barebones.bblm.TeX.languagesupport</key>
        <dict>
                <key>TeX </key>
                <dict>
                        <key>SectionalCommandList</key>
                        <array>
                                <string>part</string>
                                <string>section</string>
                                <string>subsection</string>
                                <string>subsubsection</string>
                                <string>chapter</string>
                                <string>subchapter</string>
                                <string>subsubchapter</string>
                        </array>
                </dict>
        </dict>

Groovy, thought I, as I inserted <string>sub</string> between subsection and subsubsection. I saved the result in the original module in BBEdit.app (should I have copied the whole bblm into ~/ Library/Application Support, etc., first?).

No effect. I closed the .tex file that used \sub, and reopened it: no effect. I quit and restarted BBEdit: no effect. Moving the sub item to between section and subsection, and restarting, didn't work either. It seems I'm not as smart as I thought.

What, if any, is the right way to add a new sectioning command to the TeX language?

        — F




--
------------------------------------------------------------------
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