urgent reference problem (full path)
Hi, my current project is set up like shown below. A serious problem is the section-reference: while section numbering should be in general (text and TOC) without previous number, it must show the full path when referenced (otherwise nobody will find "2"). Is there help? Thank you very much, Steffen \definehead[EbeneEins] [chapter] \setupsection[section-3][conversion=Characters,previousnumber=no] \setupsection[section-4][conversion=Romannumerals,previousnumber=no] \setupsection[section-5][conversion=numbers,previousnumber=no] % %\setupsection[section-3][conversion=Characters,previousnumber=yes] %\setupsection[section-4][conversion=Romannumerals,previousnumber=yes] %\setupsection[section-5][conversion=numbers,previousnumber=yes] %\def\NummerGewStyle{\switchtobodyfont[rm,10pt] \setupinterlinespace[line=12pt]\mr} \def\KapitelZweiCommand#1#2% {\vbox \bgroup \framed[align=middle,frame=off,offset=0pt,width=\textwidth] {Abschnitt #1\blank [6pt]}% \framed[align=middle,frame=off,offset=0pt,width=\textwidth]{#2}% \egroup} \setuphead[EbeneEins] [header=empty,page=yes,command= \KapitelZweiCommand ,style =,alternative=paragraph,before={\blank[24pt]},after={\blank[14pt]}] \starttext \EbeneEins{Eins} \subsection{Zuerst} \subsubsection{Test} \subsubsection[MyRef]{Here reference test} \subsubsection{Test} \subsection{Danach} \subsubsection{Test} \subsubsection{Test} \section{Zwei} \subsection{Und dann} \subsubsection{Test} In \in[MyRef] % should be: Abschnitt 1 I.2 \stoptext
I don't know how the section number (with/without previous number) is build internally, but I hope there could be a hack, with ... setupsection[...][previousnumber=yes]% so that referencing gets the full path ... but a section-design like "previousnumber=no", made with ... \setuphead[...][command=\PreviousNumberNo] Could this be done? Steffen Am 24.04.2008 um 10:51 schrieb Steffen Wolfrum:
Hi,
my current project is set up like shown below.
A serious problem is the section-reference: while section numbering should be in general (text and TOC) without previous number, it must show the full path when referenced (otherwise nobody will find "2").
Is there help?
Thank you very much,
Steffen
\definehead[EbeneEins] [chapter]
\setupsection[section-3][conversion=Characters,previousnumber=no] \setupsection[section-4][conversion=Romannumerals,previousnumber=no] \setupsection[section-5][conversion=numbers,previousnumber=no] % %\setupsection[section-3][conversion=Characters,previousnumber=yes] %\setupsection[section-4][conversion=Romannumerals,previousnumber=yes] %\setupsection[section-5][conversion=numbers,previousnumber=yes]
%\def\NummerGewStyle{\switchtobodyfont[rm,10pt] \setupinterlinespace[line=12pt]\mr} \def\KapitelZweiCommand#1#2% {\vbox \bgroup \framed[align=middle,frame=off,offset=0pt,width=\textwidth] {Abschnitt #1\blank [6pt]}% \framed[align=middle,frame=off,offset=0pt,width=\textwidth]{#2}% \egroup} \setuphead[EbeneEins] [header=empty,page=yes,command= \KapitelZweiCommand ,style =,alternative=paragraph,before={\blank[24pt]},after={\blank[14pt]}]
\starttext \EbeneEins{Eins} \subsection{Zuerst} \subsubsection{Test} \subsubsection[MyRef]{Here reference test} \subsubsection{Test} \subsection{Danach} \subsubsection{Test} \subsubsection{Test} \section{Zwei} \subsection{Und dann} \subsubsection{Test} In \in[MyRef] % should be: Abschnitt 1 I.2 \stoptext
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Thu, Apr 24, 2008 at 2:55 PM, Steffen Wolfrum
I don't know how the section number (with/without previous number) is build internally, but I hope there could be a hack, with ...
setupsection[...][previousnumber=yes]% so that referencing gets the full path
... but a section-design like "previousnumber=no", made with ...
\setuphead[...][command=\PreviousNumberNo]
Could this be done?
I hope we get a better interface in the future. \def\CurrentChapterNumber#1#2% {\countervalue{@@sesection-2}:#2} \def\CurrentSectionNumber#1#2% {\countervalue{@@sesection-3}:#2} \setuphead[chapter][command=\CurrentChapterNumber] \setuphead[section][command=\CurrentSectionNumber] \starttext \chapter{text} \section[label]{text} \section{text} \section{text} \chapter{text} \in{Section}[label] \section{text} \section{text} \section{text} \stoptext Wolfgang
Steffen Wolfrum wrote:
I don't know how the section number (with/without previous number) is build internally, but I hope there could be a hack, with ...
setupsection[...][previousnumber=yes]% so that referencing gets the full path
.... but a section-design like "previousnumber=no", made with ...
\setuphead[...][command=\PreviousNumberNo]
Could this be done?
the current mechanisms are a messy compromise of old tex, newer tex (etex) and history ... lists, references and sectioning will be rewritten (and more flexible) for mkiv ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Steffen Wolfrum
-
Wolfgang Schuster