From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116992 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jeong Dal via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Chapter title in MetaFun manual. Date: Fri, 10 Feb 2023 21:26:52 +0900 Message-ID: <06F315A5-9255-4C07-977C-CDBD55D92199@mac.com> References: <7DED14FA-DEDA-4BA8-944D-2D4AA95D5FDE@mac.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.14\)) Content-Type: multipart/mixed; boundary="===============7234046512677674424==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33017"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jeong Dal To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 10 13:27:35 2023 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 1pQSV4-0008Ot-AE for gctc-ntg-context-518@m.gmane-mx.org; Fri, 10 Feb 2023 13:27:34 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 483A9361589; Fri, 10 Feb 2023 13:27:06 +0100 (CET) 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 yxk9vYGcJ87r; Fri, 10 Feb 2023 13:27:04 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 480823615B2; Fri, 10 Feb 2023 13:27:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D0AC5361589 for ; Fri, 10 Feb 2023 13:27:02 +0100 (CET) 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 kZUGZSZa0azA for ; Fri, 10 Feb 2023 13:27:01 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=17.58.6.41; helo=pv50p00im-zteg10011401.me.com; envelope-from=haksan@mac.com; receiver= Original-Received: from pv50p00im-zteg10011401.me.com (pv50p00im-zteg10011401.me.com [17.58.6.41]) (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 2128A3612DE for ; Fri, 10 Feb 2023 13:27:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1676032019; bh=h0YXVIhDx20UYUeSSrTAjeY2nV/bed8oNHWL8LWtDKo=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=YO10LiqlIvbgCDpWWAAkGcCXtXOYKlO4xyScryb85dLTLffHm0Lz5uwrGl8c/tM5u sUkM8m2Ymfv4fFJ7gX3bofI1DZXGvI7uHfa2pC166WpxSfuK+ArJR4FKWWwDcJWDga Kk5OeLTKOhB+EdwCjckJz7tmcUBipCi5gH06XEGEy1tZ4esJfrxLOu0iAI24CE3qR3 q8ClbtGIxB62YghWXfT/323W+DtV5UVRauu8hn5yhAskKK6oFum4IQ9qHb1HQX27/g ePiQyY+jxJA0Im/1LRD7wO5JUX6I44Fgr976rOnwoFikFOmo5JqlEjcSG7Wt2sQ9Zw 7yke9swgkMLNw== Original-Received: from smtpclient.apple (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-zteg10011401.me.com (Postfix) with ESMTPSA id 0AFF2DC00CE for ; Fri, 10 Feb 2023 12:26:57 +0000 (UTC) In-Reply-To: <7DED14FA-DEDA-4BA8-944D-2D4AA95D5FDE@mac.com> X-Mailer: Apple Mail (2.3654.120.0.1.14) X-Proofpoint-ORIG-GUID: pYFLdGCw6cMofw9nqbK2JcT-H598akT_ X-Proofpoint-GUID: pYFLdGCw6cMofw9nqbK2JcT-H598akT_ 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 mlxlogscore=999 suspectscore=0 bulkscore=0 phishscore=0 mlxscore=0 spamscore=0 clxscore=1015 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2302100105 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:116992 Archived-At: --===============7234046512677674424== Content-Type: multipart/alternative; boundary="Apple-Mail=_747755B4-A3C1-49BD-B648-916C7C3CEE1B" --Apple-Mail=_747755B4-A3C1-49BD-B648-916C7C3CEE1B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear all, =20 I think that I found the cause. The page layout of my file is different from that of MetaFun manual. After borrowing the \setuplayout from MetaFun-000.tex, it works = correctly. I am sorry to give you a wrong example. Thank you for reading. Best regards, Dalyoung > 2023. 2. 10. =EC=98=A4=ED=9B=84 9:05, Jeong Dal via ntg-context = =EC=9E=91=EC=84=B1: >=20 > Dear all, >=20 > I copied the code of defining chapter command from metafun-000.tex, = and run it. > But the result is different from that in MetaFun Manual. > There is a big spaces between the number and the title which yields = the number cannot be seen. > I commented out several lines which seems to be not-related with = chapter title. > And, I changed >=20 > \def\ChapterCommand#1#2% =E2=80=94> \define[2]\ChapterCommand >=20 > Would you please test the following code to find out what is wrong? >=20 > Thank you for reading. >=20 > Best regards, >=20 > Dalyoung >=20 >=20 > \startuseMPgraphic{circled} > pickup pencircle scaled 1mm ; > drawoptions(withcolor (.6+uniformdeviate.35)*white) ; > fill fullcircle xscaled 1.5cm yscaled 1cm ; > drawoptions(withcolor .625yellow) ; > draw fullcircle xscaled 1.5cm yscaled 1cm ; > \stopuseMPgraphic >=20 > %\startnotmode[proof] > % \defineoverlay[circled][\useMPgraphic{circled}] > %\stopnotmode >=20 > \define[1]\Circled% > {\framed > [background=3Dcircled,frame=3Doff,offset=3Doverlay] > {\color[darkred]{#1}}} >=20 > \setuppagenumbering[location=3D] > \setupheadertexts[margin][][\hbox to = \hsize{\hss\Circled\pagenumber\hss}] >=20 > \startuniqueMPgraphic{titled} > path p ; p :=3D unitsquare xscaled \overlaywidth yscaled = \overlayheight ; > pickup pencircle scaled 1mm ; > drawoptions(withcolor .625yellow) ; > draw llcorner p -- lrcorner p ; > setbounds currentpicture to p ; > \stopuniqueMPgraphic >=20 > \defineoverlay[titled][\uniqueMPgraphic{titled}] >=20 > \define[2]\ChapterCommand% > {\setbox0=3D\hbox to \leftmarginwidth{#1\hss}% > \hskip-\leftmarginwidth > \hskip-\leftmargindistance > \framed > [background=3Dtitled,frame=3Doff,offset=3D0pt] > {\box0 > \hskip\leftmargindistance > #2}} >=20 > \define[2]\TitleCommand% > {\framed > [background=3Dtitled,frame=3Doff,offset=3D0pt] > {#2}} >=20 > \setuphead > [chapter]%,section,subsection] > [command=3D\ChapterCommand, > style=3D\ss\bf\tfd, > color=3Ddarkred] >=20 > \setuphead > [title]%,subject,sububject] > [command=3D\TitleCommand, > style=3D\ss\bf\tfd, > color=3Ddarkred] >=20 >=20 > \setupbodyfont[bonum,rm,12pt] > \showframe >=20 > \starttext > \startchapter[title=3D{Introduction}] > This is the chapter for introduction. > \stopchapter >=20 > \startchapter[title=3D{Function}] > Now, we study the function. > \stopchapter >=20 > \starttitle[title=3D{References}] > \startitemize[n] > \item first > \item second > \item third > \stopitemize > \stoptitle >=20 > \stoptext > = __________________________________________________________________________= _________ > 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=_747755B4-A3C1-49BD-B648-916C7C3CEE1B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = all,
 
I think that I found the = cause.
The page layout of my file is different from = that of MetaFun manual.
After borrowing the = \setuplayout from MetaFun-000.tex, it works correctly.

I am sorry to give you a = wrong example.

Thank you for reading.

Best regards,

Dalyoung


2023. 2. 10. =EC=98=A4=ED=9B=84 = 9:05, Jeong Dal via ntg-context <ntg-context@ntg.nl> =EC=9E=91=EC=84=B1:

Dear all,

I copied the code of = defining chapter command  from metafun-000.tex, and run = it.
But the result is different from that in = MetaFun Manual.
There is a big spaces between the = number and the title which yields the number cannot be seen.
I commented out several lines which seems to be not-related = with chapter title.
And, I changed

= \def\ChapterCommand#1#2% =E2=80=94> = \define[2]\ChapterCommand

Would you please test the following code to find out what is = wrong?

Thank = you for reading.

Best regards,

Dalyoung


\startuseMPgraphic{circled}
= pickup pencircle scaled 1mm ;
= drawoptions(withcolor (.6+uniformdeviate.35)*white) ;
fill fullcircle xscaled 1.5cm yscaled 1cm ;
drawoptions(withcolor .625yellow) ;
= draw fullcircle xscaled 1.5cm yscaled 1cm ;
\stopuseMPgraphic

%\startnotmode[proof]
% = \defineoverlay[circled][\useMPgraphic{circled}]
%\stopnotmode

\define[1]\Circled%
{\framed
[background=3Dcircled,frame=3Doff,offset=3Doverlay]
{\color[darkred]{#1}}}

\setuppagenumbering[location=3D]
\setupheadertexts[margin][][\hbox to \hsize{\hss\Circled\pagenumber\hss}]

\startuniqueMPgraphic{titled}
= path p ; p :=3D unitsquare xscaled \overlaywidth yscaled \overlayheight ;
= pickup pencircle scaled 1mm ;
= drawoptions(withcolor .625yellow) ;
draw llcorner = p -- lrcorner p ;
setbounds currentpicture to p = ;
\stopuniqueMPgraphic

\defineoverlay[titled][\uniqueMPgraphic{titled}]

\define[2]\ChapterCommand%
{\setbox0=3D\hbox to \leftmarginwidth{#1\hss}%
\hskip-\leftmarginwidth
\hskip-\leftmargindistance
\framed
[background=3Dtitled,frame=3Doff,offset=3D0pt]
{\box0
\hskip\leftmargindistance
= #2}}

\define[2]\TitleCommand%
{\framed
[background=3Dtitled,frame=3Doff,offset=3D0pt]
= {#2}}

\setuphead
[chapter]%,section,subsection]
[command=3D\ChapterCommand,
style=3D\ss\bf\tfd,
color=3Ddarkred]

\setuphead
[title]%,subject,sububject]
[command=3D\TitleCommand,
style=3D\ss\bf\tfd,
color=3Ddarkred]

\setupbodyfont[bonum,rm,12pt]
\showframe

\starttext
\startchapter[title=3D{Introduction}]
This is = the chapter for introduction.
\stopchapter

\startchapter[title=3D{Function}]
Now, we study = the function.
\stopchapter

\starttitle[title=3D{References}]
\startitemize[n]
\item = first
\item second
\item third
\stopitemize
\stoptitle

\stoptext
_______________________= ____________________________________________________________
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=_747755B4-A3C1-49BD-B648-916C7C3CEE1B-- --===============7234046512677674424== 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== --===============7234046512677674424==--