ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco <netuse@lavabit.com>
To: ntg-context@ntg.nl
Subject: Include section number in reference
Date: Wed, 12 Oct 2011 15:49:14 +0200	[thread overview]
Message-ID: <20111012154914.7bce82ab@glyph> (raw)

Hi,

the example below leads to:

I Foo
A Bar
subsection A

What I need is:

I Foo
A Bar
subsection I.A

How to convince \in… to include the section element?


%%%%%%%%%%%%%%%%%%%%%

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

\starttext
  \startsection [title=Foo]

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

    \in{subsection}[bar]

  \stopsection
\stoptext

%%%%%%%%%%%%%%%%%%%%%

Regards
Marco


___________________________________________________________________________________
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
___________________________________________________________________________________

             reply	other threads:[~2011-10-12 13:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12 13:49 Marco [this message]
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

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=20111012154914.7bce82ab@glyph \
    --to=netuse@lavabit.com \
    --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).