ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \setuphead[part] - special look
Date: Mon, 29 Jun 2015 14:33:41 +0200	[thread overview]
Message-ID: <55913B25.20408@gmail.com> (raw)
In-Reply-To: <op.x0zqju0ttpjj8f@lpr>


[-- Attachment #1.1: Type: text/plain, Size: 1724 bytes --]


> Procházka Lukáš Ing. - Pontex s. r. o. <mailto:LPr@pontex.cz>
> 29. Juni 2015 14:05
> Hello,
>
> one more question.
>
> When I place \part into \...bodymatter and \...appendices, the \part 
> in body matter yields "Díl " + number, which is OK, but in appendices 
> it gives "<nothing>" + Roman number ("I", "II", ...).
You have to change the default conversion for the appendix.
> What is the most systemic to \setuphead[part] to give "Díl..." in body 
> matter and "Dodatek..." in appendices, and also to get letter 
> numbering ("A", "B"...) in appendices (so "Dodatek A", "Doadatek B", 
> ...)?
You have to set a label for the appendix with the appendixlabel key.
> A sample source code with body matter and appendices is attached...
% Method 1: change the values of the predefined "default" conversion set,
% you can use name of the sectionblock as prefix (separated by a :) to set
% the values only for a certain part (e.g. the appendix) of your document

\defineconversionset[appendix:default][A,R][n]

% Method 2: Create your own conversion set and apply it to all sections
%
% \defineconversionset[bodypart:myconversion][n,n][n]
% \defineconversionset[appendix:myconversion][A,R][n]
% \setuphead[part,chapter,section][sectionconversionset=myconversion]

\setuphead
   [part]
   [placehead=yes,
    bodypartlabel=bodypart-mypart,
    appendixlabel=appendix-mypart]

\setuplabeltext[en][bodypart-mypart=Díl ,appendix-mypart=Dodatek ]

\starttext
     \startbodymatter
         \part{My First Part}
         \input knuth
     \stopbodymatter
     \startappendices
         \part{My First Appendix}
         \input tufte
     \stopappendices
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 3324 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2015-06-29 12:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22  7:35 Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-22  8:51 ` Wolfgang Schuster
2015-06-22  9:42   ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-22 16:36     ` Wolfgang Schuster
2015-06-23  7:45       ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-23 14:28         ` Wolfgang Schuster
2015-06-29 12:05           ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-29 12:33             ` Wolfgang Schuster [this message]
2015-06-29 13:09               ` Procházka Lukáš Ing. - Pontex s. r. o.

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=55913B25.20408@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).