Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Jean-Pierre Delange
r ConTeXt users" <ntg-context@ntg.nl> Envoyé: Samedi 19 Août 2017 12:35:24 Objet: Re: [NTG-context] About \setupheadertexts : simplify a code On Sat, 19 Aug 2017, Fabrice Couvreur wrote: > Hello, > I have tried many approaches, but it still does not work. Everything is >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Jeong Dal
Dear Fabrice, I tried to compile your example, but not succeed. I am sorry that I couldn’t tell you what is the problem. Here is the part of the log file. One thing that I don’t understand is why it reads ##title and ##number, … Is it normal in log file? I hope that experts correct your

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
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

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
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. Have you tested the files, does it work for you ? Sorry to insist, but I really need this way of doingThank you Fabrice ## MyLayout.mkvi ##

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Jeong Dal
Hi, Otared, I am also able to typeset Aditya’s example without problem, so example file is OK for me. There may be something which is not in the file. I am using MKIV beta 6. 21 version under OSX. This is LuaTeX, Version 1.05.0 (TeX Live 2017) system commands enabled. open source > level

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
I turn around !! It does not work 2017-08-19 1:15 GMT+02:00 Rik : > On 2017-08-18 19:01, Fabrice Couvreur wrote: > > If I test this file, it does not work > > % macros=mkvi > > \startcomponent dm-1 > > \environment MyLayout > > \MyHeader{Seconde}{17}{08}{2017}{Devoir

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik
On 2017-08-18 19:01, Fabrice Couvreur wrote: If I test this file, it does not work % macros=mkvi \startcomponent dm-1   \environment MyLayout   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}   \dorecurse{20}{\input knuth}   \math{x^2+4x+5=0} \stopcomponent 2017-08-19 0:23

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Aditya it does not work 2017-08-19 1:01 GMT+02:00 Fabrice Couvreur : > If I test this file, it does not work > > % macros=mkvi > > \startcomponent dm-1 > > \environment MyLayout > > \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m} > >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
If I test this file, it does not work % macros=mkvi \startcomponent dm-1 \environment MyLayout \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m} \dorecurse{20}{\input knuth} \math{x^2+4x+5=0} \stopcomponent 2017-08-19 0:23 GMT+02:00 Rik Kabel

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Aditya Mahajan
On Fri, 18 Aug 2017, Fabrice Couvreur wrote: Hello, It's ok for me if I compile the Aditya file. I have another problem with a simple structure. I created the file MyLayout.tex containing the macro and I want to call this macro in the dm1.tex file, but it does not work. Thank you Fabrice

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
On 2017-08-18 18:14, Fabrice Couvreur wrote: Hi Rik, Can you clarify by editing my files ? Fabrice 2017-08-18 23:57 GMT+02:00 Rik Kabel >: On 2017-08-18 17:34, Fabrice Couvreur wrote: Hello, It's ok for me if I

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Rik, Can you clarify by editing my files ? Fabrice 2017-08-18 23:57 GMT+02:00 Rik Kabel : > On 2017-08-18 17:34, Fabrice Couvreur wrote: > > Hello, > It's ok for me if I compile the Aditya file. > I have another problem with a simple structure. I created the file

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
On 2017-08-18 17:34, Fabrice Couvreur wrote: Hello, It's ok for me if I compile the Aditya file. I have another problem with a simple structure. I created the file MyLayout.tex containing the macro and I want to call this macro in the dm1.tex file, but it does not work. Thank you Fabrice

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hello, It's ok for me if I compile the Aditya file. I have another problem with a simple structure. I created the file MyLayout.tex containing the macro and I want to call this macro in the dm1.tex file, but it does not work. Thank you Fabrice # MyLayout.tex # % macros=mkvi

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Otared Kavian
Hi Aditya, Thanks for having sent the example file: indeed with your file I can typeset the example and see the expected result. I don’t know what happened when I copied and pasted the example from the e-mail… I think the command % macros = mkvi was not set correctly written at the first

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Aditya Mahajan
On Fri, 18 Aug 2017, Otared Kavian wrote: Hi Aditya, I tried to typeset your example, but got an error: whether or not the command % macros=mkvi is present on the fist line, then ConTeXt complains saying that ! Illegal parameter number in definition of \MyHeader and stops

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
uot;mailing list for ConTeXt users" <ntg-context@ntg.nl> > Envoyé: Vendredi 18 Août 2017 11:45:47 > Objet: Re: [NTG-context] About \setupheadertexts : simplify a code > > Hi Aditya, > > I tried to typeset your example, but got an error: whether or not the > command &g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
" <ntg-context@ntg.nl> > Envoyé: Vendredi 18 Août 2017 11:45:47 > Objet: Re: [NTG-context] About \setupheadertexts : simplify a code > > Hi Aditya, > > I tried to typeset your example, but got an error: whether or not the > command > % macros=mkvi > i

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Jean-Pierre Delange
der - Mail original - De: "Otared Kavian" <ota...@gmail.com> À: "mailing list for ConTeXt users" <ntg-context@ntg.nl> Envoyé: Vendredi 18 Août 2017 11:45:47 Objet: Re: [NTG-context] About \setupheadertexts : simplify a code Hi Aditya, I tried to typeset your

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi, @Aditya and Henri Thank you for your suggestions. @Otared Maybe remove \showframe ? Fabrice 2017-08-18 11:45 GMT+02:00 Otared Kavian : > Hi Aditya, > > I tried to typeset your example, but got an error: whether or not the > command > % macros=mkvi > is present on

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Otared Kavian
Hi Aditya, I tried to typeset your example, but got an error: whether or not the command % macros=mkvi is present on the fist line, then ConTeXt complains saying that ! Illegal parameter number in definition of \MyHeader and stops typesetting pointing to the command

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Aditya Mahajan
On Fri, 18 Aug 2017, Henri wrote: On Thu, 2017-08-17 at 15:25 +0200, Fabrice Couvreur wrote: Hello, To get the alignment, I had to create three \vbox. Can we simplify this code a bit ? Thank you Fabrice Use the optional argument of the new framed you defined. In addition to that, you can

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Henri
On Thu, 2017-08-17 at 15:25 +0200, Fabrice Couvreur wrote: > Hello, > To get the alignment, I had to create three \vbox. Can we simplify this code > a bit ? > Thank you > Fabrice Use the optional argument of the new framed you defined. \setuplayout   [header=3\lineheight,    

[NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Fabrice Couvreur
Hello, To get the alignment, I had to create three \vbox. Can we simplify this code a bit ? Thank you Fabrice % macros=mkvi \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds[header][text] [frame=off, bottomframe=on,