X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] ["1739" "Sun" "31" "October" "1999" "12:25:03" "+0100" "Frank Mittelbach" "frank.mittelbach@LATEX-PROJECT.ORG" nil "58" "Re: section heading templates" "^Date:" nil nil "10" nil "section heading templates" nil nil nil] nil) Received: from mail.listserv.gmd.de (mail.listserv.gmd.de [192.88.97.5]) by mail.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id NAA01313 for ; Sun, 31 Oct 1999 13:58:51 +0100 (MET) Received: from mail.listserv.gmd.de (192.88.97.5) by mail.listserv.gmd.de (LSMTP for OpenVMS v1.1a) with SMTP id <7.93202640@mail.listserv.gmd.de>; Sun, 31 Oct 1999 13:59:12 +0100 Received: from RELAY.URZ.UNI-HEIDELBERG.DE by RELAY.URZ.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 1.8b) with spool id 444945 for LATEX-L@RELAY.URZ.UNI-HEIDELBERG.DE; Sun, 31 Oct 1999 14:59:10 +0200 Received: from mail.Uni-Mainz.DE (root@trudi.zdv.Uni-Mainz.DE [134.93.8.159]) by relay.urz.uni-heidelberg.de (8.8.8/8.8.8) with ESMTP id NAA23429 for ; Sun, 31 Oct 1999 13:59:05 +0100 (MET) Received: from istrati.zdv.uni-mainz.de (root@dialin406.zdv.Uni-Mainz.DE [134.93.175.106]) by mail.Uni-Mainz.DE (8.9.3/8.9.3) with ESMTP id NAA09334 for ; Sun, 31 Oct 1999 13:58:37 +0100 (MET) Received: (from design@localhost) by istrati.zdv.uni-mainz.de (8.9.3/8.9.3) id MAA00348; Sun, 31 Oct 1999 12:25:03 +0100 X-Authentication-Warning: istrati.zdv.uni-mainz.de: design set sender to design@istrati.zdv.uni-mainz.de using -f References: <199910011527.LAA04020@hilbert.math.albany.edu> <199910281728.SAA15046@mimosa.csv.warwick.ac.uk> <14361.49815.612920.201449@n15ux24.nets.de.eds.com> <3819E188.5C84682@uni-tuebingen.de> Message-ID: <199910311125.MAA00348@istrati.zdv.uni-mainz.de> Reply-To: Mailing list for the LaTeX3 project In-Reply-To: <3819E188.5C84682@uni-tuebingen.de> Date: Sun, 31 Oct 1999 12:25:03 +0100 From: Frank Mittelbach Sender: Mailing list for the LaTeX3 project To: Multiple recipients of list LATEX-L Subject: Re: section heading templates Status: R X-Status: X-Keywords: X-UID: 3371 Marcel Oliver writes: > What I would really like to see at the user level is the possibility > of relative sectioning commands. having read this far i thought that you meant something like this: \begin{head}{Main heading} text text text \begin{head}{Sub heading} text text \end{head} \begin{head}{Another sub heading} text text \end{head} \end{head} etc. something like this would be easy to provide, eg you simply would do something like this: \newcounter{headlevel} \DeclareDocumentEnvironment{head} { s o m } % or whatever you parse here { \stepcounter{headlevel} \UseInstance{heading}{\Alph{headlevel}-head} ... } { \addtocounter{headlevel}{-1} } which means that for each level one would need to define an instance with the name A-head, B-head, ... however, this would not solve: > One requirement should be that one > can mix absolute and relative sectioning in a natural way. To explain but to be honnest i don't think that a concept of mixing absolute names with relative names via a label/ref mechanism is really helpful. > \section{AAA} \label{aaa} > \section[aaa]{BBB} > \subsection{CCC} > \section{DDD} I agree that it is a bit of a pain to change a heading tree in a LaTeX document at the moment but something like the above seems to mak a document completely uncomprehensible (if used on a larger scale). So in my opinion it is better to either accept that changing the names is necessary if one changes the structure or to use a real relative naming scheme (as outlined above) in the first place. --- or perhaps i'm just getting too old for revolutionary changes? anybody else having some views on this? frank