ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: urgent reference problem (full path)
Date: Thu, 24 Apr 2008 10:51:02 +0200	[thread overview]
Message-ID: <A97187A0-D0D5-4A2D-95E1-6BC2AF637EC4@st.estfiles.de> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2008-04-24  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24  8:51 Steffen Wolfrum [this message]
2008-04-24 12:55 ` Steffen Wolfrum
2008-04-24 14:32   ` Wolfgang Schuster
2008-04-24 17:38   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A97187A0-D0D5-4A2D-95E1-6BC2AF637EC4@st.estfiles.de \
    --to=context@st.estfiles.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).