Hi there, I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it? Thanks. -- Sincerely yours, 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 ----------------------------------------------------------------
Zhichu Chen wrote:
Hi there,
I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it?
you can set up backgrounds for page, leftpage, rightpage, paper etc so in your case ... use \setupbackgrounds[paper][...] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from
cont-enp.pdf:
+++++++++++++++++++++++++++++++++++++++++
\setuppapersize [A7][A3]
\setuparranging [2*8,rotated,doublesided]
\setuppagenumbering [alternative=doublesided]
\setuplayout [margin=0pt,width=fit]
\setupbackgrounds [paper][background=color,backgroundcolor=red]
\setupcolors [state=start]
\setuplayout [location=middle,marking=color]
\setuptolerance [tolerant]
\setupbodyfont [6pt]
\starttext
\dorecurse{30}{\input tufte \par \input knuth \par}
\stoptext
++++++++++++++++++++++++++++++++++++++++
and it appears nothing changed. So I wonder if you could look it up again
for me.
Thank you
On 2/28/07, Hans Hagen
Zhichu Chen wrote:
Hi there,
I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it?
you can set up backgrounds for page, leftpage, rightpage, paper etc
so in your case ... use \setupbackgrounds[paper][...]
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, 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 ----------------------------------------------------------------
On 2/28/07, Zhichu Chen
Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: +++++++++++++++++++++++++++++++++++++++++ \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] %%% hmm, try \setupbackgrounds[paper][state=start,background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ++++++++++++++++++++++++++++++++++++++++
Thanks luigi
But it doesn't work for me either . . .
On 2/28/07, luigi scarso
On 2/28/07, Zhichu Chen
wrote: Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: +++++++++++++++++++++++++++++++++++++++++ \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] %%% hmm, try \setupbackgrounds[paper][state=start,background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ++++++++++++++++++++++++++++++++++++++++
ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, 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 ----------------------------------------------------------------
On 2/28/07, Zhichu Chen
Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: +++++++++++++++++++++++++++++++++++++++++ \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] what about \setupbackgrounds [page][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ++++++++++++++++++++++++++++++++++++++++
and it appears nothing changed. So I wonder if you could look it up again for me.
Thank you
On 2/28/07, Hans Hagen
wrote: Zhichu Chen wrote:
Hi there,
I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it?
you can set up backgrounds for page, leftpage, rightpage, paper etc
so in your case ... use \setupbackgrounds[paper][...]
-----------------------------------------------------------------
Hans Hagen |
PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com |
www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, 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
Thanks luigi
Yes, but only the A7 small page changes the background. Actually, I've tried
many combinations of those options before I post my problem. So I think
there is something that hasn't been mentioned in the manual.
On 2/28/07, luigi scarso
On 2/28/07, Zhichu Chen
wrote: Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: +++++++++++++++++++++++++++++++++++++++++ \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided] \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] what about \setupbackgrounds [page][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ++++++++++++++++++++++++++++++++++++++++
and it appears nothing changed. So I wonder if you could look it up again for me.
Thank you
On 2/28/07, Hans Hagen
wrote: Zhichu Chen wrote:
Hi there,
I know there is a command \setupbackgrounds[page][background=???], and I can use \defineoverlay[page][\useMPgraphic{page}], then use MetaPost to draw the page background. But I also use something like \setuppapersize[A7][A3] to compose the output, and it seems that the \setupbackgrounds command only affect on A7 sub-paper. I also noticed a command \setuplayout[marking=color]that really acts on the A3 paper rather than the subpaper. So I think there should be such a macro that handles the whole page's background. Can anyone tell me about it?
you can set up backgrounds for page, leftpage, rightpage, paper etc
so in your case ... use \setupbackgrounds[paper][...]
-----------------------------------------------------------------
Hans Hagen |
PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com |
www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, 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
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, 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 ----------------------------------------------------------------
Yes, but only the A7 small page changes the background. Actually, I've tried many combinations of those options before I post my problem. So I think there is something that hasn't been mentioned in the manual.
\setupcolors[state=start] \setuppapersize [A7][A3] %%% %\setuparranging [2*8,rotated,doublesided] %%% \setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext hmm, may be \setuparranging [2*8,rotated,doublesided] reset backgrounds
On 2/28/07, Zhichu Chen
Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: +++++++++++++++++++++++++++++++++++++++++ \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided]
Does it help if you say \setuparranging [2*8,background,rotated,doublesided] instead? The keyword was added in September. It would be much better if that would be the default, but Hans seems to prefer it that way.
\setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ++++++++++++++++++++++++++++++++++++++++
Mojca
Thanks, Mojca. It's cool.
On 3/2/07, Mojca Miklavec
On 2/28/07, Zhichu Chen
wrote: Thanks Hans,
But actually, I've tried it before I asked. I just modified your code from cont-enp.pdf: +++++++++++++++++++++++++++++++++++++++++ \setuppapersize [A7][A3] \setuparranging [2*8,rotated,doublesided]
Does it help if you say \setuparranging [2*8,background,rotated,doublesided] instead?
The keyword was added in September. It would be much better if that would be the default, but Hans seems to prefer it that way.
\setuppagenumbering [alternative=doublesided] \setuplayout [margin=0pt,width=fit] \setupbackgrounds [paper][background=color,backgroundcolor=red] \setupcolors [state=start] \setuplayout [location=middle,marking=color] \setuptolerance [tolerant] \setupbodyfont [6pt] \starttext \dorecurse{30}{\input tufte \par \input knuth \par} \stoptext ++++++++++++++++++++++++++++++++++++++++
Mojca _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, 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 ----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
luigi scarso
-
Mojca Miklavec
-
Zhichu Chen