From: "Procházka Lukáš Ing." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: section to have different conversion in body part and appendices
Date: Wed, 22 May 2019 13:06:23 +0200 [thread overview]
Message-ID: <op.z16ugxve62epfj@lpr.pontex.local> (raw)
In-Reply-To: <7b10aae2-ae02-8238-cf26-bd265841ae2d@gmx.es>
[-- Attachment #1: Type: text/plain, Size: 2334 bytes --]
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@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@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@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS: nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
[-- Attachment #2: AppNum2.mkiv --]
[-- Type: application/octet-stream, Size: 431 bytes --]
\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
[-- Attachment #3: AppNum2.pdf --]
[-- Type: application/pdf, Size: 12141 bytes --]
[-- Attachment #4: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2019-05-22 11:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 13:10 Procházka Lukáš Ing.
2019-05-21 14:14 ` Pablo Rodriguez
2019-05-22 11:06 ` Procházka Lukáš Ing. [this message]
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=op.z16ugxve62epfj@lpr.pontex.local \
--to=lpr@pontex.cz \
--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).