From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/115700 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal via ntg-context Newsgroups: gmane.comp.tex.context Subject: Write a long chapter title in two lines Date: Tue, 16 Aug 2022 00:19:02 +0900 Message-ID: References: <67aa37a4-c970-5b74-0c1c-4b6f87b9dd66@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/mixed; boundary="===============5923041066538071667==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30580"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jeong Dal To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 15 17:19:40 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oNbsS-0007kq-Ev for gctc-ntg-context-518@m.gmane-mx.org; Mon, 15 Aug 2022 17:19:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 803802A3F5C; Mon, 15 Aug 2022 17:19:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Weu1OfAU0vSV; Mon, 15 Aug 2022 17:19:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2D3AE2A3F57; Mon, 15 Aug 2022 17:19:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C70CB2A3F57 for ; Mon, 15 Aug 2022 17:19:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id la065EDscI0L for ; Mon, 15 Aug 2022 17:19:13 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.50; helo=pv50p00im-ztdg10011901.me.com; envelope-from=haksan@me.com; receiver= Original-Received: from pv50p00im-ztdg10011901.me.com (pv50p00im-ztdg10011901.me.com [17.58.6.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1BC962A3F4F for ; Mon, 15 Aug 2022 17:19:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1660576746; bh=5GpTk8qIhmPBn617BnTfdf7YsWv3tPzzaccfDMO84H4=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=Zi1IStc8qaH5SYbli0CyxHpk/ICc4o4SU7bm2cnFUE4Aae2ydDpntlU3G4hqJmOSC XyW161H7FdLOEhdvv4Ara9+bd0ERr5ihv1MYZ1FXpvy5pjcfZbojYTokU8oVGhox9W OJ5MKVg7Pz9qDRaNxkPFGIBKYQEGAZ2blzfKFhjsF5gvShKZRNG642L/7xyiFxc8vd JVz0RsoNfwJP7q/i/OTvD9n60LE3eNkcWYBlRfo8/HcMn0xIMy7pDzyEcnKyW7ZjHz lqsQUxB4GGgKk4gWeMcewGFGoQBLjUIPU7MFeLzWA46LYIDxfy/iy1/uiGmg0QPyL9 Kl+z5Q9ZzoMXg== Original-Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10011901.me.com (Postfix) with ESMTPSA id 02BD33A0132 for ; Mon, 15 Aug 2022 15:19:04 +0000 (UTC) In-Reply-To: <67aa37a4-c970-5b74-0c1c-4b6f87b9dd66@gmx.es> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Proofpoint-GUID: AxzLX1t3w_GQ7t0vNDpZQEuAT4LE2ZNV X-Proofpoint-ORIG-GUID: AxzLX1t3w_GQ7t0vNDpZQEuAT4LE2ZNV X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.572,17.11.64.514.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F01:2022-06-21=5F01,2020-02-14=5F11,2022-02-23?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 malwarescore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2208150060 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:115700 Archived-At: --===============5923041066538071667== Content-Type: multipart/alternative; boundary="Apple-Mail=_EBA7EF13-FDC3-44C7-834F-8BB869B4541E" --Apple-Mail=_EBA7EF13-FDC3-44C7-834F-8BB869B4541E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear all, I=E2=80=99d like to write a long chapter title in two lines if it is = longer than the textwidth. It is OK when I use just bigger fonts. But it writes the long title in one line if I use outlined font for = title as in MWE. Is there a way to write it in two lines using the outlined font? Thanks, Best regards, Dalyoung \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled = .75pt);%\MPvar{thick}); \stopuseMPgraphic \definefont[BigFontOne][NotoSansCJKkr-Bold sa 4] \define[1]\outlineTitle{\useMPgraphic{outlineT}{tt=3D"#1"}} \setuphead[chapter] [textcommand=3D\outlineTitle, style=3D\BigFontOne, numbercommand=3D\outlineTitle, % align =3D middle, number=3Dyes] \setupexternalfigures[location=3D{default,local,global}] %\definefont[fancy][Zapfino at 24pt] \starttext \startchapter[title=3D{Very Long Long Long Title}] \startcombination[3*1] {\externalfigure[cow] [combination]}{cow} {\externalfigure[mill] [combination]}{mill} {\externalfigure[hacker][combination]}{hacker} \stopcombination \stopchapter \stoptext > On Aug 15, 2022, at 7:42 PM, Pablo Rodriguez via ntg-context = wrote: >=20 > Dear list, >=20 > adapting a the sample from mkxl/page-str.mkxl (and code from the = list), > I came with the following sample: >=20 > \setuppapersize[A6] > \showgrid > %\setuplayout[grid=3Dyes] > \starttext > \input tufte > \startoutputstream[es] > \dorecurse{25} > {\startlanguage[es]\input cervantes-es\stoplanguage% > \par\pushoutputstream} > \enableoutputstream[en] > \dorecurse{25} > {\input zapf\par\pushoutputstream} > \disableoutputstream > \stopoutputstream > \synchronizestreams[es,en] > \page \flushoutputstream[es] > \page \flushoutputstream[en] > \stoptext >=20 > To reorder pages, I rename the output to "wg.pdf" and run the = following > code: >=20 > \setuppapersize[A6] > \setuplayout[page] > \starttext > \dorecurse{26} > {\ifnum\recurselevel =3D 1 > \externalfigure[wg.pdf][page=3D\recurselevel]\else > \externalfigure[wg.pdf][page=3D\recurselevel] > \externalfigure[wg.pdf][page=3D{\the\numexpr \recurselevel + = 25}]\fi} > \stoptext >=20 > I=E2=80=99m afraid that the paragraph mistmatch is clear (the number = of pages is > way different for each versions). >=20 > Using the grid, the mismatch is not so evident (but there is still a > different number of pages for each version). >=20 > Page reordering would be in this case: >=20 > \setuppapersize[A6] > \setuplayout[page] > \starttext > \dorecurse{20} > {\ifnum\recurselevel =3D 1 > \externalfigure[wg.pdf][page=3D\recurselevel]\else > \externalfigure[wg.pdf][page=3D\recurselevel] > \externalfigure[wg.pdf][page=3D{\the\numexpr \recurselevel + = 19}]\fi} > \stoptext >=20 > I would need that for a bilingual edition. I don=E2=80=99t mind = reodering the > pages (if there is no other option). >=20 > But what am I doing wrong not to get synced text streams for facing = pages? >=20 > Many thanks for your help, >=20 > Pablo > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_EBA7EF13-FDC3-44C7-834F-8BB869B4541E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = all,

I=E2=80=99d = like to write a long chapter title in two lines if it is longer than the = textwidth.
It is OK when I use just bigger = fonts.

But it = writes the long title in one line if I use outlined font for title as in = MWE.

Is there = a way to write it in two lines using the outlined font?

Thanks,

Best regards,

Dalyoung

\startuseMPgraphic{outlineT}
= draw outlinetext.b (\MPvar{tt})
(withcolor .75white)
(withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick});
\stopuseMPgraphic
\definefont[BigFontOne][NotoSansCJKkr-Bold sa 4]
\define[1]\outlineTitle{\useMPgraphic{outlineT}{tt=3D"#1"}}

\setuphead[chapter]
[textcommand=3D\outlineTitle,
style=3D\BigFontOne,
= numbercommand=3D\outlineTitle,
% align =3D = middle,
number=3Dyes]

\setupexternalfigures[location=3D{default,local,global}]
%\definefont[fancy][Zapfino at 24pt]

\starttext
\startchapter[title=3D{Very Long Long Long Title}]
\startcombination[3*1]
= {\externalfigure[cow] [combination]}{cow}
{\externalfigure[mill]= [combination]}{mill}
{\externalfigure[hacker][combination]}{hacker}
\stopcombination
\stopchapter
\stoptext


On Aug 15, 2022, at 7:42 PM, Pablo Rodriguez = via ntg-context <ntg-context@ntg.nl> wrote:

Dear = list,

adapting a the sample from = mkxl/page-str.mkxl (and code from the list),
I came with = the following sample:

=  \setuppapersize[A6]
 \showgrid
=  %\setuplayout[grid=3Dyes]
 \starttext
 \input tufte
=  \startoutputstream[es]
=   \dorecurse{25}
=    {\startlanguage[es]\input = cervantes-es\stoplanguage%
=      \par\pushoutputstream}
=  \enableoutputstream[en]
=   \dorecurse{25}
   {\input = zapf\par\pushoutputstream}
 \disableoutputstream
 \stopoutputstream
=  \synchronizestreams[es,en]
 \page = \flushoutputstream[es]
 \page = \flushoutputstream[en]
 \stoptext

To reorder pages, I rename the output to "wg.pdf" and run the = following
code:

=  \setuppapersize[A6]
 \setuplayout[page]
 \starttext
 \dorecurse{26}
 {\ifnum\recurselevel =3D 1
=    \externalfigure[wg.pdf][page=3D\recurselevel]\else
=    \externalfigure[wg.pdf][page=3D\recurselevel]
   \externalfigure[wg.pdf][page=3D{\the\numexpr= \recurselevel + 25}]\fi}
 \stoptext
I=E2=80=99m afraid that the paragraph mistmatch is clear = (the number of pages is
way different for each = versions).

Using the grid, the mismatch is = not so evident (but there is still a
different number of = pages for each version).

Page reordering = would be in this case:

=  \setuppapersize[A6]
 \setuplayout[page]
 \starttext
 \dorecurse{20}
 {\ifnum\recurselevel =3D 1
=    \externalfigure[wg.pdf][page=3D\recurselevel]\else
=    \externalfigure[wg.pdf][page=3D\recurselevel]
   \externalfigure[wg.pdf][page=3D{\the\numexpr= \recurselevel + 19}]\fi}
 \stoptext
I would need that for a bilingual edition. I don=E2=80=99t = mind reodering the
pages (if there is no other option).

But what am I doing wrong not to get synced = text streams for facing pages?

Many thanks = for your help,

Pablo
_______________________________________________________________= ____________________
If your question is of interest to = others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : = https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_EBA7EF13-FDC3-44C7-834F-8BB869B4541E-- --===============5923041066538071667== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5923041066538071667==--