ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Different prefixes for heads and references
@ 2009-08-17 20:26 Aditya Mahajan
  2009-08-18 13:03 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2009-08-17 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

How do I get different prefixes for heads and numbers. For example, I want

%-------------------------
\section {One}

\subsection[sec:test]{Two}

See \in[sec:test]
%------------------------

to give

%------------------
I One
A) Two

See I-A.
%--------------------

I tried playing around conversionsets, prefixsets, etc. but could not 
figure out how to do this. Is something like this possible with the new 
structure code?

Aditya



___________________________________________________________________________________
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: Different prefixes for heads and references
  2009-08-17 20:26 Different prefixes for heads and references Aditya Mahajan
@ 2009-08-18 13:03 ` Hans Hagen
  2009-08-18 18:16   ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2009-08-18 13:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aditya Mahajan wrote:
> Hi,
> 
> How do I get different prefixes for heads and numbers. For example, I want
> 
> %-------------------------
> \section {One}
> 
> \subsection[sec:test]{Two}
> 
> See \in[sec:test]
> %------------------------
> 
> to give
> 
> %------------------
> I One
> A) Two
> 
> See I-A.
> %--------------------
> 
> I tried playing around conversionsets, prefixsets, etc. but could not 
> figure out how to do this. Is something like this possible with the new 
> structure code?

this already works:

\starttext

\definestructureconversionset[default][Character,number,Romannumerals,Character][number]
\definestructureseparatorset [default][.,.,--][.]

\setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]

\section {One}

\subsection[sec:test]{Two}

See \in[sec:test]

\stoptext

configuring references in on the agenda (the info is there, but not yet 
the way to configure)

Hans

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

* Re: Different prefixes for heads and references
  2009-08-18 13:03 ` Hans Hagen
@ 2009-08-18 18:16   ` Aditya Mahajan
  2009-08-18 22:53     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2009-08-18 18:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 18 Aug 2009, Hans Hagen wrote:

> Aditya Mahajan wrote:
>> Hi,
>> 
>> How do I get different prefixes for heads and numbers. For example, I want
>> 
>> %-------------------------
>> \section {One}
>> 
>> \subsection[sec:test]{Two}
>> 
>> See \in[sec:test]
>> %------------------------
>> 
>> to give
>> 
>> %------------------
>> I One
>> A) Two
>> 
>> See I-A.
>> %--------------------
>> 
>> I tried playing around conversionsets, prefixsets, etc. but could not 
>> figure out how to do this. Is something like this possible with the new 
>> structure code?
>
> this already works:
>
> \definestructureconversionset[default][Character,number,Romannumerals,Character][number]
> \definestructureseparatorset [default][.,.,--][.]
>
> \setupstructurehead[subsection][sectionstopper=),sectionsegments=4:4]

Thanks, this is slightly cleaner than the MkII way of achieving the same 
thing.

> configuring references in on the agenda (the info is there, but not yet the 
> way to configure)

It will be great if you could get it to work by the end of September.

Aditya
___________________________________________________________________________________
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: Different prefixes for heads and references
  2009-08-18 18:16   ` Aditya Mahajan
@ 2009-08-18 22:53     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2009-08-18 22:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Aditya Mahajan wrote:

> It will be great if you could get it to work by the end of September.

ok, just remind me in time

Hans

-----------------------------------------------------------------
                                           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:[~2009-08-18 22:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-17 20:26 Different prefixes for heads and references Aditya Mahajan
2009-08-18 13:03 ` Hans Hagen
2009-08-18 18:16   ` Aditya Mahajan
2009-08-18 22:53     ` 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).