[NTG-context] section to have different conversion in body part and appendices

Procházka Lukáš Ing. LPr at pontex.cz
Wed May 22 13:06:23 CEST 2019


Hello,

that's it - thanks!

The following code seems to be even more minimal & working:

----
\definestructureconversionset[appendix:sectionnumbers][,,A,]

\setupheads[sectionconversionset=sectionnumbers]

\starttext
   \completecontent

   \startbodymatter
     \part{Part}
       \chapter{Chap}
         \section{In body}
           \subsection{SSec}
   \stopbodymatter

   \startappendices
     \part{Part}
       \chapter{Chap}
         \section{In apps}
           \subsection{SSec}
   \stopappendices
\stoptext
----

Best regards,

Lukas


On Tue, 21 May 2019 16:14:45 +0200, Pablo Rodriguez <oinos at gmx.es> wrote:

> On 5/21/19 3:10 PM, Procházka Lukáš Ing. wrote:
>> Hello,
>>
>> is there a way to tell \section (or other heads) to be "number-converted" differently in bodypart and appendices?
>
> Hi Lukáš,
>
> I think this is what you want to achieve:
>
>     \definestructureconversionset
>         [sectionnumbers]
>         [0,R,n,n,g]
>         [n]
>
>     \definestructureconversionset
>         [appendix:sectionnumbers]
>         [0,R,Characters,g,characters]
>         [n]
>
>     \setupheads
>         [sectionconversionset=sectionnumbers]
>
>     \setuphead[section][] % e.g. "appendices:numberconversion=A"?
>     \starttext
>        \startbodymatter
>          \section{In body} % To produce "1. In body"
>        \stopbodymatter
>        \startappendices
>          \section{In apps} % To produce "A In apps"
>        \stopappendices
>     \stoptext
>
> I hope it helps,
>
> 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 at 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
> ___________________________________________________________________________________
>


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz | IDDS: nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AppNum2.mkiv
Type: application/octet-stream
Size: 431 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190522/abc32295/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AppNum2.pdf
Type: application/pdf
Size: 12141 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190522/abc32295/attachment.pdf>


More information about the ntg-context mailing list