ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Appendix question
@ 2020-09-08 10:40 jbf
  2020-09-08 18:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: jbf @ 2020-09-08 10:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

A (hopefully) simple question this time:

Why would my appendices be labelled as Appendix One, Appendix Two etc., 
instead of Appendix A, Appendix B? I thought Appendices would normally 
be labelled alphabetically, not numerically.

So I get APPENDIX as the label, I have:

\setuplabeltext
   [en]
   [chapter={\bf Chapter }, appendix=APPENDIX ]

But elsewhere I have:

\setupheads[chapter][indentnext=no,conversion=Words,distance=.25em]

So is that what is affecting my appendices, and if so how do I do it so 
that Chapters get words (One, Two, etc) and Appendices get letters (A,B, 
etc)?

Julian

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Appendix question
  2020-09-08 10:40 Appendix question jbf
@ 2020-09-08 18:31 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2020-09-08 18:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

jbf schrieb am 08.09.2020 um 12:40:
> A (hopefully) simple question this time:
> 
> Why would my appendices be labelled as Appendix One, Appendix Two etc., 
> instead of Appendix A, Appendix B? I thought Appendices would normally 
> be labelled alphabetically, not numerically.
> 
> So I get APPENDIX as the label, I have:
> 
> \setuplabeltext
>    [en]
>    [chapter={\bf Chapter }, appendix=APPENDIX ]
> 
> But elsewhere I have:
> 
> \setupheads[chapter][indentnext=no,conversion=Words,distance=.25em]
> 
> So is that what is affecting my appendices, and if so how do I do it so 
> that Chapters get words (One, Two, etc) and Appendices get letters (A,B, 
> etc)?

Use sectionconversionset to set the number conversion for all section 
levels and ignore the conversion key.

\defineconversionset [bodypart:section] [n,Word] [n]
\defineconversionset [appendix:section] [n,A] [n]

\setupheads
   [sectionconversionset=section]

\setuplabeltext
   [en]
   [chapter=Chapter ,
    appendix=Appendix ]

\starttext

\startbodymatter

\stopbodymatter

\dorecurse{5}{\chapter{Chapter #1}}

\startappendices

\dorecurse{5}{\chapter{Chapter #1}}

\stopappendices

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-09-08 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-08 10:40 Appendix question jbf
2020-09-08 18:31 ` Wolfgang Schuster

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