ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* title numbering
@ 2011-10-29 20:02 Pablo Rodríguez
  2011-10-30  7:36 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodríguez @ 2011-10-29 20:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi there,

I have been searching in the documentation (ConTeXt Reference Manual,
ConTeXt: An Excursion and the wiki) and I don't know how to implement a
basic feature: different title numbers.

I want to have chapters numbered with Roman numbers and sections with
capital letters and that none of them contains any other number than its
own (no part or/and chapter in chapter or section titles).

How can I achieve that? I guess this is basic functionality, but I'm not
able to find it in the documentation.

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: title numbering
  2011-10-29 20:02 title numbering Pablo Rodríguez
@ 2011-10-30  7:36 ` Wolfgang Schuster
  2011-10-30  8:08   ` Pablo Rodríguez
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-10-30  7:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.10.2011 um 22:02 schrieb Pablo Rodríguez:

> Hi there,
> 
> I have been searching in the documentation (ConTeXt Reference Manual,
> ConTeXt: An Excursion and the wiki) and I don't know how to implement a
> basic feature: different title numbers.
> 
> I want to have chapters numbered with Roman numbers and sections with
> capital letters and that none of them contains any other number than its
> own (no part or/and chapter in chapter or section titles).
> 
> How can I achieve that? I guess this is basic functionality, but I'm not
> able to find it in the documentation.

\definestructureconversionset[pablo][n,R,A][n]

\setuphead[sectionconversionset=pablo]

\setuphead[chapter][sectionsegments=chapter]
\setuphead[section][sectionsegments=section]

\starttext

\chapter{Chapter}

\section{Section}

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: title numbering
  2011-10-30  7:36 ` Wolfgang Schuster
@ 2011-10-30  8:08   ` Pablo Rodríguez
  2011-10-30 12:19     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodríguez @ 2011-10-30  8:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/30/2011 08:36 AM, Wolfgang Schuster wrote:
>> [...]
> \definestructureconversionset[pablo][n,R,A][n]
> 
> \setuphead[sectionconversionset=pablo]
> 
> \setuphead[chapter][sectionsegments=chapter]
> \setuphead[section][sectionsegments=section]
> 
> \starttext
> 
> \chapter{Chapter}
> 
> \section{Section}
> 
> \stoptext

Many thanks, Wolfgang, for your help.

I'm afraid that the code only works partially. Compiling it, gives the
following result:

1 Chapter
1 Section

And it should read:

I Chapter
A Section

I'm using ConTeXt from TeXLive 2011.

Thanks again,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: title numbering
  2011-10-30  8:08   ` Pablo Rodríguez
@ 2011-10-30 12:19     ` Wolfgang Schuster
  2011-10-30 13:00       ` Pablo Rodríguez
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-10-30 12:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 30.10.2011 um 09:08 schrieb Pablo Rodríguez:

> On 10/30/2011 08:36 AM, Wolfgang Schuster wrote:
>>> [...]
>> \definestructureconversionset[pablo][n,R,A][n]
>> 
>> \setuphead[sectionconversionset=pablo]
>> 
>> \setuphead[chapter][sectionsegments=chapter]
>> \setuphead[section][sectionsegments=section]
>> 
>> \starttext
>> 
>> \chapter{Chapter}
>> 
>> \section{Section}
>> 
>> \stoptext
> 
> Many thanks, Wolfgang, for your help.
> 
> I'm afraid that the code only works partially. Compiling it, gives the
> following result:
> 
> 1 Chapter
> 1 Section
> 
> And it should read:
> 
> I Chapter
> A Section
> 
> I'm using ConTeXt from TeXLive 2011.

Try “\setupheads[sectionconversionset=pablo]”

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: title numbering
  2011-10-30 12:19     ` Wolfgang Schuster
@ 2011-10-30 13:00       ` Pablo Rodríguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodríguez @ 2011-10-30 13:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 10/30/2011 01:19 PM, Wolfgang Schuster wrote:
> Am 30.10.2011 um 09:08 schrieb Pablo Rodríguez:
>> Many thanks, Wolfgang, for your help.
>>
>> I'm afraid that the code only works partially. Compiling it, gives the
>> following result:
>>
>> 1 Chapter
>> 1 Section
>>
>> And it should read:
>>
>> I Chapter
>> A Section
>>
>> I'm using ConTeXt from TeXLive 2011.
> 
> Try “\setupheads[sectionconversionset=pablo]”

Thanks, it works in the sample, but not in my real document.

I will try to find out why.

Thanks again,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-30 13:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-29 20:02 title numbering Pablo Rodríguez
2011-10-30  7:36 ` Wolfgang Schuster
2011-10-30  8:08   ` Pablo Rodríguez
2011-10-30 12:19     ` Wolfgang Schuster
2011-10-30 13:00       ` Pablo Rodríguez

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