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>
Cc: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Subject: Re: Include section number in reference
Date: Sat, 16 Mar 2013 18:37:51 +0100	[thread overview]
Message-ID: <C5E9EEFE-A836-44C0-8FB0-4704728B27F8@st.estfiles.de> (raw)
In-Reply-To: <B6BDE8BD-91BB-4C5E-9D57-A59F9794AC2F@googlemail.com>


Am 13.10.2011 um 22:48 schrieb Wolfgang Schuster:

> 
> Am 13.10.2011 um 22:36 schrieb Marco:
> 
>> Does anyone have an idea?
>> 
>> What I  do at the moment  is that I manually  reference my
>> sections. But  I'm convinced, there's a  neat solution for
>> that.
> 
> \setupreferencestructureprefix[default][prefixsegments=2:*]
> 
> Wolfgang



If I run Marcos example (as seen below), it gives:

I Foo
A Bar
subsection A


But how do we get 
I Foo
A Bar
subsection I.A ??


Steffen
-------


\definestructureconversionset [myset]
 [
   Romannumerals,
   Romannumerals,
   Romannumerals,
   Character,
 ]
 [numbers]
\setuphead [sectionconversionset=myset]
\setuphead
 [subsection]
 [sectionsegments=subsection]

\setupreferencestructureprefix[default][prefixsegments=1:*]


 \startsection [title=Foo]

   \startsubsection [title=Bar, reference=bar]
   \stopsubsection

   \in{subsection}[bar]

 \stopsection
 

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      parent reply	other threads:[~2013-03-16 17:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12 13:49 Marco
2011-10-13 20:36 ` Marco
2011-10-13 20:48   ` Wolfgang Schuster
2011-10-14 11:18     ` Marco
2011-10-14 11:28       ` Wolfgang Schuster
2011-10-15 15:03         ` Wolfgang Schuster
2011-10-16 17:00           ` Marco
2013-03-16 17:37     ` Steffen Wolfrum [this message]

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=C5E9EEFE-A836-44C0-8FB0-4704728B27F8@st.estfiles.de \
    --to=context@st.estfiles.de \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@googlemail.com \
    /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).