* urgent reference problem (full path)
@ 2008-04-24 8:51 Steffen Wolfrum
2008-04-24 12:55 ` Steffen Wolfrum
0 siblings, 1 reply; 4+ messages in thread
From: Steffen Wolfrum @ 2008-04-24 8:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: urgent reference problem (full path)
2008-04-24 8:51 urgent reference problem (full path) Steffen Wolfrum
@ 2008-04-24 12:55 ` Steffen Wolfrum
2008-04-24 14:32 ` Wolfgang Schuster
2008-04-24 17:38 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Steffen Wolfrum @ 2008-04-24 12:55 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: urgent reference problem (full path)
2008-04-24 12:55 ` Steffen Wolfrum
@ 2008-04-24 14:32 ` Wolfgang Schuster
2008-04-24 17:38 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-04-24 14:32 UTC (permalink / raw)
To: Steffen Wolfrum; +Cc: mailing list for ConTeXt users, Taco Hoekwater
On Thu, Apr 24, 2008 at 2:55 PM, Steffen Wolfrum <context@st.estfiles.de> 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?
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: urgent reference problem (full path)
2008-04-24 12:55 ` Steffen Wolfrum
2008-04-24 14:32 ` Wolfgang Schuster
@ 2008-04-24 17:38 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2008-04-24 17:38 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-24 17:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-24 8:51 urgent reference problem (full path) Steffen Wolfrum
2008-04-24 12:55 ` Steffen Wolfrum
2008-04-24 14:32 ` Wolfgang Schuster
2008-04-24 17:38 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).