From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98888 Path: news.gmane.org!.POSTED!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: Re: About \setupheadertexts : simplify a code Date: Sat, 19 Aug 2017 20:58:25 +0900 Message-ID: <243CF3E0-7E59-4D00-A26A-93F372531F1C@me.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="===============2698981563207918479==" X-Trace: blaine.gmane.org 1503143957 28932 195.159.176.226 (19 Aug 2017 11:59:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Aug 2017 11:59:17 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 19 13:59:12 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dj2PB-0006rU-45 for gctc-ntg-context-518@m.gmane.org; Sat, 19 Aug 2017 13:59:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D21E1105688; Sat, 19 Aug 2017 13:58:44 +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 9xh-Qc0i6HCx; Sat, 19 Aug 2017 13:58:42 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D7A91105683; Sat, 19 Aug 2017 13:58:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F0E1A105683 for ; Sat, 19 Aug 2017 13:58:41 +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 SZUWRpsBFmgJ for ; Sat, 19 Aug 2017 13:58:41 +0200 (CEST) Original-Received: from pv35p16im-ztdg05071101.me.com (pv35p16im-ztdg05071101.me.com [17.133.187.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4E3F8105682 for ; Sat, 19 Aug 2017 13:58:31 +0200 (CEST) Original-Received: from process-dkim-sign-daemon.pv35p16im-ztdg05071101.me.com by pv35p16im-ztdg05071101.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0OUX00900KY8CH00@pv35p16im-ztdg05071101.me.com> for ntg-context@ntg.nl; Sat, 19 Aug 2017 11:58:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1503143909; bh=9Fc4BinWqNC+2wt/3mOBkmgTg1K8wE7yYN8iLmHFxKc=; h=From:Content-type:MIME-version:Subject:Date:To:Message-id; b=8peco9agvr5yniWLwJsXjNa3N0X46/ngx2gvopw6qTW7T16nItHMbCpy8jOxkCSTX Su9qcH8YK6izJeH7I1MZyVEyVB6KnyQMCCuVWGBKNsKsOKAOIlGkcS/fMAs7c0xlLJ 4OJGoNj6PY4eZlVSo25my7zTv/CmxtP+Q0HZovtWCzW9nKFw1TKStb54McPjorB4ci KLoEqHtwZpIwH35VY3AkFGOt8OreZjaPJYAZwU7Mkh/DAmUVWw1bat3jkx3QZ92HDq aLvtP47E8bh6JMfirbtDBWGr1kF5I7q5W/fPLCJo5OmU0W92AqC09WZO6P9x3jhMqW Hrk2MCkEeLoyg== Original-Received: from icloud.com ([127.0.0.1]) by pv35p16im-ztdg05071101.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0OUX00BOPL9EDV40@pv35p16im-ztdg05071101.me.com> for ntg-context@ntg.nl; Sat, 19 Aug 2017 11:58:29 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-19_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1701120000 definitions=main-1708190160 In-reply-to: X-Mailer: Apple Mail (2.3273) 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:98888 Archived-At: --===============2698981563207918479== Content-type: multipart/alternative; boundary="Apple-Mail=_A3D90444-EA03-460C-8D34-35A1D062AE9F" --Apple-Mail=_A3D90444-EA03-460C-8D34-35A1D062AE9F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Fabrice, I tried to compile your example, but not succeed. I am sorry that I couldn=E2=80=99t tell you what is the problem. Here is the part of the log file. One thing that I don=E2=80=99t = understand is why it reads ##title and ##number, =E2=80=A6 Is it normal in log file? I hope that experts correct your example to work. Best regards, Dalyoung ***************** tex error > tex error on line 64 in file mylayout.mkiv: ! Illegal = parameter number in definition of \MyHeader =20 t ..., foregroundstyle=3Dbold,foregroundcolor=3Dred]{##t itle n\high = {o}\,##number}... \dostarttexdefinition ...clf_texdefinition_two {#1 } l.64 \stoptexdefinition =20 54 [{\headerframed[align=3Dmiddle, foregroundstyle=3Dbold, 55 foregroundcolor=3Dred] 56 {#title n\high{o}\,#number}}] 57 =20 58 \setupheadertexts 59 [{\headerframed[align=3Dflushleft, foregroundstyle=3D\ssx] 60 {Lyc=C3=A9e JANSON DE SAILLY \\ = \date[d=3D#day,m=3D#month,y=3D#year]}}] 61 [{\headerframed[align=3Dflushright, foregroundstyle=3D\ssx] 62 {#where \\ {#time}}}] 63 =20 64 >> \stoptexdefinition 65 =20 66 \stopenvironment 67 =20 ********************* A strange thing is that=20 > 2017. 8. 19. =EC=98=A4=ED=9B=84 7:00, ntg-context-request@ntg.nl = =EC=9E=91=EC=84=B1: >=20 > Re: About \setupheadertexts : simplify a code=20 --Apple-Mail=_A3D90444-EA03-460C-8D34-35A1D062AE9F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear Fabrice,

I tried to compile your example, but not succeed.
I am sorry that I couldn=E2=80=99t tell you what is the = problem.

Here = is the part of the log file. One thing that I don=E2=80=99t understand = is  why it reads ##title and ##number, =E2=80=A6
Is it normal in log file?

I hope that experts correct your = example to work.

Best regards,

Dalyoung

*****************
tex = error       > tex error on line 64 in file = mylayout.mkiv: ! Illegal parameter number in definition of = \MyHeader

<to= be read again> 
t
<argument> ..., = foregroundstyle=3Dbold,foregroundcolor=3Dred]{##t
                =                     =               itle n\high = {o}\,##number}...
\dostarttexdefinition = ...clf_texdefinition_two {#1
      =                     =                     =     }
l.64 \stoptexdefinition
                =      

54         =  [{\headerframed[align=3Dmiddle, foregroundstyle=3Dbold,
55     foregroundcolor=3Dred]
56=                {#title = n\high{o}\,#number}}]
57   =   
58       =  \setupheadertexts
59       =    [{\headerframed[align=3Dflushleft, = foregroundstyle=3D\ssx]
60       =        {Lyc=C3=A9e JANSON DE SAILLY \\ = \date[d=3D#day,m=3D#month,y=3D#year]}}]
61   =        [{\headerframed[align=3Dflushright, = foregroundstyle=3D\ssx]
62       =        {#where \\ {#time}}}]
63 =     
64 >> =  \stoptexdefinition
65   =   
66     = \stopenvironment
67     
*********************

A strange thing is = that 
2017. 8. 19. =EC=98=A4=ED=9B=84 7:00, ntg-context-request@ntg.nl =EC=9E=91=EC=84=B1:

Re: About \setupheadertexts : simplify a = code 

= --Apple-Mail=_A3D90444-EA03-460C-8D34-35A1D062AE9F-- --===============2698981563207918479== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2698981563207918479==--