On Fri, 13 Apr 2007 16:11:53 -0600
"Idris Samawi Hamid"
On Tue, 10 Apr 2007 08:29:56 -0600, Aditya Mahajan
wrote: On Fri, 30 Mar 2007, Patrick Gundlach wrote:
Hi,
would it make sense to have, in addtion to e.g. \section a start..stop pair?
such as
\startsection{my section name}
\stopsection
with something like \let\startsection\section \let\stopsection\relax
This way the text would be slightly more structured.
For now:
===================== \def\startchapter[#1]#2% {\getparameters[Chapter][#1]\chapter{#2}} \def\stopchapter{}
\def\startsection[#1]#2% {\getparameters[Section][#1]\section{#2}} \def\stopsection{}
\def\startsubsection[#1]#2% {\getparameters[Subsection][#1]\subsection{#2}} \def\stopsubsection{}
Hi, you can avoid all these definition by changing the \definisection commands in core-sec. YOu nedd only a few extra lines at the end from the \dododefinehead macro. Just add: \setvalue{\e!start#1}##1[##2]% {\getparameters[\??se\??se#1][\c!ref=,\c!title=,##2]% \getvalue{#1}[\getvalue{\??se\??se#1\c!ref}]{\getvalue{\??se\?? se#1\c!title}}}% \setvalue{\e!stop#1}{\relax} for Tacos version. \startsetion[ref=...,title=...] ... \stopsection or add: \setvalue{\e!start#1}{\getvalue{#1}}% \setvalue{\e!stop#1}{\relax} for Patricks version. \startsection[reference]{title} ... \stopsection
\def\startfootnote[#1]#2% {\getparameters[Footnote][#1]\footnote\bgroup#2} \def\stopfootnote{\egroup{}} =====================
\def\startfootnote[#1]#2\stopfootnote {\footnote[#1]{#2}} We need something in core-not that creates start/stop commands for everything defined with \definenote. It is not as easy as extending the section commands.
All based on a note from Taco; I don't really know how it works...
The footnote one needs a % at the end of the preceding line, don't know how to gobble it:
text.% \startfootnote[] note. \stopfootnote{} text
Further: I now use fake start-stops in my environments/preambles. In conjunction with an editor that can handle TeX-syntax folding, they area really good organizing tools. So I have a file startstops.tex with totally naive things like
======================= \let\startENV=\relax \let\stopENV=\relax \let\startLET=\relax \let\stopLET=\relax \let\startFONTS=\relax \let\stopFONTS=\relax \let\startLISTS=\relax \let\stopLISTS=\relax \let\startPAPER=\relax \let\stopPAPER=\relax \let\startTITLE=\relax \let\stopTITLE=\relax \let\startLAYOUT=\relax \let\stopLAYOUT=\relax \let\startBIBLIO=\relax \let\stopBIBLIO=\relax \let\startALIASES=\relax \let\stopALIASES=\relax \let\startSTRUCTURE=\relax \let\stopSTRUCTURE=\relax \let\startSTARTSTOPS=\relax \let\stopSTARTSTOPS=\relax \let\startDESCRIPTIONS=\relax \let\stopDESCRIPTIONS=\relax \let\startINTERACTIONS=\relax \let\stopINTERACTIONS=\relax =======================
Syntax-folding makes things soooo much easier and efficient.
Best Idris
Gruß Wolfgang