Re: [NTG-context] layout maximal width and height
En/na Wolfgang Schuster ha escrit: > 2007/4/20, Xan <[EMAIL PROTECTED]>: >> >> Hi, >> >> Is it any way to set only left and right margin on layout and that width >> and height of the text are automatically set to the maximal of the >> possible width (that is >> >> \printpaperwidth-\leftmargin-\leftedge-\leftedgedistance-\leftmarginditance-{the >> >> >> same with right margins})? >> >> I think that it will be useful if there were something like: >> >> \setuplayout[ leftmargin=0mm, >> leftedge=10mm, %distance between border of paper and margin >> leftmargindistance=0mm, %distance between margin ant text >> leftedgedistance=0mm, %distance between margin and leftedge >> rightmargin=0mm, >> rightedge=10mm, %distance between border of paper and margin >> rightmargindistance=0mm, %distance between margin ant text >> rightedgedistance=0mm, %distance between margin and leftedge >> width=maximal] >> >> (see the last line) >> >> Thanks, >> Xan > > > Hi Xan, > > I think you misunderstood the layout of ConTeXt. > > You are looking for backspace and cutspace. > > \setuplayout > [backspace=2cm, % left margin on the page > cutspace=4cm, % right margin on the page > height=fit] My version is too old I think. It does not support "height=fit" Thanks, Xan. > > \starttext > \dorecurse{10}{\input knuth\par} > \stoptext > > Wolfgang > > > > > ___ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Basic TeX question, how to redefine ^^M
Thanks Hans, your code is fine too. On 4/20/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: > Hi Aditya, > > Thank you for pointing out my foolish mistake. Remember that this only works if each paragraph is a single line. See the output of \starttext \catcode`\^^M=\active \def^^M{\page[yes]} \input knuth \stoptext Oh, it's bad. Maybe I shall define ^^M in a better way, like check the next character and if it's ^^M too, futurelet the next ^^M to be \page[yes]. I will think through the logic. Thanks Aditya. Aditya > > On 4/20/07, Aditya Mahajan <[EMAIL PROTECTED]> wrote: >> >> On Fri, 20 Apr 2007, Zhichu Chen wrote: >> >> > Hi everybody, >> > = >> > \def\^^M{\endgraf\page[yes]} >> > = >> > nothing happened. >> > >> > So I'm lost. Can you tell me how to make it? >> >> This seems to work for me: >> >> \starttext >> \catcode`\^^M=\active >> \def^^M{\page[yes]} >> >> >> This >> >> Test >> >> \stoptext >> >> Aditya >> ___ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context >> > > > > -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context