* Write a long chapter title in two lines
@ 2022-08-19 1:03 Jeong Dal via ntg-context
2022-08-19 9:48 ` Hans Hagen via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal via ntg-context @ 2022-08-19 1:03 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
[-- Attachment #1.1: Type: text/plain, Size: 1371 bytes --]
Dear all,
A few days ago, I sent an email as follows. But it is linked to another subject because I choose reply of another subject.
So, I send the same mail again.
Thank you for reading.
Best regards,
Dalyoung
**********
I’d 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="#1"}}
\setuphead[chapter]
[textcommand=\outlineTitle,
style=\BigFontOne,
numbercommand=\outlineTitle,
% align = middle,
number=yes]
\setupexternalfigures[location={default,local,global}]
%\definefont[fancy][Zapfino at 24pt]
\starttext
\startchapter[title={Very Long Long Long Title}]
\startcombination[3*1]
{\externalfigure[cow] [combination]}{cow}
{\externalfigure[mill] [combination]}{mill}
{\externalfigure[hacker][combination]}{hacker}
\stopcombination
\stopchapter
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 10487 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Write a long chapter title in two lines
2022-08-19 1:03 Write a long chapter title in two lines Jeong Dal via ntg-context
@ 2022-08-19 9:48 ` Hans Hagen via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-08-19 9:48 UTC (permalink / raw)
To: Jeong Dal, mailing list for ConTeXt users; +Cc: Hans Hagen
On 8/19/2022 3:03 AM, Jeong Dal wrote:
> Dear all,
>
> A few days ago, I sent an email as follows. But it is linked to another subject because I choose reply of another subject.
> So, I send the same mail again.
\startuseMPgraphic{outlineT}
draw lmt_outline [
text = \MPvar{tt},
kind = "both",
width = 12cm,
align = "middle",
fillcolor = "gray",
drawcolor = "blue"
] ;
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Write a long chapter title in two lines
2022-08-15 10:42 sync text streams in facing pages Pablo Rodriguez via ntg-context
@ 2022-08-15 15:19 ` Jeong Dal via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal via ntg-context @ 2022-08-15 15:19 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Jeong Dal
[-- Attachment #1.1: Type: text/plain, Size: 3626 bytes --]
Dear all,
I’d 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="#1"}}
\setuphead[chapter]
[textcommand=\outlineTitle,
style=\BigFontOne,
numbercommand=\outlineTitle,
% align = middle,
number=yes]
\setupexternalfigures[location={default,local,global}]
%\definefont[fancy][Zapfino at 24pt]
\starttext
\startchapter[title={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=yes]
> \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 = 1
> \externalfigure[wg.pdf][page=\recurselevel]\else
> \externalfigure[wg.pdf][page=\recurselevel]
> \externalfigure[wg.pdf][page={\the\numexpr \recurselevel + 25}]\fi}
> \stoptext
>
> I’m 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 = 1
> \externalfigure[wg.pdf][page=\recurselevel]\else
> \externalfigure[wg.pdf][page=\recurselevel]
> \externalfigure[wg.pdf][page={\the\numexpr \recurselevel + 19}]\fi}
> \stoptext
>
> I would need that for a bilingual edition. I don’t 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 11404 bytes --]
[-- Attachment #2: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-19 9:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-19 1:03 Write a long chapter title in two lines Jeong Dal via ntg-context
2022-08-19 9:48 ` Hans Hagen via ntg-context
-- strict thread matches above, loose matches on Subject: below --
2022-08-15 10:42 sync text streams in facing pages Pablo Rodriguez via ntg-context
2022-08-15 15:19 ` Write a long chapter title in two lines Jeong Dal via ntg-context
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).