From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98886 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: About \setupheadertexts : simplify a code Date: Sat, 19 Aug 2017 12:51:03 +0200 Message-ID: References: <2C9FC0BA-21C1-4779-9A45-7EADEA58CDEE@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6440831347025410944==" X-Trace: blaine.gmane.org 1503139890 5696 195.159.176.226 (19 Aug 2017 10:51:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Aug 2017 10:51:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 19 12:51:26 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 1dj1Lg-00017L-BP for gctc-ntg-context-518@m.gmane.org; Sat, 19 Aug 2017 12:51:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4828A105668; Sat, 19 Aug 2017 12:51:17 +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 OXohenIGgPa0; Sat, 19 Aug 2017 12:51:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9EA3C105664; Sat, 19 Aug 2017 12:51:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 87E5F105664 for ; Sat, 19 Aug 2017 12:51:15 +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 GNzB9Vt8suJ7 for ; Sat, 19 Aug 2017 12:51:14 +0200 (CEST) Original-Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (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 A1A02105663 for ; Sat, 19 Aug 2017 12:51:04 +0200 (CEST) Original-Received: by mail-wm0-f53.google.com with SMTP id t201so16363636wmt.1 for ; Sat, 19 Aug 2017 03:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=zWaWSpo6kjAEmPPmxJdEaRv8kTTPbhlqaMM72B1uwNQ=; b=mECv7lLEP/jaS5SuZzQSp5TBuw0XPwXZk5ZOLkrXMYVf3Gna6ecUvRRNNazhWNgTra kzrCT6jOckIN5VdgLUk/06wrTpEypxtAT/3L9Sq3/jHGtN9xyLxFR1VdPSfYdnCog4sj Jbbni+p5YziT3F6JSDMSag/epwpXPgvPT0b5VGNyJmsrIp0CaHQ5UNwjlen8eEzPTibh S83jTTs+J+bqfdB9xMGwm5g/2vWMrdSdjY+WxDGGklX/5ZDPG5i6RLAjy4spZ3feZ3pS jvLpVsV0GxVzmtAooL55lJEjYTs0zNFHx4mZBmdVH0mRJGkdNj1kD66GFHfuDd7ISOWo uwyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=zWaWSpo6kjAEmPPmxJdEaRv8kTTPbhlqaMM72B1uwNQ=; b=hjOz6nLNYeaYv13yNdLGS/e0T59/+MXptGJ2AA6AlzhlaTaWOmnluguE3itydozEpJ AnGIEYBXRwrp5flC0bjd5dS4cYwSoaUpCCvY984RPlnB3dmWHK4Xpxd8iSetSm8OK3Yb XbJDf7cak3DuBj4oRl1araBNfidqHACJfM17JqleVloCfNy5Za2bkcsV8GFMOPcI+kfz v+fQK+hVS2tSJ9yMyo/Pi38CNPadSCoJ4hemwyYLn19r+Hm2BNdtKMDX31q/1vEStpS9 UAlNnNomg3az5dH9DoZNSKIwk7p2u+hH/UoVZcvY15qQu/V3n5DEFC+GGJVuLxrNY/kp oKpQ== X-Gm-Message-State: AHYfb5j6AEVi8z3F2WWuzNjxkRtWZ5Wj4DJATEsyeTMQMGv76sMLT5lS MHCz2zSh71xZ5FddzGYRCIW+icIET/cO X-Received: by 10.80.136.129 with SMTP id d1mr7021701edd.130.1503139864178; Sat, 19 Aug 2017 03:51:04 -0700 (PDT) Original-Received: by 10.80.205.92 with HTTP; Sat, 19 Aug 2017 03:51:03 -0700 (PDT) In-Reply-To: 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:98886 Archived-At: --===============6440831347025410944== Content-Type: multipart/alternative; boundary="94eb2c194a20a6f3e905571905d1" --94eb2c194a20a6f3e905571905d1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Aditya, Thank you very much !! I did not know that it was necessary to use \environment instead of \component, it is probably in the documentation Fabrice 2017-08-19 12:35 GMT+02:00 Aditya Mahajan : > On Sat, 19 Aug 2017, Fabrice Couvreur wrote: > > Hello, >> I have tried many approaches, but it still does not work. Everything is >> passed to the dm-1.tex file (font, footer) but not the header. >> > > > \startcomponent dm-1 >> >> \component MyLayout >> >> \MyHeader{Seconde}{17}{08}{2017}{Devoir surveill=C3=A9}{1}{1h\,30m} >> >> \input knuth >> >> \stopcomponent >> > > Two things: > > 1. Use \environment MyLayout instead of \component MyLayout. > 2. The environment should be set before \startcomponent. > > I am attaching a zip file with working code. > > Aditya > ____________________________________________________________ > _______________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/ > listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --94eb2c194a20a6f3e905571905d1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Aditya,
Thank you very much !!
I did not know that it was necessary to use \environment ins= tead of \component, it is probably in the documentation
Fabrice

2017-08-19 12:35 GMT+02:00 = Aditya Mahajan <adityam@umich.edu>:
On Sat, 19 Aug 2017, Fabrice Couvreur wrote:

Hello,
I have tried many approaches, but it still does not work. Everything is
passed to the dm-1.tex file (font, footer) but not the header.


\startcomponent dm-1

=C2=A0\component MyLayout

=C2=A0\MyHeader{Seconde}{17}{08}{2017}{Devoir surveill=C3=A9}{1}{1h\,3= 0m}

=C2=A0\input knuth

\stopcomponent

Two things:

1. Use \environment MyLayout instead of \component MyLayout.
2. The environment should be set before \startcomponent.

I am attaching a zip file with working code.

Aditya

______________________________________________= _____________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--94eb2c194a20a6f3e905571905d1-- --===============6440831347025410944== 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 --===============6440831347025410944==--