From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91771 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \setuphead[part] - special look Date: Mon, 29 Jun 2015 14:33:41 +0200 Message-ID: <55913B25.20408@gmail.com> References: <5587CCA2.9010806@gmail.com> <55883973.1010502@gmail.com> <55896D1E.8070809@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1216875033==" X-Trace: ger.gmane.org 1435581279 21213 80.91.229.3 (29 Jun 2015 12:34:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 12:34:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jun 29 14:34:24 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9YGW-0001ME-1g for gctc-ntg-context-518@m.gmane.org; Mon, 29 Jun 2015 14:34:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3628910243 for ; Mon, 29 Jun 2015 14:34:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cVIQUdaxbHXg for ; Mon, 29 Jun 2015 14:34:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B5D2310244 for ; Mon, 29 Jun 2015 14:33:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 249E0101F9 for ; Mon, 29 Jun 2015 14:33:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id a_U1deVb41os for ; Mon, 29 Jun 2015 14:33:51 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 40449101F7 for ; Mon, 29 Jun 2015 14:33:51 +0200 (CEST) Original-Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t5TCXj85030406 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 29 Jun 2015 14:33:45 +0200 Original-Received: by wiga1 with SMTP id a1so69965867wig.0 for ; Mon, 29 Jun 2015 05:33:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=cBQXZjzcveWwyIV/C0f41QyMu95oO+rx8uImKD1IEXc=; b=l50bLJxK0vIn+V0V7zPv4sYtkvB0Q024uoeOFrZC06yarmN3vL098oFHhvH1n9yMfS /fOV6fb16egnVyMfUPfDve4EMgQqs7XD2XsA9A/flpvEP6muMMZbGrH+xWHRP82TJjAc OmO/Hfpkn1s1c9wBO1AnJkbfUe6JbQ1rP9ck8HBy7jz9GStcqEVXwQ8BDbM1wgbSGwpk Esu8KKL9peHPjHjDDuxEt7RXYPqnkALilCAYPzX6SCqjYiWKmZhpvWsBs/02CeoKbQ1i lP9b3GGPi5eFkzfK1amc42ayS639ZzWo3VUeUQ2AOIMOHx9ejZiLVvHoBieXlT6sLi+a wYtQ== X-Received: by 10.181.11.229 with SMTP id el5mr21831898wid.40.1435581225252; Mon, 29 Jun 2015 05:33:45 -0700 (PDT) Original-Received: from keima.localdomain (x2f2549a.dyn.telefonica.de. [2.242.84.154]) by mx.google.com with ESMTPSA id a19sm11967899wiv.2.2015.06.29.05.33.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jun 2015 05:33:44 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::230; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01OKcxJsL - 620040ab1c85 - 20150629 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::230 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::230; envelope-from=; helo=mail-wi0-x230.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91771 Archived-At: This is a multi-part message in MIME format. --===============1216875033== Content-Type: multipart/alternative; boundary="------------040008030300030900020500" This is a multi-part message in MIME format. --------------040008030300030900020500 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. - Pontex s. r. o. > 29. Juni 2015 14:05 > Hello, > > one more question. > > When I place \part into \...bodymatter and \...appendices, the \part=20 > in body matter yields "D=C3=ADl " + number, which is OK, but in appendi= ces=20 > it gives "" + 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=C3=ADl..." in = body=20 > matter and "Dodatek..." in appendices, and also to get letter=20 > numbering ("A", "B"...) in appendices (so "Dodatek A", "Doadatek B",=20 > ...)? 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 se= t % 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=3Dmyconversion] \setuphead [part] [placehead=3Dyes, bodypartlabel=3Dbodypart-mypart, appendixlabel=3Dappendix-mypart] \setuplabeltext[en][bodypart-mypart=3DD=C3=ADl ,appendix-mypart=3DDodatek= ] \starttext \startbodymatter \part{My First Part} \input knuth \stopbodymatter \startappendices \part{My First Appendix} \input tufte \stopappendices \stoptext Wolfgang --------------040008030300030900020500 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

one more question.

When I place \part into \...bodymatter and \...appendices, the \part in body matter yields "D=C3=ADl " + number, which is OK, but in appendic= es=20 it gives "<nothing>" + Roman number ("I", "II", ...).
You have to change the default conversion for the appendix.
What is= =20 the most systemic to \setuphead[part] to give "D=C3=ADl..." in body matte= r=20 and "Dodatek..." in appendices, and also to get letter numbering ("A",=20 "B"...) in appendices (so "Dodatek A", "Doadatek B", ...)?
You have to set a label for the appendix with the appendixlabel key.
A sampl= e=20 source code with body matter and appendices is attached...
% Method 1: change the values of the predefined "default" conversion=20 set,
% you can use name of the sectionblock as prefix (separated by a :) to=20 set
% the values only for a certain part (e.g. the appendix) of your=20 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=3Dmyconversion]
\setuphead
=C2=A0 [part]
=C2=A0 [placehead=3Dyes,
=C2=A0=C2=A0 bodypartlabel=3Dbodypart-mypart,
=C2=A0=C2=A0 appendixlabel=3Dappendix-mypart]

\setuplabeltext[en][bodypart-mypart=3DD=C3=ADl ,appendix-mypart=3DDodatek= ]

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

Wolfgang
--------------040008030300030900020500-- --===============1216875033== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1216875033==--