Hi to all, I have a manual. It's A5 to be printed in A4 (so to cut in the middle the A4 page). I'd like to have a cue like a marking to be able to cut exactly in the middle. \setuplayout[marking=on] does not print anything useful for the case. I've thought about \showframe[text=off, margin=off] but it creates a green border all around. Ideas? Many thanks -a- -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise)
On Wed, Apr 9, 2008 at 1:35 AM, Andrea Valle
Hi to all,
I have a manual. It's A5 to be printed in A4 (so to cut in the middle the A4 page). I'd like to have a cue like a marking to be able to cut exactly in the middle. \setuplayout[marking=on] does not print anything useful for the case.
I've thought about \showframe[text=off, margin=off] but it creates a green border all around.
Ideas?
1) Why don't you play with \startTEXpage ? 2) Andare a dormire :) ? -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org
1) Why don't you play with \startTEXpage ?
Because I don't know how does it work....
2) Andare a dormire :) ?
Io ci sono andato! :) -a-
-- luigi it's new . it's powerful . it's luatex . http://www.luatex.org ______________________________________________________________________ _____________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise)
On Wed, Apr 9, 2008 at 9:23 AM, Andrea Valle
1) Why don't you play with \startTEXpage ?
Because I don't know how does it work....
$> cd tex/texmf-local/tex/context/base $> grep startTEXpage * (hint: see page-app.tex) Use the source, luke ! -- luigi it's new . it's powerful . it's luatex . http://www.luatex.org
On Wed, Apr 9, 2008 at 1:35 AM, Andrea Valle
Hi to all,
I have a manual. It's A5 to be printed in A4 (so to cut in the middle the A4 page). I'd like to have a cue like a marking to be able to cut exactly in the middle. \setuplayout[marking=on] does not print anything useful for the case.
I've thought about \showframe[text=off, margin=off] but it creates a green border all around.
\setuppapersize[A5][A4,landscape] \setuplayout[location=middle] \setuparranging[2SIDE] %\setupbackgrounds[page][leftframe=on] \setuppagenumbering[alternative={singlesided,doublesided}] \setupbackgrounds[leftpage][leftframe=on] \starttext \dorecurse{100}{\input knuth\par} \stoptext Wolfgang
Thanks Wolfgang
%\setupbackgrounds[page][leftframe=on] \setuppagenumbering[alternative={singlesided,doublesided}] \setupbackgrounds[leftpage][leftframe=on]
Could you please explain what's going on here? I cannot understand why \setuppagenumbering is relevant for such a behavior Best -a- -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- I did this interview where I just mentioned that I read Foucault. Who doesn't in university, right? I was in this strip club giving this guy a lap dance and all he wanted to do was to discuss Foucault with me. Well, I can stand naked and do my little dance, or I can discuss Foucault, but not at the same time; too much information. (Annabel Chong) -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise)
On Wed, Apr 9, 2008 at 9:27 AM, Andrea Valle
Thanks Wolfgang
%\setupbackgrounds[page][leftframe=on] \setuppagenumbering[alternative={singlesided,doublesided}] \setupbackgrounds[leftpage][leftframe=on]
Could you please explain what's going on here? I cannot understand why \setuppagenumbering is relevant for such a behavior
You could either use only \setupbackgrounds[page][leftframe=on] this will draw a rule at the the left margin at all pages. The result is something like | | | | | 1 | 2 | | | | The second solution draws only a frame at the left margin on even numbered pages. Because odd and even numbered are only known in doublesided documents, the value "singlesided,doublesided" arguments for alternative in \setuppagenumbering is a little bit special because it activates left and right pages but use the same layout for all pages. I used it here to draw only a frame on the right page of the printed paper to avoid a unwanted rule at the side of the left page. The output for two pages should now look like: | | 1 | 2 | | Wolfgang
Thanks Wolfgang. Hmm, your example work. But it does not if I include it my environment ? -a- \startenvironment env_scMaterials \enableregime[utf] \mainlanguage[it] \setupinteraction[state=start] %\setuppapersize[A5][A4, landscape] %%% %% the original format %\setuppapersize[A5][A5] %% two pages side by side %\setuppapersize[A5][A4, landscape] %\setuparranging[2SIDE] %% print: \setuppapersize[A5][A4, landscape] \setuparranging[2*2] %% print in A4 double sided, cut pages and bind %% WHAT I HAVE ADDED \setuppagenumbering[alternative={singlesided,doublesided}] \setupbackgrounds[leftpage][leftframe=on] %% end print \setupcolors[state=start] %%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%% %% SC colors %% \definecolor [SCwhite] [r=1.0, g=1.0, b=1.0] \definecolor [SCblack] [r=0.0, g=0.0, b=0.0] \definecolor [SCblue] [r=0.0, g=0.0, b=0.75] \definecolor [SCred] [r=0.75, g=0.0, b=0.0] \definecolor [SCgrey] [r=0.376, g=0.376, b=0.376] \definecolor [SCgreen] [r=0.0, g=0.45, b=0.0] %%%%%%%%%%%% %% CIRMA colors %% \definecolor[cirmaBlue] [r=.0,g=.2,b=.6] %\definecolor[cirmaGrey] [r=.2,g=.2,b=.2] %lighter follows \definecolor[cirmaGrey] [r=.3,g=.3,b=.3] \definecolor[cirmaOrange] [r=1,g=.6,b=.0] % another grey \definecolor[bgGrey] [r=.9,g=.9,b=.9] %%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Define the color for bodyfont \definecolor [fontColor][black] \setupfootertexts[{\color[cirmaBlue]\tfxx Andrea Valle \hfill tSCIRMA }] \setuppagenumbering[location=footer, sectionnumber=yes, state=start] \setupfooter[state=start] \setuphead[chapter] [style=\ss\tfc, before={\startframedtext[width=local, foregroundcolor=white, background=color, backgroundcolor=cirmaBlue, framecolor=cirmaOrange,offset=.25cm, rulethickness=0.05cm, frame=off, topframe=on, bottomframe=on]},after= {\stopframedtext\blank[.25\textheight]}, ] \setuphead[section][style=\ss\tfb, before={\startframedtext[frame=off] \color[cirmaGrey]}, after={\color[cirmaBlue]\textrule\color[fontColor] \stopframedtext}] \setuphead[subsection][style=\ss\tfb,before={\startframedtext [frame=off]\color[cirmaGrey]}, after={\color[cirmaOrange]\textrule \color[fontColor]\stopframedtext}] \setupframedtexts[width=local, framecolor=cirmaOrange] \setuplayout[marking=on, margin=0pt, width=fit] %[width=fit, % rightmargin=1.5cm, % leftmargin=1.5cm, % leftmargindistance=0pt, % rightmargindistance=0pt, % height=fit, % header=0pt, % footer=20pt, % topspace=1.5cm, % backspace=1.5cm, %% cutspace=1.5cm, % bottomspace=8pt, % location=singlesided] %\setupfootertexts[{\color[blue]\tfxx a.a. 2005-06 \hfill Andrea Valle \type{<}andrea.valle@unito.it\type{>} \hfill \currentdate}] %\setupfooter[state=stop] \setupcombinations[distance=5pt] %\setupframed[frame=on,height=.9\textheight,width=.9\textwidth,top= \vss,bottom=\vss,align=right] %%\setuplabels[] %\setupcaption[figure][number=no] \definetypeface[tSCIRMA][rm][Xserif][Palatino] \definetypeface[tSCIRMA][tt][Xmono][LM Typewriter Regular] \definetypeface[tSCIRMA][ss][Xsans][Optima] \setupbodyfont[tSCIRMA, 10pt] %\setupbodyfont[sansserif] \setuptyping[color=black] %% redundant? %%%% Some defs %%%%%%%% \define[1]\Note{\blank{\tt [Lavori in corso: #1]}\blank} \define[1]\Code{{\tt #1}} \define[1]\Line{\startnarrower\tfx\startlines\blank{\tt #1}\blank \stoplines\tfa\stopnarrower} \define[1]\Url{\startnarrower #1 \stopnarrower} %%%%%% \define[1]\Ex{\tfx \input code/#1 \tfa} % "code" folder is where you put the examples % code must be ascii and result from processing % .sc files (ASCII, not rtf) in scToConTeXt.py % usage: \Ex{testSC} %%%%%% % stolen from wiki % different colors for frame in code and interpreter \defineframedtext [framedSC] [framecolor=cirmaBlue, strut=yes, offset=2mm, width=local, align=right] \definetyping[SC][option=commands, tab=2,numbering=line, bodyfont=4pt, %% does not work: ? before={\startframedSC\tfx}, after={\tfa\stopframedSC}] \defineframedtext [framedcode] [framecolor=cirmaOrange, strut=yes, offset=2mm, width=local, align=right] \definetyping[code][numbering=line, bodyfont=8pt, before={\startframedcode\tfx}, after={\tfa\stopframedcode}] \defineenumeration [Osservazione] [location=top, text=Osservazione, inbetween=\blank, after=\blank] \stopenvironment -------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise)
On Wed, Apr 9, 2008 at 10:22 AM, Andrea Valle
Thanks Wolfgang.
Hmm, your example work. But it does not if I include it my environment
What setting do you use in your environment, you have many different settings and I don't know which one of them do you use. Make a minimal example (no section formatting, no typing ...) and post this with a sample text. BTW: The argument for \startenvironment is space delimited and you should better write "\startenvironment env_scMaterials " or make a new line after the title of the environment. Wolfgang
What setting do you use in your environment, you have many different settings and I don't know which one of them do you use.
The one which is not commented.
Make a minimal example (no section formatting, no typing ...) and post this with a sample text.
ok
BTW: The argument for \startenvironment is space delimited and you should better write "\startenvironment env_scMaterials " or make a new line after the title of the environment.
I wasn't aware of it. I thought there was a line break Thanks -a-
Wolfgang ______________________________________________________________________ _____________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise)
On Wed, Apr 9, 2008 at 11:09 AM, Andrea Valle
What setting do you use in your environment, you have many different settings and I don't know which one of them do you use.
The one which is not commented.
I thought you want to arrange the pages with the "2SIDE" command but what do you use is "2*2" and the in this case rightpage needs a frame on the left side. The setupbackgrounds command is now: \setupbackgrounds[rightpage][leftframe=on] Wolfgang
Thanks Wolfgang, it works perfectly May thanks -a- On 9 Apr 2008, at 11:18, Wolfgang Schuster wrote:
On Wed, Apr 9, 2008 at 11:09 AM, Andrea Valle
wrote: What setting do you use in your environment, you have many different settings and I don't know which one of them do you use.
The one which is not commented.
I thought you want to arrange the pages with the "2SIDE" command but what do you use is "2*2" and the in this case rightpage needs a frame on the left side.
The setupbackgrounds command is now:
\setupbackgrounds[rightpage][leftframe=on]
Wolfgang ______________________________________________________________________ _____________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________________________________________________ _____________
-------------------------------------------------- Andrea Valle -------------------------------------------------- CIRMA - DAMS Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.myspace.com/andreavalle --> andrea.valle@unito.it -------------------------------------------------- " Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty " (Ken Perlin on noise)
participants (3)
-
Andrea Valle
-
luigi scarso
-
Wolfgang Schuster