Re: [NTG-context] Umlaut causes footnotline to jump
On Thu, 15 Mar 2007 18:05:41 +0100, Hans Hagen wrote: \usetypescript[postscript][\defaultencoding] \setupencoding[default=texnansi] \mainlanguage[de] \enableregime[mac] \setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt] \definepapersize[MyPage][width=15.7cm,height=23.2cm] \setuppapersize[MyPage][A4] \setuplayout [width=113mm,height=576pt, backspace=20mm,topspace=15mm, header=12pt,headerdistance=6pt, footer=42pt,footerdistance=0pt, location=middle,marking=on,grid=no] \def\setnotebodyfont {\let\setnotebodyfont\relax \restoreglobalbodyfont \switchtobodyfont[rm,9pt]\setupinterlinespace[line=9.8pt]\parskip2pt} \starttext Test 1.\footnote{BVerwGE 17, 306, 309; 65, 167, 174; {\em D°Zrig}, in: Maunz{|/|}D°Zrig, GG, Sonderdruck, Art.\,2~I Rn.\,48; auch heute wird dies noch z.\,T. so gesehen, z.\,B. bei {\em Arndt}, in: Steiner, BesVerwR, VII~B, Rn.\,131; {\em Sch°Znemann}, in: Gro°Z Komm. UWG, Rn.\,A~65; auch das \O OVG M°Znster, NWVBl. 2005, 68, 70, scheint die grundrechtlich gesch°Ztzte Wettbewerbsfreiheit nicht als eine Auspr°Zgung der Berufsfreiheit zu sehen.} Test 2.\footnote{{\em R.~Schmidt}, °Zff. Wirtschaftsrecht, AT, S.\,163; {\em Manssen}, in: v.\,Mangoldt|\,/\,|Klein|\,/\,|Starck, GG, Bd.\,1, Art.\,12 Abs.\,1, Rn.\,70; {\em Schliesky}, Offentliches \O Wettbewerbsrecht, S.\,197; {\em Tsiliotis}, Wettbewerbsfreiheit, S.\,65, mit vielen weiteren Nachweisen.} \stoptext What is the difference between footnote 1 and footnote 2, why does the \O on footnote 1 fit in its line and not in footnote 2? There have both interlinespace[line=9.8pt] ... the height and depth of the line as calculated by tex based on the actual text; 9.8 pt lineheight is nog enough to squeeze the char with the most height and depth in so you need to choose a larger value than 9.8pt (and maybe set lineskip to 0pt) The awkward thing about this is that the chosen values are given by the publishers... After some trying I saw that interlinespace[line=10.6pt] instead of 9.8pt would work. But this far beyond. The document I am working on is to be published as part of a series. So I can't change the footnote's interlinespace from 9.8pt to 10.6pt! Is there truly no other workaround? Steffen ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] No TOC and other lists with \setuparranging
Hi, If you compile a document with page arrangement within the tex file, you need to run this file first without the \setuparranging command. After this you should insert the \setuparranging command and run texexec a SINGLE time. This is normal behaviour of Context. It is related to overwriting the utility files, which loose the TOC and other info during multiple runs with the \setuparranging enabled. You might use the commandline option --pdfarrange which will take care of the above mentioned effects. Willi On Feb 24, 2007, at 10:36 PM, Piotr Kopszak wrote: Hello list, The following gives me TOC and list of defined heads called przepis at the end of the file: \definehead[przepis][section] \setuphead [chapter] [number=no] \setuphead [section] [number=no] \definepapersize[mysize][width=10cm,height=19cm] \setuppapersize[mysize][mysize] \setuplayout[backspace=17mm,location=middle,marking=on,] \starttext \startbodymatter \chapter{to start!} \dorecurse{10}{\input knuth \par} \przepis{Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{dajemy dalej!} \przepis{Prawdziwy sos warzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jagodowy} \dorecurse{5}{\input tufte \par} \chapter{Trzeci!} \dorecurse{10}{\input knuth \par} \przepis{nie-Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{nie-Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{nie-Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{To czwarty!} \przepis{Prawdziwy sos niewarzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos niejagodowy} \dorecurse{5}{\input tufte \par} \stopbodymatter \title{Spis tre\'sci} \placecontent \title{Spis przepisow} \placelist[przepis] \stoptext Whereas the following does not: \definehead[przepis][section] \setuphead [chapter] [number=no] \setuphead [section] [number=no] \definepapersize[mysize][width=10cm,height=19cm] \setuppapersize[mysize][A2] \setuparranging[2*8,rotated,doublesided] \setuplayout[backspace=17mm,location=middle,marking=on,] \starttext \startbodymatter \chapter{to start!} \dorecurse{10}{\input knuth \par} \przepis{Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{dajemy dalej!} \przepis{Prawdziwy sos warzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jagodowy} \dorecurse{5}{\input tufte \par} \chapter{Trzeci!} \dorecurse{10}{\input knuth \par} \przepis{nie-Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{nie-Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{nie-Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{To czwarty!} \przepis{Prawdziwy sos niewarzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos niejagodowy} \dorecurse{5}{\input tufte \par} \stopbodymatter \title{Spis tre\'sci} \placecontent \title{Spis przepisow} \placelist[przepis] \stoptext I am using the latest Context (ConTeXt ver: 2007.02.21 11:55 MKII fmt: 2007.2.24 int: english/english). I would be very grateful for advice Piotr -- Piotr Kopszak, Ph.D. Polish Art Gallery, National Museum in Warsaw -http://kopszak.mnw.art.pl/ http://www.magnatune.com/artists/altri_stromenti ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Willi Egger [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] No TOC and other lists with \setuparranging
Hello list, The following gives me TOC and list of defined heads called przepis at the end of the file: \definehead[przepis][section] \setuphead [chapter] [number=no] \setuphead [section] [number=no] \definepapersize[mysize][width=10cm,height=19cm] \setuppapersize[mysize][mysize] \setuplayout[backspace=17mm,location=middle,marking=on,] \starttext \startbodymatter \chapter{to start!} \dorecurse{10}{\input knuth \par} \przepis{Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{dajemy dalej!} \przepis{Prawdziwy sos warzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jagodowy} \dorecurse{5}{\input tufte \par} \chapter{Trzeci!} \dorecurse{10}{\input knuth \par} \przepis{nie-Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{nie-Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{nie-Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{To czwarty!} \przepis{Prawdziwy sos niewarzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos niejagodowy} \dorecurse{5}{\input tufte \par} \stopbodymatter \title{Spis tre\'sci} \placecontent \title{Spis przepisow} \placelist[przepis] \stoptext Whereas the following does not: \definehead[przepis][section] \setuphead [chapter] [number=no] \setuphead [section] [number=no] \definepapersize[mysize][width=10cm,height=19cm] \setuppapersize[mysize][A2] \setuparranging[2*8,rotated,doublesided] \setuplayout[backspace=17mm,location=middle,marking=on,] \starttext \startbodymatter \chapter{to start!} \dorecurse{10}{\input knuth \par} \przepis{Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{dajemy dalej!} \przepis{Prawdziwy sos warzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos jagodowy} \dorecurse{5}{\input tufte \par} \chapter{Trzeci!} \dorecurse{10}{\input knuth \par} \przepis{nie-Prawdziwy sos czosnkowy} \dorecurse{5}{\input tufte \par} \przepis{nie-Prawdziwy sos pieczarkowy} \dorecurse{5}{\input knuth \par} \przepis{nie-Prawdziwy sos jogurtowy} \dorecurse{5}{\input tufte \par} \chapter{To czwarty!} \przepis{Prawdziwy sos niewarzywny} \dorecurse{5}{\input knuth \par} \przepis{Prawdziwy sos niejagodowy} \dorecurse{5}{\input tufte \par} \stopbodymatter \title{Spis tre\'sci} \placecontent \title{Spis przepisow} \placelist[przepis] \stoptext I am using the latest Context (ConTeXt ver: 2007.02.21 11:55 MKII fmt: 2007.2.24 int: english/english). I would be very grateful for advice Piotr -- Piotr Kopszak, Ph.D. Polish Art Gallery, National Museum in Warsaw -http://kopszak.mnw.art.pl/ http://www.magnatune.com/artists/altri_stromenti ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] wrapping URL bug
There is a problem involving \setupinteraction and \useURL with \goto that prevents hyphenation of URL links in the body text. The following works properly when the\setupinteraction line is commented out. Otherwise the URL runs in to the margin. I am using ConTeXt ver: 2007.01.23 13:32 MKII. Alan __ \definepapersize[pagesize][width=36pc,height=54pc] \setuplayout[location=middle,marking=off] \setuppapersize[pagesize][pagesize] \setuplayout[width=26pc] \setupinteraction[state=start,style=rm] % for URLs and links = \useURL [Canterbury][{http://www.canterburytalesproject.org}] [][{http://www.canterburytalesproject.org}] \starttext \noindent \tfx Canterbury Tales project.\ University of Birmingham.\ \goto{\url[Canterbury]}[url(Canterbury)]. \stoptext __ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \useURL query
On Jan 25, 2007, at 3:50 PM, Alan Bowen wrote: On Jan 25, 2007, at 12:39 PM, Alan Bowen wrote: I am having a problem introducing discretionary hyphens into URLs using the latest ConTeXT and \useURL. For example, [DigRes] [{http://www.arthist.net/Link\-ERes.html}] [] [{http://www.arthist.net/LinkERes.html}] does break the URL on the printed page as I need, but the link to the target document is broken. (I get a The requested URL /Link-ERes.html was not found on this server message.) Any tips about what I am doing wrong will be much appreciated. Alan Perhaps I should elaborate and recast the problem. I am typesetting a text that includes a great number of URLs, which I have entered \useURL and \goto. Most of these URLs wrap nicely, but a there are a few which insist on running out into the margin. Now I thought I could handle this by introducing discretionary hyphens in the second field of \useURL because, so I thought, this field is a label and not the URL itself (which is in the fourth field). Plainly this is not working. So, if I cannot use discretionary hyphens {?), how do I get all the URLS to wrap properly? Alan A last try. I have discovered that the problem lies in my environment file: something in my specification of the output modes in my environment file is preventing the hyphenation of URLs using \useURL and \goto. Regrettably, I have no idea what and my tests thus far have not identified the problem. See the small sample file below. Any tips or suggestions will be much appreciated. Alan \startmode[print] \stopmode \doifmode{print}{ \definepapersize[pagesize][width=41pc,height=66pc] %% page layout \definepapersize[trimsize][width=36pc,height=54pc] \setuplayout[location=middle,marking=on] \setuppapersize[trimsize][pagesize] % define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupinteraction[state=start,color=black,style=rm] % for URLs and links \setupurl[style=normal] } % default mode --- Screen \doifnotmode{print}{ %% page layout \definepapersize[pagesize][width=36pc,height=54pc] \setuplayout[location=middle,marking=off] \setuppapersize[pagesize][pagesize] %% define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupcolor[rgb] \definecolor[NTMRScream][r=.953, g=.926, b=.801] % for page background color \setupbackgrounds[page][page] [state=start,background={color},backgroundcolor=NTMRScream] \setupinteraction[state=start,color=blue,style=rm] % for URLs and links \setupurl[style=normal] } \useURL [Canterbury][{http://www.canterburytalesproject.org}] [][{http://www.canterburytalesproject.org}] \enablemode[print] \starttext \noindent\tfx Canterbury Tales project.\ University of Birmingham.\ \goto{\url[Canterbury]}[url(Canterbury)]. \stoptext will show the problem___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \useURL query
[I apologize for any duplication: this message was originally sent yesterday at noon but apparently not distributed. A.] On Jan 25, 2007, at 3:50 PM, Alan Bowen wrote: On Jan 25, 2007, at 12:39 PM, Alan Bowen wrote: I am having a problem introducing discretionary hyphens into URLs using the latest ConTeXT and \useURL. For example, [DigRes] [{http://www.arthist.net/Link\-ERes.html}] [] [{http://www.arthist.net/LinkERes.html}] does break the URL on the printed page as I need, but the link to the target document is broken. (I get a The requested URL /Link-ERes.html was not found on this server message.) Any tips about what I am doing wrong will be much appreciated. Alan Perhaps I should elaborate and recast the problem. I am typesetting a text that includes a great number of URLs, which I have entered \useURL and \goto. Most of these URLs wrap nicely, but a there are a few which insist on running out into the margin. Now I thought I could handle this by introducing discretionary hyphens in the second field of \useURL because, so I thought, this field is a label and not the URL itself (which is in the fourth field). Plainly this is not working. So, if I cannot use discretionary hyphens {?), how do I get all the URLS to wrap properly? Alan A last try. I have discovered that the problem lies in my environment file: something in my specification of the output modes in my environment file is preventing the hyphenation of URLs using \useURL and \goto. Regrettably, I have no idea what and my tests thus far have not identified the problem. See the small sample file below. Any tips or suggestions will be much appreciated. Alan \startmode[print] \stopmode \doifmode{print}{ \definepapersize[pagesize][width=41pc,height=66pc] %% page layout \definepapersize[trimsize][width=36pc,height=54pc] \setuplayout[location=middle,marking=on] \setuppapersize[trimsize][pagesize] % define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupinteraction[state=start,color=black,style=rm] % for URLs and links \setupurl[style=normal] } % default mode --- Screen \doifnotmode{print}{ %% page layout \definepapersize[pagesize][width=36pc,height=54pc] \setuplayout[location=middle,marking=off] \setuppapersize[pagesize][pagesize] %% define print area \setuplayout[ topspace=3pc, backspace=5pc, height=48pc, header=2pc, textheight=48pc, footer=4pc, width=26pc, leftmargin=3pc, textwidth=26pc, rightmargin=3pc, rightmargindistance=0.25pc, leftmargindistance=0.25pc] \setupcolors [state=start,textcolor=black] % to set color of text \setupcolor[rgb] \definecolor[NTMRScream][r=.953, g=.926, b=.801] % for page background color \setupbackgrounds[page][page] [state=start,background={color},backgroundcolor=NTMRScream] \setupinteraction[state=start,color=blue,style=rm] % for URLs and links \setupurl[style=normal] } \useURL [Canterbury][{http://www.canterburytalesproject.org}] [][{http://www.canterburytalesproject.org}] \enablemode[print] \starttext \noindent\tfx Canterbury Tales project.\ University of Birmingham.\ \goto{\url[Canterbury]}[url(Canterbury)]. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Imposition struggles
Help! I need to get a book on paper... Using: ConTeXt ver: 2007.01.18 12:57 MKII fmt: 2007.1.19 int: english/english Problem: By means of veroffset and horoffset the arranged pages should be placed in the center of the sheet. However, depending on the number of pages, the last sheets get typeset wronlgy (shifted unexpectedly to the left). Please try the attached sample file. Willi % TEST imposition % Problems: % option cutspace in \setuplayout is not honored % option ver/horoffset do unexpected shifts of the pages on the sheet % % By means of ver/horoffset the pages should be put centered on the sheet, in order % to be able to fold and cut the sheets. % Context file % filename: imposition-test.tex % Willi Egger % 20-01-2007 \mainlanguage[nl] \usetypescript[palatino][texnansi] \setupbodyfont[palatino, rm, 11pt] % Data for the setup of the layout % Relation between height and width of the PAGE 3 : 2 % Kanon 12 % Paper height (A - D) 200 mm % Paper length (A - B) 267 mm % Inner margin 11 mm % Top margin 17 mm % Outer margin 22 mm % Lower margin 33 mm % Height typesetting area 150 mm % Width typesetting area 100 mm \definepapersize[Test][height=200mm, width=137.5mm] %incl. 4 mm bindingcorection \setuppapersize[Test][A4,landscape] \setuplayout [% % cutspace=5mm, veroffset=5mm, horoffset=-11mm, topspace=17mm, backspace=15mm, %incl. 4 mm bindingcorrection leftmargin=10mm, margindistance=1mm, width=100mm, header=0pt, headerdistance=0pt, footer=1.5\bodyfontsize, footerdistance= 3\bodyfontsize, height=167mm, marking=on] \setuppagenumbering[location={footer,right},alternative=doublesided] \setuparranging[2*2*4] \setupitemgroup[itemize] [1] [symbol=2, before={\blank[small]}, inbetween={\blank[small]}, after={\blank[small]}] \starttext % \dorecurse {30}{% This works as expected! \dorecurse {35}{% \subject{A text by Ward} \input ward \subject{A text by Louis Couperus} Overglanzende mooi was Emeralda, schitterend schoon als geen vrouw in het rijk, geen prinses in andere rijken. Zij was heel groot en vorstelijk van gestalte; zij liep heel recht en fier en trotsch; zij wàs heel trotsch, want na den dood van den koning zoû zij heerschen op den troon van het Rijk van het Verleden. IJverzuchtig op al de macht, die haar deel zoû zijn, wees zij af alle de prinsen, die dongen om hare hand. Zij sprak nooit anders dan om te bevelen, en alleen voor haar vader boog zij het hoofd. Zij droeg altijd zwaar brokaat, zilver- of goud-, en bezaaid met gesteente, en lange mantels van ruischend sindaal met breed hermelijn omzoomd; een diadeem van de eêlste juweelen flonkerde steeds in haar rossiggoud haar, en ook haar oogen waren juweel: twee prachtige groene smaragden, waarin een zwarte karbonkel was de pupil; en men fluisterde geheimzinnig, dat haar hart was geslepen uit én enkelen reuzerobijn \unknown \startitemize \item First item \item Second item \item Third item \stopitemize} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Another \setuparranging
Hi Michal There is no implemented 3SIDE arranging. However there is XY arranganging. Mostly this is used to fill sticker-sheets. - Still this can also be used to put three pages on one sheet. Consider the following setup: \definepapersize[MyPaper][height=210mm, width=95mm] \setuppapersize [MyPaper][A4,landscape] \setuplayout[location=middle,marking=on] \setuppaper [topspace=10mm, backspace=0mm, dx=5mm, dy=0mm, nx=3, ny=1, margin=0, width=297mm, height=210mm] \setuplayout [topspace=10mm, backspace=6mm, margin=0mm, width=75mm, height=190mm, header=0mm, footer=0mm] \setuparranging [XY] You will have to play with the different options. Willi Michal Kvasnicka wrote: Good evening. Is there any SIMPLE way to add one more arranging scheme to \setuparranging command? I regularly typeset some document on a piece of paper that is 1/3 of A4, and want to print it in such a way that three of them are positioned side to side on one A4 paper. I've been doing it with pstops utility. Isn't there a simple way how make \setuparranging command to do it? And one more related question: Usually the document has just one page, so in the print version there are three same pages side to side to each other. Any hint how to do it? Many thanks for your help. Michal Kvasnicka ___ 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] utility file
On Wednesday 29 November 2006 06:35, Thomas A. Schmitz wrote: On Nov 28, 2006, at 10:08 PM, Hans Hagen wrote: you need to make sure that only one run takes place and no utility file is processed --arrange normally will handle this for you Hans Hans, can you elaborate on this? Some days ago, I had a problem which I suspect had the same cause. I had prepared a bibliography for one of my classes with Taco's module; it typset beautifully. To save paper, I wanted to typeset two A5 pages on one A4 landscape page and used \setuparranging[2*2,rotated] After compiling, the bibliography was gone! I was in a hurry, so I simply undid the arranging and reverted to real cut-and-paste, but utility files seem like the obvious culprit. Best Thomas ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context I don't understand the disease but I know the cure. I use two (or more) internal modes thus: -- \startmode[pruf] \definepapersize[halff][width=5.0in,height=8.5in] \setuppapersize[halff][letter] \stopmode . \startmode[hal] \definepapersize[halff][width=5.5in,height=8.5in] \definepapersize[ful][width=8.5in,height=11in] \setuppapersize[halff][ful] \setuparranging[2UP,rotated,doublesided] \stopmode -- I run with --mode=pruf until things come out right. Then I run just one time with --mode=hal --arrange The earlier runs create the TOC etc. and the last run arranges the pages (and also destroys the work files) But the TOC has already been added before the file-icide takes effect. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why must I move frame to center it?
On Monday 27 November 2006 19:44, Aditya Mahajan wrote: \definepapersize [bok] [width=6.0in,height=9.0in] \setuppapersize [bok] [letter] \setuplayout [marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle] \setupcolors [state=start] \noheaderandfooterlines \startuseMPgraphic{bg} boolean debug ; debug := false ; path Page ; Page = (fullsquare xyscaled (\overlaywidth, \overlayheight)) ; path p ; p := Page enlarged -10mm ; path q ; q := Page enlarged -15mm ; if debug : draw Page withcolor green; draw p withcolor red ; draw q withcolor blue ; fi ; drawoptions(withcolor .85white) ; fill reverse topboundary q -- topboundary p -- cycle ; fill reverse bottomboundary q -- bottomboundary p -- cycle ; drawoptions(withcolor .65white) ; fill reverse leftboundary q -- leftboundary p -- cycle ; fill reverse rightboundary q -- rightboundary p -- cycle ; setbounds currentpicture to Page ; \stopuseMPgraphic \defineoverlay[coverpage][\useMPgraphic{bg}] \starttext \setupbackgrounds[page] [background=coverpage] \centerline{Part I} \vskip .4in \centerline{Prerequisite for Success:} \vskip .2in \centerline{A Thorough Understanding} \vfil \tfa \page[yes] \setupbackgrounds[page] [background=] \input knuth \stoptext That works perfectly without my kludgy workarounds. Therefore that is what I will use! Many thanks. -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why must I move frame to center it?
On Sunday 26 November 2006 11:27, Hans Hagen wrote: setbounds currentpicture to Page ; Unfortunately the recommended line had no effect. Did I put it in the right place? So here is the file that works (so far!) \setupoutput[pdftex] \definepapersize[bok][width=6.0in,height=9.0in] \setuppapersize[bok][letter] \setuplayout[marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle] \input fonts.tex \setupcolors[state=start] \starttext \noheaderandfooterlines \startuseMPgraphic{bg} StartPage ; setbounds currentpicture to Page ; path p ; p := Page enlarged -10mm ; path q ; q := Page enlarged -15mm ; drawoptions(withcolor .85white) ; fill reverse topboundaryq -- topboundaryp -- cycle ; fill reverse bottomboundary q -- bottomboundary p -- cycle ; drawoptions(withcolor .65white) ; fill reverse leftboundary q -- leftboundary p -- cycle ; fill reverse rightboundary q -- rightboundary p -- cycle ; StopPage ; \stopuseMPgraphic \vglue -1.55in \hglue -.75in \useMPgraphic{bg} \vglue -6.5in %\hglue .2in \BigSans \centerline{Part I} \vskip .4in \Mythe \centerline{Prerequisite for Success:} \vskip .2in \centerline{A Thorough Understanding} \vfil \tfa \page[yes] \stoptext -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why must I move frame to center it?
On Mon, 27 Nov 2006, John R. Culleton wrote: On Sunday 26 November 2006 11:27, Hans Hagen wrote: setbounds currentpicture to Page ; Unfortunately the recommended line had no effect. Did I put it in the right place? So here is the file that works (so far!) Here is an alternate approach: Use an overlay as the page background for one page. Another approach is to let MetaPost do all the page building (see the source of texmfstart manual mtexmfstart.tex) \definepapersize [bok] [width=6.0in,height=9.0in] \setuppapersize [bok] [letter] \setuplayout [marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle] \setupcolors [state=start] \noheaderandfooterlines \startuseMPgraphic{bg} boolean debug ; debug := false ; path Page ; Page = (fullsquare xyscaled (\overlaywidth, \overlayheight)) ; path p ; p := Page enlarged -10mm ; path q ; q := Page enlarged -15mm ; if debug : draw Page withcolor green; draw p withcolor red ; draw q withcolor blue ; fi ; drawoptions(withcolor .85white) ; fill reverse topboundaryq -- topboundaryp -- cycle ; fill reverse bottomboundary q -- bottomboundary p -- cycle ; drawoptions(withcolor .65white) ; fill reverse leftboundary q -- leftboundary p -- cycle ; fill reverse rightboundary q -- rightboundary p -- cycle ; setbounds currentpicture to Page ; \stopuseMPgraphic \defineoverlay[coverpage][\useMPgraphic{bg}] \starttext \setupbackgrounds[page] [background=coverpage] \centerline{Part I} \vskip .4in \centerline{Prerequisite for Success:} \vskip .2in \centerline{A Thorough Understanding} \vfil \tfa \page[yes] \setupbackgrounds[page] [background=] \input knuth \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Why must I move frame to center it?
John R. Culleton wrote: I am using some old code that Hans provided to create a pretty frame around some text, for purposes of a Part header page. Here is my current test file: -- \setupoutput[pdftex] \definepapersize[bok][width=6.0in,height=9.0in] \setuppapersize[bok][letter] \setuplayout[marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle] \setupcolors[state=start] \starttext %\startstandardmakeup \noheaderandfooterlines \startuseMPgraphic{bg} StartPage ; path p ; p := Page enlarged -10mm ; path q ; q := Page enlarged -15mm ; drawoptions(withcolor .85white) ; fill reverse topboundaryq -- topboundaryp -- cycle ; fill reverse bottomboundary q -- bottomboundary p -- cycle ; drawoptions(withcolor .65white) ; fill reverse leftboundary q -- leftboundary p -- cycle ; fill reverse rightboundary q -- rightboundary p -- cycle ; add setbounds currentpicture to Page ; StopPage ; \stopuseMPgraphic hm, inches ... \vglue -1.55in %??? \hglue -.75in%??? \useMPgraphic{bg} \vglue -6.5in \hglue .2in \centerline{\bf Here is some text} %\stopstandardmakeup \stoptext - Now here is my question: why must I use the negative \vglue and \hglue lines (arrived at by experimentation) to place the frame properly on the page? Did I mess something up? -- - 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
[NTG-context] Why must I move frame to center it?
I am using some old code that Hans provided to create a pretty frame around some text, for purposes of a Part header page. Here is my current test file: -- \setupoutput[pdftex] \definepapersize[bok][width=6.0in,height=9.0in] \setuppapersize[bok][letter] \setuplayout[marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle] \setupcolors[state=start] \starttext %\startstandardmakeup \noheaderandfooterlines \startuseMPgraphic{bg} StartPage ; path p ; p := Page enlarged -10mm ; path q ; q := Page enlarged -15mm ; drawoptions(withcolor .85white) ; fill reverse topboundaryq -- topboundaryp -- cycle ; fill reverse bottomboundary q -- bottomboundary p -- cycle ; drawoptions(withcolor .65white) ; fill reverse leftboundary q -- leftboundary p -- cycle ; fill reverse rightboundary q -- rightboundary p -- cycle ; StopPage ; \stopuseMPgraphic \vglue -1.55in %??? \hglue -.75in%??? \useMPgraphic{bg} \vglue -6.5in \hglue .2in \centerline{\bf Here is some text} %\stopstandardmakeup \stoptext - Now here is my question: why must I use the negative \vglue and \hglue lines (arrived at by experimentation) to place the frame properly on the page? Did I mess something up? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] German hyphenation broken ?
Hi, could someone please have a look at the minimal example below: On my system it seems that the old germ hyphenation doesn't work anymore. Line 7 and line 9 are for sure hyphenated according to the new rules Einbu-ßen and Sy-stem Do others experience the same or is only my installation broken? Steffen (pdfeTeX, Version 3.141592-1.30.4-2.2, ConTeXt ver: 2006.10.13 20:06) \usetypescript[postscript][\defaultencoding] \setupencoding[default=texnansi] \mainlanguage[deo] \enableregime[mac] \newdimen\Vertikal \Vertikal=12pt \setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt] \definepapersize[Test][width=15.7cm,height=23.2cm] \setuppapersize[Test][A4] \setuplayout [width=113mm,height=48\Vertikal, backspace=20mm,topspace=15mm, header=\Vertikal,headerdistance=0.5\Vertikal, footer=3\Vertikal,footerdistance=0pt, location=middle,marking=on,grid=no] \starttext \quad \index{Rentenversicherung– Zukunft der \~}Im Hinblick auf den Umbau von Sozialversicherungssystemen hat das Bundesverfassungsgericht allerdings einem künftigen Reformgesetzgeber insoweit das Feld bereitet, als es angemerkt hat, daß das westdeutsche (nunmehr gesamtdeutsche) gesetzliche Rentenversicherungssystem von der Möglichkeit einer Umgestaltung nicht so ausgenommen ist\footnote{Test}. Diese Tatsache ist nicht neu; die bisher vorhandene Finanzkraft der Sozialversicherung hat die Frage nur nicht aktuell werden lassen. Selbst wenn also ein tiefgreifender Umbau verbunden mit Einbußen in der Rechtssubstanz von Ansprüchen stattfinden würde, könnte man sich nur schwer auf eine Präzendenzwirkung des Urteils zur rentenrechtlichen Systementscheidung je berufen\footnote{Test}; die Akzeptanz einer entsprechenden Reform mag dadurch vielleicht steigen, da die politischen Akteure argumentieren können, so etwas ähnliches habe es schon einmal gegeben. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Imorting multiple page pdf.
Some of my friends over on the Scribus list are struggling with pamphlet layout and so on. It occured to me that if a multiple page pdf created by Scribus were inserted into a Context file then the Context prepress manipulation could be used to set it up. Here is an edited fragment of an actual Context file I use every other month: -- \setupoutput[pdftex] %% \setuplayout[textwidth=4.25in, location=middle, footer=10pt, header=0pt, backspace=.75in, textheight=8in], \startmode[hal] \definepapersize[halff][width=5.5in,height=8.5in] \definepapersize[ful][width=8.5in,height=11in] \setuppapersize[halff][ful] \setuparranging[2UP,rotated,doublesided] \stopmode %% %% -- Now is there a way to bring in properly sized pdf pages after this point and have them rearranged by Context? Could the whole file be brought in with one command? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation
Mojca Miklavec wrote: On 9/7/06, Mojca Miklavec wrote: Hello, \setuppapersize[XY] is not working properly when paper orientation is landscape. The following code results in pages of dimensions 29.5 x 29.5 cm: \setuppapersize [XY][A4,landscape] \setuppaper [nx=3,ny=1] \setuparranging [XY] Are there any news about fixing page dimensions in XY papersizes? hm, that sounds desperate ... watch the lunatic definition below: \unprotect \definepapersize [XY] [\c!height=\dimexpr\ifnum\printlandscape\zerocount \dimexpr\dimexpr\@@ppwidth -\numexpr\@@ppnx-1\relax\dimexpr\@@ppdx\relax\relax/\@@ppnx\relax \else \dimexpr\dimexpr\@@ppheight-\numexpr\@@ppny-1\relax\dimexpr\@@ppdy\relax\relax/\@@ppny\relax \fi\relax, \c!width =\dimexpr\ifnum\printlandscape\zerocount \dimexpr\dimexpr\@@ppheight-\numexpr\@@ppny-1\relax\dimexpr\@@ppdy\relax\relax/\@@ppny\relax \else \dimexpr\dimexpr\@@ppwidth -\numexpr\@@ppnx-1\relax\dimexpr\@@ppdx\relax\relax/\@@ppnx\relax \fi\relax] \setuppapersize [XY][A4,landscape] \setuppaper [nx=6,ny=4] \setuparranging [XY] \starttext \dorecurse{1}{\recurselevel\space} \stoptext - 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
Re: [NTG-context] \setuppapersize[XY] not working properly with landscape orientation
Hi, Indeed there is a calculation problem. Even if you define your papersize as a landscape paper with \definepapersize[Mylandscape][height=210mm, width=297mm] the calculation is incorrect. Apparently the problem is not related to the option landscape or rotated. Willi Mojca Miklavec wrote: Hello, \setuppapersize[XY] is not working properly when paper orientation is landscape. The following code results in pages of dimensions 29.5 x 29.5 cm: \setuppapersize [XY][A4,landscape] \setuppaper [nx=3,ny=1] \setuparranging [XY] \showframe \starttext second page \page last page \page first page \page content in \page the middle \page three pages \stoptext I also have an additional question: I can use \setupbackgrounds [page] [background=...] for single pages which works perfectly. But how can I place a background figure on the whole page (i.e. spanning across the middle three 'conceptual' pages, which is the second page when printed on paper) Thank you, Mojca ___ 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] 2DOWN imposition gives blank pages
On 8/29/06, Sanjoy Mahajan wrote: texexec --pdfarrange --paper=a5a4 --2up yourfile.pdf I tried a few experiments with no luck. Not sure if it's a context or texexec problem, or my confusion. I made the multi-page p5.pdf from try --paperformat instead of --paper. texexec --pdfcombine --combination=2*1 --paperformat=A4,landscape*A4,lanscape --nobanner filename.pdf seems to do almost what you want (although it's way to complicated if you ask me), but I still don't understand how \definepapersize[offset=#{paperoffset}] works. Mojca \setuppapersize[A4][A4] \starttext \dorecurse{50}{ \input tufte } \stoptext Then I ran 'texexec --pdfarrange --paper=a5a4 p5.pdf' (the --2up doesn't change the error below) and got this error: ! Missing number, treated as zero. to be read again a \@@ppoffset -a 5a4 \calculatepaperoffsets ...lue {\??pp #1\c!offset } \divide \scratchdimen \arr... argument ...!height }\calculatepaperoffsets {A4} \xdef \papersize {A4} \firstofoneargument #1-#1 \next1 #1,-\docommando {#1} \doprocesscommaitem ... l.3 \setuplayout texexec is doing the arranging by making the following 'texexec.tex' file and then, I think, running texexec on it: \definepapersize [offset=a5a4] \setuplayout [backspace=0cm, topspace=0cm, width=middle, height=middle, location=middle, header=0pt, footer=0pt] \setuppagenumbering [alternative=doublesided] \starttext \insertpages [p5.pdf] [width=0cm] \stoptext The 'offset=a5a4' is upsetting Context; according to texshow-web on the garden, the offset should be a dimension. Also, I couldn't find (using grep) the string 'a5a4' in the context sources. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 2DOWN imposition gives blank pages
texexec --pdfarrange --paper=a5a4 --2up yourfile.pdf I tried a few experiments with no luck. Not sure if it's a context or texexec problem, or my confusion. I made the multi-page p5.pdf from \setuppapersize[A4][A4] \starttext \dorecurse{50}{ \input tufte } \stoptext Then I ran 'texexec --pdfarrange --paper=a5a4 p5.pdf' (the --2up doesn't change the error below) and got this error: ! Missing number, treated as zero. to be read again a \@@ppoffset -a 5a4 \calculatepaperoffsets ...lue {\??pp #1\c!offset } \divide \scratchdimen \arr... argument ...!height }\calculatepaperoffsets {A4} \xdef \papersize {A4} \firstofoneargument #1-#1 \next1 #1,-\docommando {#1} \doprocesscommaitem ... l.3 \setuplayout texexec is doing the arranging by making the following 'texexec.tex' file and then, I think, running texexec on it: \definepapersize [offset=a5a4] \setuplayout [backspace=0cm, topspace=0cm, width=middle, height=middle, location=middle, header=0pt, footer=0pt] \setuppagenumbering [alternative=doublesided] \starttext \insertpages [p5.pdf] [width=0cm] \stoptext The 'offset=a5a4' is upsetting Context; according to texshow-web on the garden, the offset should be a dimension. Also, I couldn't find (using grep) the string 'a5a4' in the context sources. -Sanjoy `Never underestimate the evil of which men of power are capable.' --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] header misaligned and columns problem
Hello This is my page: \definepapersize[argento][width=20cm,height=28cm] \setuppapersize[argento][A3] \setuppagenumbering[alternative=doublesided,location=] \setuplayout[location=middle,marking=on,textwidth=150mm] And everithig is fine, but headers are not aligned with text. Also, I use 2 columns in most of the book, but 4 chapters uses 3 columns. I use \startcolumns[n=2, balance=yes,distance=8mm] or \startcolumns[n=3, balance=yes,distance=5mm] In two columns is ok, but in 3 columns, all the 3 columns don´t fit the whole textwidth, I mean, the sum of the 3 columns width plus the 2 intercolumns space are less (about 1cm) than 150mm, as setuplayout says. Thankyou very much. _ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] header misaligned and columns problem
On Tue, 22 Aug 2006, Horacio Suarez wrote: Hello This is my page: \definepapersize[argento][width=20cm,height=28cm] \setuppapersize[argento][A3] \setuppagenumbering[alternative=doublesided,location=] \setuplayout[location=middle,marking=on,textwidth=150mm] Quoting Hans from another thread it's dangerous to use dimensions in \setuplayout that get set themselves also, textwidth is for special purposed and special effects, not to be used here (spoils things) So instead of specifying the textwidth, specify the backspace and cutspace and let context figure out the textwidth... \setuplayout [width=middle, location=middle, backspace=2.5cm, cutspace=2.5cm, marking=on] And everithig is fine, but headers are not aligned with text. Also, I use 2 columns in most of the book, but 4 chapters uses 3 columns. I use \startcolumns[n=2, balance=yes,distance=8mm] or \startcolumns[n=3, balance=yes,distance=5mm] In two columns is ok, but in 3 columns, all the 3 columns don´t fit the whole textwidth, I mean, the sum of the 3 columns width plus the 2 intercolumns space are less (about 1cm) than 150mm, as setuplayout says. The following works fine for me \definepapersize[argento][width=20cm,height=28cm] \setuppapersize[argento][A3] \setuppagenumbering[alternative=doublesided,location=] \setuplayout [width=middle, location=middle, backspace=2.5cm, cutspace=2.5cm, marking=on] \showframe \setupheadertexts[chapter][pagenumber] \starttext \chapter{Two Columns} \startcolumns[n=2, balance=yes,distance=8mm] \dorecurse{6}{\input knuth \endgraf} \stopcolumns \chapter{Three Columns} \startcolumns[n=3, balance=yes,distance=5mm] \dorecurse{6}{\input knuth \endgraf} \stopcolumns \stoptext Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] infinite paper height
Hello, Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can still create a page of height 2m and then crop it if no other solution is available.) \setuplayout [width=8cm] \definepapersize [infinite] [width=12cm, height=100cm] \setuppapersize [infinite] [infinite] Thank you, Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] infinite paper height
On 7/18/06, Hans Hagen wrote: Mojca Miklavec wrote: Hello, Is there any way to create infinite paper size: such a paper that all the content fits exactly on a single page? ̣(As a workaroung I can still create a page of height 2m and then crop it if no other solution is available.) \setuplayout [width=8cm] \definepapersize [infinite] [width=12cm, height=100cm] \setuppapersize [infinite] [infinite] \starttext \startTEXpage your 4 meter poem \stopTEXpage \stoptext Thank you, that's great! I knew about TEXpage, but never thought/forgot about such a misuse. Except for one little (buggy?) detail: \setuplayout [width=8.55cm, topspace=0cm, backspace=0cm, header=0pt, footer=0pt, height=fit, ] \definepapersize [infinite] [width=8.55cm, height=60cm] \starttext \startTEXpage \section{bla} \input tufte \stopTEXpage \stoptext section is too low and consequently the last (few) line(s) are cropped. The example on http://pub.mojca.org/presek/articles.tex also has the last page wider than the first two. Mojca PS: this last request has nothing to do with the problem above, but I have a little request if anyone is willing to help me. I need the file mentioned above (http://pub.mojca.org/presek/article2.tex) to be typeset in lucida (only to show it to the editor; they'll almost certainly buy the font, but I need the example faster than I can ask them to buy the font and figure out how to use it; they gave me 19 pfb files, but they're dating back to 1990 and it seems to me that there are not enough files anyway). Is anyone willing to compile the file above with lucida font and send me the resulting PDF? I would be very grateful for that. The last page has a little problem with accents and everything is shifted down, but I don't mind if they are a bit wrong this time since it's only an example. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cropmarks
[EMAIL PROTECTED] wrote: The following: --- \definepapersize[RM][width=170mm,height=240mm] \setuppapersize [RM][A4] \setuplayout[marking=on, location=middle] \starttext Bla \stoptext --- results in 163mm width and 230mm height. What is wrong here? before or after printing? The proportions 210/170=1.235 are ok on screen! Printing with ghostscript is ok too. Printing with acrobat is the problem. Obviously this is not a context problem. Soory! acrobat talks with the printer driver and scales down to let the page fit into the printable area; you can disable this in the pribter settings Hans - 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
[NTG-context] cropmarks
Hallo! The following: --- \definepapersize[RM][width=170mm,height=240mm] \setuppapersize [RM][A4] \setuplayout[marking=on, location=middle] \starttext Bla \stoptext --- results in 163mm width and 230mm height. What is wrong here? A second observation: file 'rm.tex' with \startenvironment rm ... \stopenvironment is not found in 'test.tex' with \environment rm ... renaming to 'whatever' helps Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cropmarks
[EMAIL PROTECTED] wrote: Hallo! The following: --- \definepapersize [RM][width=170mm,height=240mm] \setuppapersize [RM][A4] \setuplayout [marking=on, location=middle] \starttext Bla \stoptext --- results in 163mm width and 230mm height. What is wrong here? before or after printing? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cropmarks
The following: --- \definepapersize[RM][width=170mm,height=240mm] \setuppapersize [RM][A4] \setuplayout[marking=on, location=middle] \starttext Bla \stoptext --- results in 163mm width and 230mm height. What is wrong here? before or after printing? after printing. How could I measure this before printing? Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] cropmarks
Hi Wolfgang Compiling with: ConTeXt ver: 2006.06.09 13:05 fmt: 2006.6.15 int: english mes: english I get the correct output on a HPlaserjet2100. The only option chosen is auto-center and autorotate. Make sure, that your printer does not perform any scaling. Willi [EMAIL PROTECTED] wrote: The following: --- \definepapersize[RM][width=170mm,height=240mm] \setuppapersize [RM][A4] \setuplayout[marking=on, location=middle] \starttext Bla \stoptext --- results in 163mm width and 230mm height. What is wrong here? before or after printing? after printing. How could I measure this before printing? 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
[NTG-context] Footnotes on wrong page
I wrote about this a few days ago, but did not get a response, perhaps because I included sample code. So...this time I am including the main part of my code so you can perhaps see what I am doing wrong. My problem is that many of my footnotes show up on the wrong page. Sometimes the text that references the footnote is at the bottom of a page, and the footnote number shows up with a small graphic arrow next to it. In these cases, the actual footnote text will show up on the next page. Also in this case, the footnote number with the footnote text will usually be labeled 1, even though the next footnote after it (the one that really belongs on that page) is numbered 1 also. Sometimes footnote numbers appear in the text even though there is no footnote on any page that has that number. Any help is appreciated. Jeff Dodson _ Call Anyone, Anytime, Anywhere in the World - FREE! Free Internet calling from NetZero Voice Visit http://www.netzerovoice.com today! % Use t-ancientgreek module for typesetting ancient Koine Greek \usemodule[ancientgreek][font=Aristarcoj,scale=1.1] %\usemodule[ancientgreek][font=KadmosNew,scale=1] %\usemodule[ancientgreek][font=GreekGentiumAlt,scale=1] % Set up custom paper size \definepapersize[TradePaper][width=6in,height=9in] \setuppapersize[TradePaper][TradePaper] % Set up page layout \setuplayout [ topspace=.3in, %bottomspace=.25in, bottomspace=0in, bottom=.25in, bottomdistance=.1in, cutspace=0in, backspace=.5in, header=.2in, headerdistance=.1in, footer=0in, rightmargin=0in, leftmargin=0in, height=8.15in, width=4.75in ] % Use 12pt font by default \setupbodyfont[Serif,11pt] % Set up line-break tolerance \setuptolerance[horizontal,space,verytolerant] \raggedbottom % Set up indentation parameters \setupindenting[big,yes] %\setupindenting[medium,yes] \indenting[always] % Set up inter-paragraph spacing \setupwhitespace[medium] % Set up a counter that will act as our footnote label \newcounter\fnumlabel % Set up special command to turn off default footnote numbers next to footnote text \def\deffnumsoff#1{\tfxx} % Set up footnotes in paragraph form (n=0) with proper font size, etc., and no default footnote numbers. % Footnote numbers will be part of actual footnote text. \setupfootnotes[n=0,bodyfont=9pt,way=bypage,before=\crlf\hairline,textcommand=\vii\high,style=\it\vii,rule=off,numbercommand=\deffnumsoff,split=tolerant] % Left-justify footnotes \setupfootnotedefinition[distance=0pt] % Set up custom macro to replace default \footnote macro. This macro will include the footnote number % as part of the footnote text and then increment the footnote label counter for the next footnote. \def\fnote#1#2{\footnote[\fnumlabel]{\note[\fnumlabel]\localgreek{#1}, \ix{\it{#2}}}\increment\fnumlabel} % Set up footnotes so that there is hyphenation %\setupnote[footnote][align={normal,hyphenated}] \setupnote[footnote][align={nothyphenated,stretch,verytolerant}] % Set up macros to handle drop-cap chapter numbers %\def\DropChapOne{\DroppedCaps{}{Serif}{4\baselineskip}{0pt}{2\baselineskip}{3}} \def\DropChapOne{\DroppedCaps{}{Serif}{2.4\baselineskip}{5pt}{1\baselineskip}{2}} \def\DropChap{\DroppedCaps{}{Serif}{2.4\baselineskip}{5pt}{1\baselineskip}{2}} % Set up marker for verses \definemarking[verse][verses] % % Text formatting macros: % % Very large dropped number for first chapter number of book \def\bookbeg#1#2{\DropChapOne{#1}\marking[verse]{#1:#2}} % Large dropped number for subsequent chapter numbers \def\chapnum#1#2{\par\DropChap{#1}\marking[verse]{#1:#2}} % Smaller, bold number followed by a non-breaking space for verse numbers \def\versenum#1#2{{\tfx\bf #2}~\marking[verse]{#1:#2}} % Macro for all Greek text. Note that we turn off hyphenation in this text. \def\lg#1{\localgreek{#1}} \def\lag#1{\localaltgreek{#1}} % Book-style alternating pages \setuppagenumbering[alternative=doublesided,location=,way=bytext,partnumber=no] \setupbottomtexts[pagenumber] \setupbottom[style=\tf,state=high] % Clear out header texts, then set them up again \setupheadertexts[] \setupheadertexts[\setups{text a}][][][\setups{text b}] % Set up header text for odd pages \startsetups[text a] \hfill \getmarking[chapter] \hfill \llap{\getmarking[verse][first]--\getmarking[verse][last]} \stopsetups % Set up header text for even pages \startsetups[text b] \rlap{\getmarking[verse][first]--\getmarking[verse][last]} \hfill \getmarking[chapter] \hfill \stopsetups % Hairline under every header %\setupheader[text][after=\hairline] \setupbackgrounds[header][text][frame=off,bottomframe=on] % Special command to turn off chapter title numbers \def\nochapnum#1{\crlf\crlf\crlf} % Set up beginning-of-chapter pages so that they don't have headers \setuphead[chapter][numbercommand=\nochapnum,distance=0pt,header=high,footer=empty,textstyle=\tfd,alternative=middle
[NTG-context] Printing labels with ConTeXt
Hi all, I need to print labels on this kind of paper: - A4 page with 24 labels (70mm x 36mm) - 3 columns and 8 rows - 4.5mm top margin, 4.5mm bottom margin I use: \definepapersize[DECAdry-70x36][width=70mm,height=36mm] \setuppapersize[DECAdry-70x36][A4] \setuppaper[nx=3,ny=8] \setuparranging[XY] I just need to know how to reserve a vertical white space (4.5mm) from the top of the A4 page and put all my labels side-by-side (vertically and horizontally). Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuppapersize and \startMPpage
2006/5/11, Aditya Mahajan [EMAIL PROTECTED]: On Wed, 10 May 2006, Johan Sandblom wrote: Thank you, this almost works, but the title graphic (of thesis size) is not centered on the A4 paper, but in the lower right corner. How can I make it go to the right place? \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \starttext \startMPgraphic % Some metafun \stopMPgraphic \loadcurrentMPgraphic{possibly something should go here?} \placeMPgraphic % Some text \stoptext Untested, but how about \loadcurrentMPgraphic %{width=\textwidth} %Try with and without textwidth \placefigure [here] {none} {\placeMPgraphic} Yes, I tried that; with no arguments to \loadcurrentMPgraphic the thesis page is placed on the bottom of the A4 and not quite in the middle (?). with width=\textwidth or \makeupwidth the result is the same. Aditya PS: In future, also copy to the list, others may have better idea on how to do this. Yes, I had intended to, and thought I did, but apparently I am more trigger happy than I allow for ... Thank you for your help, Johan Regards, Johan 2006/5/9, Aditya Mahajan [EMAIL PROTECTED]: On Tue, 9 May 2006, Johan Sandblom wrote: Dear expertise, I have the following: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \setuplayout [location=middle, marking=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page placed on an A4 sheet as well. What am I doing wrong? MPpage creates a page with dimensions equal to the bounding box of the graphic. If you want to center a MP figure on your title page, use \startMPgraphic Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuppapersize and \startMPpage
Johan Sandblom wrote: 2006/5/11, Aditya Mahajan [EMAIL PROTECTED]: On Wed, 10 May 2006, Johan Sandblom wrote: Thank you, this almost works, but the title graphic (of thesis size) is not centered on the A4 paper, but in the lower right corner. How can I make it go to the right place? \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \starttext \startMPgraphic % Some metafun \stopMPgraphic \loadcurrentMPgraphic{possibly something should go here?} \placeMPgraphic % Some text \stoptext Untested, but how about \loadcurrentMPgraphic %{width=\textwidth} %Try with and without textwidth \placefigure [here] {none} {\placeMPgraphic} Yes, I tried that; with no arguments to \loadcurrentMPgraphic the thesis page is placed on the bottom of the A4 and not quite in the middle (?). with width=\textwidth or \makeupwidth the result is the same. Aditya PS: In future, also copy to the list, others may have better idea on how to do this. Yes, I had intended to, and thought I did, but apparently I am more trigger happy than I allow for ... Thank you for your help, Johan Regards, Johan 2006/5/9, Aditya Mahajan [EMAIL PROTECTED]: On Tue, 9 May 2006, Johan Sandblom wrote: Dear expertise, I have the following: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \setuplayout [location=middle, marking=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page placed on an A4 sheet as well. What am I doing wrong? MPpage creates a page with dimensions equal to the bounding box of the graphic. If you want to center a MP figure on your title page, use \startMPgraphic Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \definelayer[page][width=\paperwidth,height=\paperheight] \starttext \startTEXpage \setlayer [page] [preset=lefttop,x=3cm,y=4cm] {\startMPcode fill fullcircle scaled 10cm; \stopMPcode} \tightlayer[page] \stopTEXpage \stoptext - 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
Re: [NTG-context] \setuppapersize and \startMPpage
2006/5/11, Hans Hagen [EMAIL PROTECTED]: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \definelayer[page][width=\paperwidth,height=\paperheight] \starttext \startTEXpage \setlayer [page] [preset=lefttop,x=3cm,y=4cm] {\startMPcode fill fullcircle scaled 10cm; \stopMPcode} \tightlayer[page] \stopTEXpage \stoptext This works if I change \paperwidth and \paperheight to \printpaperwidth and \printpaperheight and change the dimensions slightly. Thank you, Johan - 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 - -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setuppapersize and \startMPpage
Dear expertise, I have the following: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \setuplayout [location=middle, marking=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page placed on an A4 sheet as well. What am I doing wrong? Johan -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden What is wanted is not the will to believe, but the will to find out, which is the exact opposite - Bertrand Russell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuppapersize and \startMPpage
On Tue, 9 May 2006, Johan Sandblom wrote: Dear expertise, I have the following: \definepapersize[thesis][width=169mm, height=239mm] \setuppapersize[thesis][A4] \setuplayout [location=middle, marking=on] \setuppagenumbering [alternative=doublesided, location=marginedge, state=stop] \starttext % Title page \startMPpage % Some metafun \stopMPpage % Some text \stoptext The resulting pdf has a smaller first page (thesis size) while the rest are A4 with the thesis pages place centrally. I would like to see the title page placed on an A4 sheet as well. What am I doing wrong? MPpage creates a page with dimensions equal to the bounding box of the graphic. If you want to center a MP figure on your title page, use \startMPgraphic Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Cranky booklet layout.
Hi John, Coud it be that you simply forgot the = after width? Willi John R. Culleton wrote: First I built a letter-on-tabloid booklet like this: \definepapersize[tabloid][width=11in,height=17in] \setuppapersize[letter][tabloid] \setuparranging[2UP,rotated,doublesided] \setuplayout[width=7in,location=doublesided,backspace=0.73in, topspace=.0in,height=10.3in] This worked pretty well. For the next iteration I wanted to reduce the size by one half, in other words a half letter sheet on a letter sheet. I came up with this: \definepapersize[halff][width 5.5in,height=8.5in] \definepapersize[ful][width 8.5in,height=11in] \setuppapersize[halff][ful] \setuparranging[2UP,rotated,doublesided] Now no amount of fiddling with \setuplayout parameters seems to place the logical pages correctly on the paper. If I use no such parameters whatever the entire physical page image seem to slide toward the bottom of the piece of paper. As a result the bottom logical page slides halfway off the page. Can anyone spot an obvious goof? John Culleton ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Cranky booklet layout.
John R. Culleton wrote: On Wednesday 26 April 2006 07:21, John R. Culleton wrote: On Wednesday 26 April 2006 04:42, Willi Egger wrote: Hi John, Coud it be that you simply forgot the = after width? Willi Of course. It was staring at me and I didn't see it. I missed two of them in fact. Thanks Willi. Ah I spoke too soon. The layout is OK but the TOC disapears when I use the \setuparranging. It works otherwise. I get a message on sysout: - output file : apr06.tuo remark : no output file generated - The apr06.tui file has the TOC entries, e.g., - c \listentry{section}{1}{}{2006 Events Calendar}{2::0:0:1:0:0:0:0::25}{25} c \listentry{section}{2}{}{2007 Events Calendar}{2::0:0:2:0:0:0:0::25}{25} c \listentry{section}{3}{}{2006 Officers, Directors and Board Members} {2::0:0:3:0:0:0:0::25}{25} c \listentry{section}{4}{}{Contact Information}{2::0:0:4:0:0:0:0::25}{25} c \listentry{section}{5}{}{Board Meeting Minutes February 20, 2006} {2::0:0:5:0:0:0:0::25}{25} c \listentry{section}{6}{}{Brags}{2::0:0:6:0:0:0:0::25}{25} -- The log file says in part: --- ./content.tex system : part,chapter,section not found/processed - content.tex is a called subfile containing just: --- \startcolumns[n=2] \placecontent[level=section, alternative=c] \stopcolumns --- I use a mode to create the booklet. When I don't use the mode the toc is fine. Here is the mode: -- \startmode[hal] \definepapersize[halff][width=5.5in,height=8.5in] \definepapersize[ful][width=8.5in,height=11in] \setuppapersize[halff][ful] \setuparranging[2UP,rotated,doublesided] \setuplayout[margin=0pt,width=fit] \stopmode - The TOC is not absolutely critical to this particular job, but I would like to know what is happpening (or not happening in this case.) use texexec --arrange which will do a normal run followed by an arrange one (alternatively, use --once when you arrange) Hans -- - 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
Re: [NTG-context] Arranging pages
What you can do is e.g. the following: \definepapersize[Card][width=14.85cm,height=21cm] \setuppapersize[Card][A4,landscape] \setuplayout [topspace=1cm, backspace=1cm, margin=0pt, header=0pt, footer=0pt, height=19cm, width=12.5cm] \setuppaper[nx=2,ny=1] \setuparranging[XY] \starttext Contents of A Contents of B \stoptext Kind regards Willi Renaud AUBIN wrote: Hi all, I'm working on my wedding's Menu with ConTeXt (I have started ConTeXt and metafun when making my wedding invitations ;) and already succeed to produce nice booklets) Considering two pages A and B, I would obtain: AB on the same page with setuparranging I obtain 0A B0 with 0 an empty page I have succeeded (is it really a success !!!) to obtain 00 AB using \page[even] and \page[yes] (I have to precise here that we would not to print a booklet for practical reasons) It's ok if I use --pages=2 but I feel frustating because I feel that it could be really simple to do what I wanted, i.e.: AB !!! I know that it could be done with overlay but I assume that there is a much simplier solution to this simple problem... Cheers Renaud ___ 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
[NTG-context] Cranky booklet layout.
First I built a letter-on-tabloid booklet like this: \definepapersize[tabloid][width=11in,height=17in] \setuppapersize[letter][tabloid] \setuparranging[2UP,rotated,doublesided] \setuplayout[width=7in,location=doublesided,backspace=0.73in, topspace=.0in,height=10.3in] This worked pretty well. For the next iteration I wanted to reduce the size by one half, in other words a half letter sheet on a letter sheet. I came up with this: \definepapersize[halff][width 5.5in,height=8.5in] \definepapersize[ful][width 8.5in,height=11in] \setuppapersize[halff][ful] \setuparranging[2UP,rotated,doublesided] Now no amount of fiddling with \setuplayout parameters seems to place the logical pages correctly on the paper. If I use no such parameters whatever the entire physical page image seem to slide toward the bottom of the piece of paper. As a result the bottom logical page slides halfway off the page. Can anyone spot an obvious goof? John Culleton -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Peter Rolf wrote: Miguel Queiros wrote: Hello Peter, \start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically. So deleting them is no good idea (results in extra work for you) :) Yes, I noticed that... :) If you can make a minimal example of your buffer problems... Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors... Hi Miguel. I have attached a working example (sorry for the crippled output; seems, my emacs is not configured right for utf). Greets, Peter Thanks for your help! Miguel Queirós \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. % It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the % % \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]} This is what I call 'creative usage' of a feature :) Better use \getbuffer for this. \setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop \page \setuppapersize[A4][A4] P�gina 3. \page P�gina 4. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context enough suffereing ... % for cont-new.tex: \unprotect \def\definepapersize {\dotripleempty\dodefinepapersize} \def\dodefinepapersize[#1][#2][#3]% {\ifsecondargument \doifsomething{#1} % to be sure {\doifassignmentelse{#2} {\getparameters [\??pp#1] % geen \c!scale, scheelt hash ruimte [\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]} {\setvalue{\??pp:1:#1}{#2}% \setvalue{\??pp:2:#1}{#3}}}% \else \getparameters[\??pp][#1]% \setuppapersize \fi} \def\dosetuppapersize[#1][#2]% {\doifassignmentelse{#1} {\setuppaper[#1]} {\doifelsenothing{#2} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:2:#1}{}]}} {\doifassignmentelse{#2} {\getparameters[\??pp\executeifdefined{\??pp:1:#1}{#1}][#2]} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:1:#2}{#2}]} \let\reinstatepapersize\relax \def\adaptpapersize {\global\let\reinstatepapersize\restorepapersize \setuppapersize} \appendtoks \reinstatepapersize \global\let\reinstatepapersize\relax \to \everyaftershipout \protect \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \stoptext - 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
[NTG-context] Absolute positioning of grafics in ConTeXt
Hi all, I'm quite new to ConTeXt, but I've been working with LaTeX for several years now. Now I faced a problem which I'm not able to solve in LaTeX which probably can be solved in ConTeXt: I need a possibility to set grafics in a book on exact, absolute positions. Now I found the way for background images, like in the attached example. But obviously, normal text is written above the background image. I need now a possibility like this but for foreground grafics. So, how can I set the position of grafics absolutely in ConTeXt? Thanks, Johannes. My example: -- \enableregime [il1] \mainlanguage [de] \setuplayout [grid=yes,marking=on,horoffset=2cm,veroffset=2cm] \definepapersize [jo][width=14cm,height=18cm] \setuppapersize [jo][a4] \useexternalfigure[wr][dpm][type=png, width=5cm, height=4cm] \definelayer[wr-layer] \defineoverlay[wr-overlay][\composedlayer{wr-layer}] \setupbackgrounds[page][background={wr-overlay}] \starttext \setlayer[wr-layer][x=-0.1cm,y=-0.1cm]{\externalfigure[wr]} Blablabla \stoptext -- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Absolute positioning of grafics in ConTeXt
Johannes Fichtinger wrote: Hi all, I'm quite new to ConTeXt, but I've been working with LaTeX for several years now. Now I faced a problem which I'm not able to solve in LaTeX which probably can be solved in ConTeXt: I need a possibility to set grafics in a book on exact, absolute positions. Now I found the way for background images, like in the attached example. But obviously, normal text is written above the background image. I need now a possibility like this but for foreground grafics. So, how can I set the position of grafics absolutely in ConTeXt? Thanks, Johannes. My example: -- \enableregime [il1] \mainlanguage [de] \setuplayout[grid=yes,marking=on,horoffset=2cm,veroffset=2cm] \definepapersize[jo][width=14cm,height=18cm] \setuppapersize [jo][a4] \useexternalfigure[wr][dpm][type=png, width=5cm, height=4cm] \definelayer[wr-layer] \defineoverlay[wr-overlay][\composedlayer{wr-layer}] \setupbackgrounds[page][background={wr-overlay}] \setupbackgrounds[page][background={foreground,wr-overlay}] Cheers, Vit \starttext \setlayer[wr-layer][x=-0.1cm,y=-0.1cm]{\externalfigure[wr]} Blablabla \stoptext -- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Multi-page tables
Hi all, I'm having a bit of trouble getting multiple page tables to work when also using \placetable for captions. Essentially, I want: (1) Captions and the ability to reference with \in[]. (2) Alignment within a cell at a decimal point. (3) Span multiple pages with header/footer. I think I would prefer to use the standard 'TABLES' method but it looks like item 2 is only supported in natural tables? Below are two examples. I don't get page breaks in either case and the table runs off the bottom of pages 2 and 3. Thanks, Randall \definepapersize [width=8.5in, height=11in] \setupcaption[table] [location=top] \starttext \section{Testing} This is a silly table test. \placetable[page][tbl:sample] {Sample table caption goes here} {\start \switchtobodyfont[small] \starttablehead \HL \VL command \NC meaning \NC $\lambda$ (deg.) \VL\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|c|l|c|] \VL \tex{NC}\NC next column \NC1.15 \VL\FR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\LR \stoptables \stop} \section{Natural Testing} This is a silly natural table test. \placetable[page][tbl:naturalSample] {Sample table caption goes here} {\start \switchtobodyfont[small] \bTABLE[split=repeat, splitmethod=a] % Outside border \setupTABLE[frame=off] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \setupTABLE[row][first][topframe=on] \setupTABLE[row][last][bottomframe=on] % Heading line bottom rule \setupTABLE[row][first][bottomframe=on] % Alignment \setupTABLE[column][1][width=2.5cm,align=middle] \setupTABLE[column][2][width=2.5cm,align=right] \setupTABLE[column][3][width=2.5cm,alignmentcharacter={.},aligncharacter=yes,align=middle] % Header \bTABLEhead \bTR\bTD command \eTD\bTD meaning \eTD\bTD $\lambda$ (deg.) \eTD\eTR \eTABLEhead % Body \bTABLEbody \bTR\bTD \tex{NC}\eTD\bTD next column \eTD\bTD1.15 \eTD\eTR \bTR\bTD \tex{HL}\eTD\bTD horizontal line \eTD\bTD 10.20 \eTD\eTR \bTR\bTD \tex{VL}\eTD\bTD vertical line \eTD\bTD -14.30 \eTD\eTR \bTR\bTD \tex{NR}\eTD\bTD next row
[NTG-context] Disappearing TOC.
I have a TOC for a newsletter created in the usual way. But if I set it up for printing on my local printer then the TOC disappears. This works: \setupoutput[pdftex] \setuppapersize[letter][letter] But this kills the TOC: \setupoutput[pdftex] \definepapersize[tabloid][width=11in,height=17in] \setuppapersize[letter][tabloid] \setuparranging[2UP,rotated,doublesided] If it matters here is the TOC code: \startcolumns[n=2] \placecontent[level=section, alternative=c] \stopcolumns -- John Culleton Books with answers to marketing and publishing questions: http://wexfordpress.com/tex/shortlist.pdf Book coaches, consultants and packagers: http://wexfordpress.com/tex/packagers.pdf ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Disappearing TOC.
Hi John, I believe this has to do with the arranging! So run texexec without arranging first. Check that the TOC is there. Herafter run texexec again, this time with arranging and run it only once. I hope this helps! Willi John R. Culleton wrote: I have a TOC for a newsletter created in the usual way. But if I set it up for printing on my local printer then the TOC disappears. This works: \setupoutput[pdftex] \setuppapersize[letter][letter] But this kills the TOC: \setupoutput[pdftex] \definepapersize[tabloid][width=11in,height=17in] \setuppapersize[letter][tabloid] \setuparranging[2UP,rotated,doublesided] If it matters here is the TOC code: \startcolumns[n=2] \placecontent[level=section, alternative=c] \stopcolumns ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \totalnumberofpages and \setuparranging [2UP]
Hi all, I'm having trouble getting \totalnumberofpages to display while using \setuparranging [2UP]. What I'd like to do is print a letter, two columns to a page, then cut the page in two so the letter is in long columns with fractional page numbering at the bottom of each column, 1/4, 2/4, 3/4, 4/4. But what's happening is 1/1, 2/2, 3/3, 4/4. \definepapersize[4.25x11][width=4.25in,height=11in] \setuppapersize [4.25x11][letter] \setuplayout[backspace=.75in, width=2.75in, topspace=.75in, top=0in, header=0in, footer=.5in, height=9.75in] \setuppagenumbering[location={footer,right},right={~/~}{\lastpage}] \setuparranging [2UP] Removing \setuparranging [2UP] allows \totalnumberofpages to work fine, and upon replacing it, the first run works. But subsequent runs revert back to 1/1, 2/2, etc. This is using the texexec --pdf command. I read through the thread \totalnumberofpages texexec --pages=1:2, but being new to ConTeXt, I can't quite make out if that's relevant. Any suggestions much appreciated. - John ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Is it possible to automatically determine font size to fit text to a given space?
Hans Hagen [EMAIL PROTECTED] writes: Daniel Pittman wrote: G'day Hans. Hints about that, or a native TeX method[1], would be very much appreciated. At the moment it is a relatively slow process of manual trial and error. this is something tex is pretty good at and it runs as fast as normal how does your current code look? (the solution depends a bit it); think of something Sorry, I should have included that. The cut down version follows; I have a few more comments and so forth so I can revisit it if I wish. I didn't make any attempt to automate the process at this stage, but will have a play with all the suggestion and see if I can get it to work. For reference, this is aimed at printing multiple identical labels in each batch, rather than distinct content on each label, so I don't worry about the font size changing between the individual labels in the run or anything. Regards, Daniel \loadmapfile[ec-bitstream-vera.map] \usetypescriptfile[type-bitstream-vera] \usetypescript[fiee][bitstream-vera] \setupbodyfont[bitstream-vera, ss, 10pt] % Avery Slide labels (L7656) layout. \definepapersize[L7656][width=46.0mm,height=11.1mm] \setuppapersize [XY][A4] \setuppaper [topspace=15.9mm,backspace=6.0mm,dx=4.7mm,dy=1.6mm,nx=4,ny=21] \setuplayout[page] [topspace=15.9mm,backspace=6.0mm] \setuplayout[page] \setuplayout[location=middle] \setuparranging [XY] % The layout within the label \setuplayout[ width=fit,height=fit, header=1mm,footer=0mm,leftmargin=0mm,rightmargin=0mm, topspace=1mm,backspace=1mm, ] \setuppagenumbering[state=stop] \startbuffer[label] \vbox{20051112 \crlf Black Rock Cider} \stopbuffer \starttext % skip already printed labels \dorecurse{30}{~~\page}% % print a number of labels. \dorecurse{129}{% \bf\setupinterlinespace[line=2ex]% \startalignment[middle]% \getbuffer[label]% \stopalignment% \page} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Paper size, MediaBox, CropBox and cropping
Hi all, Does anyone know if it is possible to force the PDF output from ConTeXt to contain both a /MediaBox and /CropBox, having set up a document in the following manner: \definepapersize [BusinessCard] [width=85mm,height=54mm] \setuppapersize [BusinessCard] [A5,landscape] \setuplayout [location=middle, marking=on, header=0mm, footer=3mm, topspace=0mm, leftmargin=0mm, rightmargin=0mm, width=85mm, height=54mm, backspace=0mm] When I look at the PDF output I can only find the following box definition: /MediaBox [0 0 595.2756 419.5276] which works out to the size of the A5 sheet (595pt ~= 210mm, 419 ~= 148mm). However what I want to be able to encode in the PDF file is the size/position of the 'BusinessCard', or to put it another way, the positions of the crop marks, so that I can act upon that information using an external tool (specifically to generate a PNG image preview of the business card PDF with correct cropping) Many thanks, Mark. --- Mark Pearson BSc (hons) MSc DPhil IT Consultant Capita Symonds The Capita Building, Kingmoor Business Park Carlisle. CA6 4SJ. Tel: 01228 673023 Fax: 01228 673111 Web: www.capitasymonds.co.uk ** This email and any files transmitted with it are confidential, and may be subject to legal privilege, and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error or think you may have done so, you may not peruse, use, disseminate, distribute or copy this message. Please notify the sender immediately and delete the original e-mail from your system. Computer viruses can be transmitted by e-mail. Recipients should check this e-mail for the presence of viruses. The Capita Group and its subsidiaries accept no liability for any damage caused by any virus transmitted by this e-mail. *** ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Paper size, MediaBox, CropBox and cropping
Pearson, Mark (Capita Symonds) wrote: Hi all, Does anyone know if it is possible to force the PDF output from ConTeXt to contain both a /MediaBox and /CropBox, having set up a document in the following manner: \definepapersize [BusinessCard] [width=85mm,height=54mm] \setuppapersize [BusinessCard] [A5,landscape] \setuplayout [location=middle, marking=on, header=0mm, footer=3mm, topspace=0mm, leftmargin=0mm, rightmargin=0mm, width=85mm, height=54mm, backspace=0mm] When I look at the PDF output I can only find the following box definition: /MediaBox [0 0 595.2756 419.5276] which works out to the size of the A5 sheet (595pt ~= 210mm, 419 ~= 148mm). However what I want to be able to encode in the PDF file is the size/position of the 'BusinessCard', or to put it another way, the positions of the crop marks, so that I can act upon that information using an external tool (specifically to generate a PNG image preview of the business card PDF with correct cropping) add: \setupinteractionscreen and you'll get a few more boxes Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] distance with \godown
Hi I have a problem... I I don't know in which way I should solve... I've make a presentation. It's not very fine done but I'm proud that this works :-) I've made a graphic in metafun and make a overlay with this as the background. Then I defined a framed box with the same values as the graphic, use the overlay as a background and nice I have my menu. But then I make a small space with \godown and now the framed section goes down and up from page to page. This phenomenon is only when I do the link (\goto) on the whole framed. When I put the link on the text there is no problem. Hope aou understand my problem it's difficult to understand. I think you can compile this and look to the left side, hope it works to compile here is my tex file (not nice but works) %/// % Präsentation für einfache Gelegenheiten :-) % % erstellt von Jessica Holle % benötigt wird eine teTeX Installation mit dem ConTeXt Zusatz % 14/10/2005 %/// %/// % Generalle Formationen %/// \setupoutput[pdftex] \usemodule[pre-general] \setupcolors[state=start] \setupcolor[rgb] \definecolor[back][white]%s=.95] \definecolor[back2][r=.6,g=.7,b=.8] \definecolor[migr][r=0,g=.8,b=0] \definecolor[hegr][r=0,g=0,b=0] \definepapersize[PP][width=24cm,height=18cm] \setuppapersize[PP][PP] \setupbodyfont[sansserif,22pt] \setuplayout [width=220mm, height=147mm, backspace=10mm, topspace=23mm, top=00mm, header=00mm, footer=0mm, bottom=0mm, margin=0mm] %// % Die Praesi wird im Vollbildmodus gestartet %// %\setupinteractionscreen[option=max] %// % Unglaubliche Option für interaktive Schaltflächen %// \setupinteraction[state=start] % % Grafiken mit Metafun erstellt % %\startuseMPgraphic{teilstrich} %path p ; p := (0cm,0cm)--(21cm,0cm)--(21cm,0.1cm)--(0cm,0.1cm) --cycle ; %drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{migr}) ; %fill p ; %\stopuseMPgraphic \startuseMPgraphic{teilstrich} path p ; p := (0cm,0cm)--(21.5cm,0.1cm)--(0.0cm,0.15cm)--cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{migr}) ; fill p ; \stopuseMPgraphic \startuseMPgraphic{teilstrich2} path p ; p := (0cm,0cm)--(0.1cm,0cm)--(0.1cm,12.5cm)--(0cm,12.5cm) --cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{migr}) ; fill p ; \stopuseMPgraphic \startuseMPgraphic{grund} path p ; p := (0cm,0cm)--(24cm,0cm)--(24cm,18cm)--(0cm,18cm)--cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{hegr}) ; fill p ; \stopuseMPgraphic \definelayer[grund] \setuplayer[grund][state=repeat] \setlayer[grund][present=righttop,width=\textwidth,height =\textheight]{\useMPgraphic{grund}} %/// % senkrechter grauer Strich auf der rechten und linken Seite %/// \startuseMPgraphic{senkstrich} path p ; p := (0cm,0cm)--(17.6cm,0cm)--(17.6cm,0.1cm)--(0cm,0.1cm) --cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor lightgray) ; fill p rotated 90 ; \stopuseMPgraphic \definelayer[senkstrich] \setuplayer[senkstrich][state=repeat] \setlayer[senkstrich][present=left,x=0.6cm,y=0.2cm] {\useMPgraphic{senkstrich}} \definelayer[senkstrich2] \setuplayer[senkstrich2][state=repeat] \setlayer[senkstrich2][present=right,x=23.3cm,y=0.2cm] {\useMPgraphic{senkstrich}} %/// % waagerechter grauer Strich oben und unten %/// \startuseMPgraphic{waagestrich} path p ; p := (0cm,0cm)--(23.6cm,0cm)--(23.6cm,0.1cm)--(0cm,0.1cm) --cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor lightgray) ; fill p ; \stopuseMPgraphic \definelayer[waagestrich] \setuplayer[waagestrich][state=repeat] \setlayer[waagestrich][present=lefttop,x=0.2cm,y=0.6cm] {\useMPgraphic{waagestrich}} \definelayer
Re: [NTG-context] distance with \godown
Hello Jessica, Hm, indeed your code does give a somewhat strange behaviour. - I played with it a bit and I changed the following things. 1. Make alle MP-graphics which are static \startreusableMPgraphic..\stopreusableMPgraphic. Use in the layerdefinitions \reuseMPgraphic{} -- This makes the compilation a couple of times faster, because MP must not be called for the calculation of all graphics at all pages. 2. In order to get the kasten steady all lines should start with \gotopage{...}[]. Another point is, that you might want to have a look at pp 113 of the metafun manual. I do not know, whether this is wat you had in mind. Kind regards Willi Jessica Holle wrote: Hi I have a problem... I I don't know in which way I should solve... I've make a presentation. It's not very fine done but I'm proud that this works :-) I've made a graphic in metafun and make a overlay with this as the background. Then I defined a framed box with the same values as the graphic, use the overlay as a background and nice I have my menu. But then I make a small space with \godown and now the framed section goes down and up from page to page. This phenomenon is only when I do the link (\goto) on the whole framed. When I put the link on the text there is no problem. Hope aou understand my problem it's difficult to understand. I think you can compile this and look to the left side, hope it works to compile here is my tex file (not nice but works) %/// % Präsentation für einfache Gelegenheiten :-) % % erstellt von Jessica Holle % benötigt wird eine teTeX Installation mit dem ConTeXt Zusatz % 14/10/2005 %/// %/// % Generalle Formationen %/// \setupoutput[pdftex] \usemodule[pre-general] \setupcolors[state=start] \setupcolor[rgb] \definecolor[back][white]%s=.95] \definecolor[back2][r=.6,g=.7,b=.8] \definecolor[migr][r=0,g=.8,b=0] \definecolor[hegr][r=0,g=0,b=0] \definepapersize[PP][width=24cm,height=18cm] \setuppapersize[PP][PP] \setupbodyfont[sansserif,22pt] \setuplayout [width=220mm, height=147mm, backspace=10mm, topspace=23mm, top=00mm, header=00mm, footer=0mm, bottom=0mm, margin=0mm] %// % Die Praesi wird im Vollbildmodus gestartet %// %\setupinteractionscreen[option=max] %// % Unglaubliche Option für interaktive Schaltflächen %// \setupinteraction[state=start] % % Grafiken mit Metafun erstellt % %\startuseMPgraphic{teilstrich} %path p ; p := (0cm,0cm)--(21cm,0cm)--(21cm,0.1cm)--(0cm,0.1cm) --cycle ; %drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{migr}) ; %fill p ; %\stopuseMPgraphic \startuseMPgraphic{teilstrich} path p ; p := (0cm,0cm)--(21.5cm,0.1cm)--(0.0cm,0.15cm)--cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{migr}) ; fill p ; \stopuseMPgraphic \startuseMPgraphic{teilstrich2} path p ; p := (0cm,0cm)--(0.1cm,0cm)--(0.1cm,12.5cm)--(0cm,12.5cm) --cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{migr}) ; fill p ; \stopuseMPgraphic \startuseMPgraphic{grund} path p ; p := (0cm,0cm)--(24cm,0cm)--(24cm,18cm)--(0cm,18cm)--cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor \MPcolor{hegr}) ; fill p ; \stopuseMPgraphic \definelayer[grund] \setuplayer[grund][state=repeat] \setlayer[grund][present=righttop,width=\textwidth,height =\textheight]{\useMPgraphic{grund}} %/// % senkrechter grauer Strich auf der rechten und linken Seite %/// \startuseMPgraphic{senkstrich} path p ; p := (0cm,0cm)--(17.6cm,0cm)--(17.6cm,0.1cm)--(0cm,0.1cm) --cycle ; drawoptions(withpen pencircle scaled 0.1mm withcolor lightgray) ; fill p rotated 90 ; \stopuseMPgraphic \definelayer[senkstrich] \setuplayer[senkstrich][state=repeat] \setlayer[senkstrich][present=left,x=0.6cm,y=0.2cm] {\useMPgraphic{senkstrich}} \definelayer[senkstrich2] \setuplayer[senkstrich2][state=repeat] \setlayer
[NTG-context] Help with \setuplayout[grid=yes]
Hi all, Attached is an example showing my misunderstanding about grid alignment. The attached works as expected when \setuplayout[grid=no] is used or the 'Author table' is commented out. The inclusion of the little table in the text is really just to convince myself that I can have a table with the grid enabled. Any and all suggestions are greatly appreciated. Cheers, Randall \showframe %\showmakeup %\showgrid %%% Dimensions \newdimen\PaperWidth \PaperWidth=8.5in \newdimen\PaperHeight \PaperHeight=11.0in \newdimen\TextWidth \TextWidth=5.5in \newdimen\TextHeight \TextHeight=10.0in \setuppapersize[letter][letter] % paper size \definepapersize[width=\PaperWidth,height=\PaperHeight] \setuplayout [location=doublesided, % double-sided printing grid=yes, WHY DOES THIS CAUSE AN ERROR? topspace=0.50in, % the space at the very top of the page backspace=1.5in, % the space in the gutter header=0.75in, % the space for headers footer=0.50in, % the space for footers leftmargin=1in, % the space for margin notes rightmargin=1in, % the space for right margin notes width=\TextWidth, % the width of the body text height=\TextHeight] % the height of the body text %%% Authors and Approvals \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} \def\startAuthors{% \blank[2*big]\AuthorsTitle\\\blank[2*big]% \hbox to \hsize\bgroup\hss\SetTableToWidth{6.5in}% \starttable[|c|c|c|c|c|] \HL \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} \def\stopAuthors{\stoptable\hss\egroup} def\Author[#1]{% \getgparameters[Author][#1]% \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% \doifundefined{AuthorName}{\gdef\AuthorName{-}}% \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% \VL\AuthorRole \VL\AuthorFunction% \VL\AuthorName \VL\AuthorSignature% \VL\AuthorDate% \VL\SR\HL% \gdef\AuthorFunction{ }\gdef\AuthorName{ }% \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% } \starttext %%% Start: Front \startfrontmatter \startAuthors \Author [Role={Prepared by:}, Function={Scientist}, Name={John Smith}, Date={2005-08-24}] \Author [Role={Checked by}:, Date={2005-08-24}] \Author [Role={Approved by:}, Date={2005-08-24}] \stopAuthors %%% Stop: Front \stopfrontmatter %%% Start: Body \startbodymatter \section{One} \dorecurse{3}{\input knuth} \starttable[|c|c|] \HL \VL One \VL Two \VL\FR \VL Three \VL Four \VL\LR \HL \stoptable \section{Two} \dorecurse{4}{\input knuth} %%% Stop: Body part \stopbodymatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] XY arranging ignores dx/dy
The XY arranging macro basically ignores dx/dy parameters by always padding out the space between pages. Here's the existing ConTeXt macro for reference - removing \vss and \hss makes it do the right thing (imo). I'd give a simple patch, but I think the ideal behaviour might be to pad if (and only if) dx/dy were not specified, which is starting to push my TeX skills. \def\pusharrangedpageXY#1% {\doglobal\increment\arrangedpageN \reportarrangedpage\arrangedpageN \doglobal\increment\arrangedpageM \global\setbox\arrangedpageB\hbox \ifdim\@@ppwidth\zeropoint to \@@ppwidth \fi {\ifvoid\arrangedpageB\else \unhbox\arrangedpageB\hss\hskip\@@ppdx\hss \fi \box#1}% \ifnum\arrangedpageM\arrangedpageX\else \global\setbox\arrangedpageA\vbox \ifdim\@@ppheight\zeropoint to \@@ppheight \fi {\offinterlineskip \ifvoid\arrangedpageA\else \unvbox\arrangedpageA\vss\vskip\@@ppdy\vss \fi \box\arrangedpageB}% \doglobal\newcounter\arrangedpageM \fi \ifnum\arrangedpageN\arrangedpageT\else \poparrangedpages \fi} Minimal test, note the dx/dy distances: \definepapersize[label][width=30mm,height=20mm] \setuppapersize[label][A4] \setuppaper[dx=1mm,dy=1mm,nx=2,ny=6] \setuparranging[XY] \showframe[edge] \starttext \dorecurse{6}{test \recurselevel \page} \stoptext -- - Gus ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] printing an envelope--solution.
John R. Culleton wrote: On Wednesday 01 June 2005 02:15 pm, Vit Zyka wrote: \definepapersize[env][width=4.25in,height=9.5in] \papersize[env][env] \setuplayout [topspace=1in,bottomspace=1in,backspace=1.5in,cutspace=.5in, header=0pt,footer=0pt,margin=0pt, width=middle,height=middle] \starttext \rotated !it blew up here. did not recognize \rotated \rotate (no d) -- - 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
Re: [NTG-context] printing an envelope--solution.
On 1 juin 2005, at 15:33, John R. Culleton wrote: On Wednesday 01 June 2005 02:15 pm, Vit Zyka wrote: \definepapersize[env][width=4.25in,height=9.5in] \papersize[env][env] \setuplayout [topspace=1in,bottomspace=1in,backspace=1.5in,cutspace=.5in, header=0pt,footer=0pt,margin=0pt, width=middle,height=middle] \starttext \rotated !it blew up here. did not recognize \rotated Hi John, That was the same for me: \rotated is not defined. However looking into my ConTeXt archives I found an example about rotations, and after a new definition of your paper size discovered that the following works: I hope it is what you are looking for... Best regards: OK %%% envelope-2.tex \definepapersize[env][width=9.5in,height=4.25in] \setuppapersize [env,rotated] % this rotates the page [env,landscape] % onto a landscaped size \setuplayout[location=left,width=middle,height=middle] \showframe \starttext \startstandardmakeup John Culleton\crlf 2401 Haight Avenue\crlf Eldersburg, MD 21784 \blank \hskip 3in \vbox{ Independent Contract Services\crlf Landmark Community Newspapers\crlf Carroll County Times\crlf P.O. Box 346\crlf Westminster MD 21158 } \stopstandardmakeup \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with figure placing
Hello ConTeXters, I have the following problem with placing figures into the document: Sometimes, when there are more larger images and fewer text, TeX lets some of the images run out of the page (see the attached screenshot). This hapens in very, very seldom cases - e.g. whole the document contains more than 200 images and this issue occurs on one or two places... For placing images, I'm using the following commands: \page[bigpreference] \placefigure[here][fig-xyz]{Figure caption}{\externalfigure[xyz.png][scale=3000,maxwidth=\textwidth]} The \page[bigpreference] command handles this situation quite well except certain cases (like it's shown in the attachment). I really don't understand how TeX can typeset anything outside the given page area... Here is my page setup: \definepapersize[MAN][width=17.5cm,height=22cm] \setuppapersize[MAN][A4] \setuplayout[location=middle, marking=on, topspace=1cm, backspace=1.5cm, height=middle, width=middle, header=1cm, footer=1cm] Does anybody guess? Many thanks, Richard inline: pdf-images.png___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ConTeXt oddities
Dear fellow-ConTeXters, working with Context I noticed some small, strange behaviours: 1. I arranged pages in the following way: \definepapersize[myCustomLayout][width=12cm, height=19cm] \setuppapersize[myCustomLayout][A4,landscape] \setuparranging[2SIDE] now, when I use \showsetups I get the following values: paperhight: 18.9973cm paperwidth: 11.99829cm (happens with the rest of layout-definitions as well) well, sure enough nobody will see the difference in print... but nevertheless a bit annoying if you wanted to show the result of \showsetups to your clients (maybe the values are converted from cm to pt and back again?) 2. for control of orphans and widows I use the following: \clubpenalty=8000 \widowpenalty=8000 it seems, this has to be inserted after \starttext, which is - I think - not a too good place for such a global definition, shouldn't it be in the setup area before \starttext? but there I cant't get it working. Or am I doing something wrong with the commands? 3. if a command has lots of options it's better to sort of pretty-print those like the following: \setuplayout[ backspace=15mm, cutspace=10mm, ... grid=yes, marking=on, ] After some time (lots of time..) I figured out that the last , is a must, without it, the last option is ignored - why is that? 4. I am well aware this has been asked before on this list, but no good solution came up: I need the footnote ref number to be beneath the main text, not in the small blank space between the text and the margin column. I managed to get it working with the hack by Paul Tremblay posted on this list some time ago and defined my own \myFootnote-command for it, but that is a quick and dirty solution, there has to be a better way, so I'd like to raise the question once again: How can this be done? Is it that difficult to change this kind of strange setting of footnotes? Many thanks for your answers, Frank ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \showlayout curiosity.
The following code should, by my calculations, generate two pages. However it generates five, one for \ShowLayout and four for \showlayout. Remove the t-layout module and the \ShowLayout statement and it still generates four. This is an inconvenience and not a deal breaker but I am curious about why the extra pages are created. --- \setupoutput[pdftex] \definepapersize[bok][width=5.5in,height=8.5in] \setuppapersize[bok][letter] \setuplayout[width=middle,location=middle] \usemodule[t-layout] % \starttext \ShowLayout[units=in] \showlayout \stoptex -- John Culleton Able Indexers and Typesetters http://wexfordpress.com ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Layout questions
Hello! OK, thank you for your answers to my questions. Now another bunch, this time I started reading the section on layout in the manual. When using \setuppapersize with one argument, does it imply that the default value of the second parameter is equal to the first one? If I use both, does it imply that the smaller page (determined by the second argument) is centered on the real paper (with size defined by the first arg)? What do the options offset and scale for \definepapersize mean? Are there any other options other than these two and height and width? Thanks in advance and greetings -- Marcin Borkowski ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Layout questions
Marcin Borkowski wrote: Hello! OK, thank you for your answers to my questions. Now another bunch, this time I started reading the section on layout in the manual. When using \setuppapersize with one argument, does it imply that the default value of the second parameter is equal to the first one? If I use both, does it imply that the smaller page (determined by the second argument) is centered on the real paper (with size defined by the first arg)? no, \setuppapersize[A3] will map in onto width=max(width(A4),width(A3)) etc What do the options offset and scale for \definepapersize mean? Are there any other options other than these two and height and width? no, at least not officially Hans - 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
Re: [NTG-context] Paper size page arranging
Hi Mojca, The most elegant way would of course be to have the document setup with suitable pages. Then you can use the \setuparranging[XY] command, which is basically meant for preparing businesscards and labels. This looks then like \setupoutput[pdftex] \setuppapersize [A5,portrait][A4,landscape] \setuppaper [dx=2mm, dy=0mm, nx=2, ny=1, margin=0, width=297mm, height=210mm] \setuplayout [topspace=10mm] \setuparranging[XY] \starttext \showframe \chapter{Ward} \input ward \chapter{Tufte} \input tufte \chapter{Knuth} \input Knuth \stoptext If your document is already a PDF with A4 pages in it, you might use the following command to arrange the pages: texexec --pdfcombine --combination=2*2 inputfile.pdf --result=outputfile This approach is meant for more than two pages per sheet. Yet another approach could be texexec --pdfarrange --paper=a5a4 --print=2up --result=outputfile inputfile.pdf As the last two texexec statements work on pdf files, the extension has to be stated for the inputfile. For the option paper all DIN papersizes from A0 to A9 can be used. There is an article published in the MAPS28/2002. This issue of the MAPS will be free for downloading in the next days. Kind regards Willi Mojca Miklavec wrote: The command \setuplayout[location=middle,scale=.5] scales the document correctly, but if I use \setuparranging[2*2] for example, the original scaling is broken. What effect exactly does 'scale=...' in \definepapersize have? There must surely exist a very simple and elegant solution to typeset usual A4 pages scaled down to A5, so that two pages are placed on one in lanscape mode, like in: 1. page (A4 landscape with two A4 pages scaled to A5) *---*---* | | | | 1 | 2 | | | | *---*---* 2. page *---*---* | | | | 3 | 4 | | | | *---*---* ... or that any page number (n*n or 2n*n in landscape mode, maybe some other number if page proportions are different; and some blank space is left on the borders) is placed on one page, like in (for 6*3): *--*--*--*--*--*--* | 1| 2| 3| 4| 5| 6| *--*--*--*--*--*--* | 7| 8| 9|10|11|12| *--*--*--*--*--*--* |13|14|15|16|17|18| *--*--*--*--*--*--* \setuparranging[...] does the job, but it is only suitable if someone really wants to make a booklet out of it and one has to supply original page sizes (for example A6 to be printed as 2*4 on A4). Thank you, Mojca ___ 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
[NTG-context] Bad page breaks!
Dear ConTeXt-users, I'm trying to typeset a small book using ConTeXt (TeXLive 2004), and use the following setup: \setupbodyfont[rm,12pt] \definepapersize[BOOK][width=140mm,height=210mm] \setuppapersize[BOOK][A4] \setuplayout[ [topspace=24mm, header=8mm, headerdistance=10mm, backspace=19.5mm, leftmargin=15.5mm, rightmargin=23mm, footerdistance=5mm, footer=4mm, height=fit, width=fit, marking=on, location=middle] Page breaks are usually calculated automatically by TeX, but I notice that in my case they turn out to be very bad. A lot of pages are involved, so I wonder how this can be improved? Sometimes even 3 lines could be added without any difficulty to a page by TeX before inserting a page break! I've tried to use \adaptlayout but it doesn't seem to work, no effect! Has it perhaps something to do with the setup I use? Regards, Geert -- Geert C.H.M. Verhaag St. Jorisstraat 29 5954 AN Beesel NETHERLANDS Tel.: (+31)-774742493, E-mail: [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] floats pb in a list
Hi contexers, I try writing step by step howtos for Autocad courses. I've borrowed (one more time) Hans example code written around p83 in cont-eni.pdf for combined items, and rename definitions. I'm unable to get correct float placement in a such list, even with small figures. On each new page, the float move towards topleft, above it's anchor. Thanks for any answers. -- Olivier TURLIER %pb-howto.tex \setupoutput [pdftex] \useregime[il1] \enableregime[il1] \useencoding[ffr] \usetypescript[palatino][texnansi] \setupbodyfont[palatino,rm,10pt] \definepapersize [cours] [width=\dimexpr(\paperwidth-.05\paperwidth), height=\dimexpr(\paperheight-.05\paperheight)] \setuppapersize [cours] [A4] \setuplayout [top=6mm,topdistance=6mm, bottom=6mm,bottomdistance=18mm, topspace=18mm, height=263mm,%middle header=6mm,headerdistance=6mm, footer=6mm,footerdistance=18mm, bakspace=46mm,%cutspace=50mm, width=164mm,%middle leftmargin=22mm,leftmargindistance=4mm, leftedge=5mm,leftedgedistance=5mm, rightmargin=28mm,rightmargindistance=4mm, rightedge=6mm,rightedgedistance=5mm %,grid=yes ] % \setuptolerance [verytolerant,stretch] \setuppagenumbering[alternative=doublesided] % \setupfloats[location=middle] \definefloat [etape] [figures] \defineparagraphs [Etape] [n=2,rule=off,align=lohi] \setupparagraphs [Etape] [2] [width=.5\textwidth] \defineenumeration [Explication] [location=left,text=,width=3em,before=,after=] \starttext \chapter[]{One} Some introduction text \section[]{two} Some longer introduction text \section[]{three} \startEtape \startExplication \dorecurse{2}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{3}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{4}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{5}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{6}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \startEtape \startExplication \dorecurse{7}{ First step of this cookbook look ok but is the rest equal ?} \stopExplication \nextEtape \placeetape [here,force,always,none] {} {\externalfigure[cow.pdf][width=.45\textwidth,frame=on]} \stopEtape \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Update problems: TOC
Hello, all ConTeXters! I finally got around to trying TeXLive2003 and the ConTeXt there. The good news is that it installs into Windows2000 like a charm and all the old font woes are now past worries, the fonts worked the first try. After installing TeXLive I downloaded the newest ConTeXt from Pragma's pages and it seems to be a working installation, too. However, I have a problem to which I didn't find a solution in the mailing list archives: The Table of Contents doesn't work and that hangs the whole thing. If I get rid of the command \placecontent, everything works perfectly, but once I try to compile the file(s) with a TOC, this is what I get: myContents : - Table of contents (./pr-03.tuo ! Undefined control sequence. \exitloop -\let \endofloop \nodoloop argument ...\zeropoint \unskip \else \exitloop \fi \doloop ...@@arecurse \recursedepth \endcsname {#1 }\global [EMAIL PROTECTED] \let \csname... \removeunwantedspaces ...kip \else \exitloop \fi } \fi \endstrut ...trut \fi \else \removeunwantedspaces \normalpenalty [EMAIL PROTECTED] \normal... argument ...tentry {\v!hoofdstuk }{Introduction} } ... l.7 ...1}{1}{Introduction}{2::0:1:0:0:0:0:0::1}{5} ? --- Below you'll find a simplified version of my setups etc, maybe that will help to pinpoint the problem. I hope somebody has a solution as I won't be able to upgrade to any newer ConTeXt's until this is fixed. Thanks for any help, Mari % -- % File starts here % -- %output=pdftex \definepapersize[a4short][width=210mm,height=11in] \setuppapersize[a4short][a4] \enableregime[il1] \usetypescript[berry][ec] \setupbodyfont[pos,10pt] % This sets the look of the first level headings \setuphead [chapter] [style=\sstfc, prefix=+] % This sets the look of the second level headings \setuphead [section] [style=\sstfb] % Third level headings \setuphead [subsection] [style=\ssbf] % Fourth level headings \setuphead [subsubsection] [style=\ssit] % - % Settings concerning the Table of contents (TOC) % - % The combination below sets the look of the title of the TOC \definehead [myContents] [title] \setuphead [myContents] [alternative=left, style=\sstfb] % These settings are for the first level (chapter) entries % in the TOC \setuplist [chapter] [criterium=chapter, alternative=c, aligntitle=yes, textstyle={\tfa\cap}] \setuplist [section] [criterium=section, alternative=c, margin=0.7cm, textstyle=bold] \setuplist [subsection] [criterium=subsection, alternative=c, margin=0.9cm] % This sets the fourth level (subsubsection) entries in the TOC \setuplist [subsubsection] [criterium=subsubsection, alternative=c, margin=1.2cm, textstyle=italic] %- % TOC settings end here \starttext \startfrontmatter \myContents{Table of contents} \placecontent \stopfrontmatter % --- % Each chapter is a file of its own, the files are collected % into one document here \input pr-03_ch01/ch01.tex % first chapter (Introduction) \input pr-03_ch02/ch02.tex % second chapter (Sensor) \input pr-03_ch03/ch03.tex % third chapter (IT-R) \input pr-03_ch04/ch04.tex % fourth chapter (Accessory units) \input pr-03_ch05/ch05.tex % fifth chapter (Startup and configuration) \input pr-03_ch06/ch06.tex % sixth chapter (Regular maintenance) \input pr-03_ch07/ch07.tex % seventh chapter (Troubleshooting) \input pr-03_ch08/parts_tables.tex % tables for chapter 8 are loaded first \input pr-03_ch08/ch08.tex % eighth chapter (Sensor % specifications and parts lists) \input pr-03_ch09/ch09.tex % ninth chapter (IT-R specifications % and parts lists) %This part gets alphabets (A, B...) \startappendices \input glossary.tex \input dds.tex % Information on the Delivary Data Sheet \input calibration_data_report.tex % The Calibration data report sheet \input verification.tex % How to do ISO 9000 Verification \stopappendices \startbackmatter % -- % Index settings % -- \chapter[index]{Index} \placeindex % --- End of Index - \stopbackmatter % Here's where the document ends, nothing comes below this command \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] 90° rotation + landscape
Hello list, I want to setup an evelope and the whole output should be rotated by 90° (this is the way my printer gets them). ___ | || | | | -- | | | |_--_| ||__| normal layout 90° rotated output (paper and content) The resulting pdf looks like this (square paper format): __ | | | | | | | ||_| Here is a minimal example: % interface=en output=pdftex \definepapersize[C65] % standard C65 evelope [width=229mm, height=114mm, ] \setuppapersize[C65][C65, landscape, 90] \starttext \tfc 90° rotation for printer. \stoptext Have I missed something or is this a bug in \dodosetuppapersize? Any help welcome, Peter ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] address labels
Hi Robert, while composing my solution to your question Hans was of course faster and gives immediately multiple approaches. You might want to have a look at my solution because it is basically intended to print addres-labels. Because of restriction of the meilinglist the picture is not included, but you can simply replace the picture in the logo definition ... Success! Kind regards Willi R. Ermers wrote: Hi contexers, I am trying to make context do what I want. What I needed this weekend, are address labels, which I want to fill with my own logo (not the addresse's). Making one label is no problem, but I rather would like to have context make and typeset a large number of them on a sheet, to be precise: 9x3 (sizes: 7mm x 32mm). Does anyone have a clue how this can be done? Kind regards, Robert Ermers % Etiketten for address labels format 45 by 100mm % Context file % filename: logos.tex % Willi Egger % january 2004 \setupoutput[pdftex] \mainlanguage[nl] \language[nl] \setuppagenumber[state=stop] \setupcolors[state=start] \usetypescript[modern][texnansi] \setupbodyfont[modern,ss,12pt] \definepapersize[Etiket][height=42.3mm,width=105mm] \setuppapersize [Etiket][A4,portrait] \setuppaper [topspace=0mm, backspace=0mm, dx=2mm, dy=0mm, nx=2, ny=7, margin=0, width=210mm, height=297mm] \setuplayout [topspace=4mm, backspace=8mm, margin=0mm, width=96mm, height=34mm, header=0mm, footer=0mm] \setuparranging[XY] \definelayer[Etiket][width=\textwidth, height=\textheight] \setupframedtexts[frame=off,width=\textwidth] \def\Logo% {\externalfigure[wooden_coptic][height=\textheight]} %\input adreslist %Contains the addresses as given below: % \startbuffer[Adr1] %\framedtext{% %\startlines %Mr. Robert Ermers \\ %\CONTEXT-technician\\ %Whereeverstreet 5\\ %7000 \TEX land %\stoplines} % \stopbuffer \def\Addresses{10} \showframe \starttext \dorecurse{\Addresses}{% \setlayer [Etiket] [preset=leftbottom,location={right,top},y=-3mm,x=-3mm] {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]} \setlayer [Etiket] [preset=lefttop,location={right,bottom}] {\switchtobodyfont[5pt]\Logo} \placelayer[Etiket]} \stoptext
Re: [NTG-context] address labels
Thank you, Hans and Willi, for your replies! Kind regards, Robert Ermers - Oorspronkelijk bericht - Van: Willi Egger [EMAIL PROTECTED] Aan: [EMAIL PROTECTED] Verzonden: zondag 11 januari 2004 12:55 Onderwerp: Re: [NTG-context] address labels Hi Robert, while composing my solution to your question Hans was of course faster and gives immediately multiple approaches. You might want to have a look at my solution because it is basically intended to print addres-labels. Because of restriction of the meilinglist the picture is not included, but you can simply replace the picture in the logo definition ... Success! Kind regards Willi R. Ermers wrote: Hi contexers, I am trying to make context do what I want. What I needed this weekend, are address labels, which I want to fill with my own logo (not the addresse's). Making one label is no problem, but I rather would like to have context make and typeset a large number of them on a sheet, to be precise: 9x3 (sizes: 7mm x 32mm). Does anyone have a clue how this can be done? Kind regards, Robert Ermers % Etiketten for address labels format 45 by 100mm % Context file % filename: logos.tex % Willi Egger % january 2004 \setupoutput[pdftex] \mainlanguage[nl] \language[nl] \setuppagenumber[state=stop] \setupcolors[state=start] \usetypescript[modern][texnansi] \setupbodyfont[modern,ss,12pt] \definepapersize[Etiket][height=42.3mm,width=105mm] \setuppapersize [Etiket][A4,portrait] \setuppaper [topspace=0mm, backspace=0mm, dx=2mm, dy=0mm, nx=2, ny=7, margin=0, width=210mm, height=297mm] \setuplayout [topspace=4mm, backspace=8mm, margin=0mm, width=96mm, height=34mm, header=0mm, footer=0mm] \setuparranging[XY] \definelayer[Etiket][width=\textwidth, height=\textheight] \setupframedtexts[frame=off,width=\textwidth] \def\Logo% {\externalfigure[wooden_coptic][height=\textheight]} %\input adreslist %Contains the addresses as given below: % \startbuffer[Adr1] %\framedtext{% %\startlines %Mr. Robert Ermers \\ %\CONTEXT-technician\\ %Whereeverstreet 5\\ %7000 \TEX land %\stoplines} % \stopbuffer \def\Addresses{10} \showframe \starttext \dorecurse{\Addresses}{% \setlayer [Etiket] [preset=leftbottom,location={right,top},y=-3mm,x=-3mm] {\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]} \setlayer [Etiket] [preset=lefttop,location={right,bottom}] {\switchtobodyfont[5pt]\Logo} \placelayer[Etiket]} \stoptext ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: clubpenalty/widowpenalty ignored - a bug?
Hi Patrick, No, it didn't work. So please find a one-page example below. Thanks for your replies, Steffen Patrick Gundlach [EMAIL PROTECTED] wrote: Hello Steffen, Steffen Wolfrum [EMAIL PROTECTED] writes: Is this wrong - or is it a bug in ConTeXt? this looks fine. Play with \brokenpenalty=0 and if this does not work, please post a small example showing your problem. Patrick \mainlanguage[de] \enableregime[mac] \setupbodyfont[9pt] \setupinterlinespace[line=3.5ex] \setupencoding[default=ec] \definepapersize[Gross][width=20.2cm,height=26.7cm] \setuppapersize[Gross][A4] \setuplayout [topspace=2cm,header=30pt,footer=0cm,footerdistance=0cm,margin=2cm,leftmargindistance=15pt,rightmargindistance=15pt,backspace=3cm,width=13.7cm,location=middle,marking=on,grid=no]%0.6782178217821782\paperwidth \setuppagenumbering [alternative=doublesided,location={header,marginedge}] \setupfootnotedefinition[location=left,width=2\bodyfontsize,after={\blank[4pt]}] \setuphead[chapter][before={\blank[0pt]},after={\blank[3*line]}] \clubpenalty=1%einzelne erste Zeilen unten \widowpenalty=1%einzelne letzte Zeilen oben \displaywidowpenalty=1 \brokenpenalty=0 \starttext \title{Einleitung} Bis in die j\{u}ngste Vergangenheit hat der Name {\it Schmoll genannt Eisenwerth} im kunsthistorischen Zusammenhang immer wieder zu Verwechslungen gef\{u}hrt, denn der aus dem sp\{a}teren Mittelalter stammende Doppelname wird von mehreren Pers\{o}nlichkeiten gef\{u}hrt. Zu nennen sind zun\{a}chst die vier im letzten Viertel des 19. Jahrhunderts geborenen Br\{u}der, Josef Adolf (1877-1914), Karl (1879-1948), Gustav (1881-1916) und Fritz (1883-1963), die S\{o}hne von Anton Adolph Schmoll genannt Eisenwerth (1834-1918), einem geb\{u}rtigen Saarl\{a}nder, der als versierter Br\{u}cken- und Wasserbau-Konstrukteur erst in Frankreich, dann in Wien zu Ansehen gelangte. Nachdem der \{A}lteste, der Ingenieur Josef Adolf, sowie der Zweitj\{u}ngste, der Architekt Gustav, als Soldaten im Ersten Weltkrieg fielen, hatte sich besonders der Maler, Grafiker und Kunstgewerbler Karl schon fr\{u}h einen Namen machen k\{o}nnen, weshalb dieser in Fachkreisen bisher als der bekanntere der Schmoll-Br\{u}der galt, bedingt auch durch seine Jahrzehnte w\{a}hrende Lehrt\{a}tigkeit in der Architektur-Fakult\{a}t der Technischen Hochschule Stuttgart (1907-1946), der er 1927/29 auch als Rektor (und Jubil\{a}umsrektor) vorstand.\footnote{Zu Karl SvE. vgl.: Clementine Schack von Wittenau: Karl Schmoll von Eisenwerth. Malerei, Graphik, Glaskunst. Ausstellungskatalog (Gem\{a}ldegalerie Dachau, Museum K\{u}nstlerkolonie Darmstadt, Kreismuseum Zons). Stuttgart 1995 (im Folgenden zitiert als: A.Kat. Stuttgart 1995). Wegen der pers\{o}nlichen Beziehungen KSvE's war die Wanderausstellung au{\sz}erdem im saarl\{a}ndischen St.Wendel (St\{a}dtisches Museum) und im Ober\{o}sterreichischen Landesmuseum Linz zu sehen. Durch diese Monographie, in der auch FSgE. erw\{a}hnt wird, kam der Gedanke, sich im Rahmen der vorliegenden Arbeit eingehender mit FSgE. zu befassen.} Mit einer zeitlebens geradezu bescheidenen und zur\{u}ckhaltenden Wesensart stand dagegen der vier Jahre j\{u}ngere Fritz Schmoll insbesondere w\{a}hrend seiner fr\{u}hen Schaffenszeit etwas im Schatten des \{a}lteren Bruders, der mit seinen weiterreichenden Beziehungen die berufliche Laufbahn des J\{u}ngeren zu unterst\{u}tzen suchte. In M\{u}nchen, das um 1900 im Kunsthandwerk f\{u}hrend war, engagierte sich Fritz Schmoll im Sinne der hier von Hermann Obrist gegr\{u}ndeten Debschitz-Schule rasch im Kunstgewerbe des Jugendstils auf nahezu allen Gebieten (Schmuck, metallene Tafelservice und Gebrauchsger\{a}te verschiedenster Art, Textilien, M\{o}bel). Daneben begann er mit kleinplastischen Arbeiten. Einen Schwerpunkt im Bereich des Kunstgewerbes stellten jedoch seine vielfach auch ausgef\{u}hrten M\{o}belentw\{u}rfe. Fritz Schmolls bildhauerisches Wirken, das von den kleinplastischen Arbeiten im kunstgewerblichen Bereich (geschnitzte Elfenbeinanh\{a}nger, Medaillen und Plaketten, fig\{u}rliche Kleinplastiken, ausgef\{u}hrt in Holz, Metall und Keramik) zu gr\{o}{\sz}er dimensionierten Skulpturen und Plastiken gef\{u}hrt hatte (rundplastische Portr\{a}ts, figurative und ornamentale Bauplastiken, Brunnen, Denk- und Grabm\{a}ler) war durch eine religi\{o}se Haltung mit bestimmt, wie sie sich in vielen sakralen und sepulkralen Auftr\{a}gen bekundet. Vom ersten Entwurf bis zum letzten Schliff f\{u}hrte er bei seiner T\{a}tigkeit f\{u}r sakrale und memoriale Auftr\{a}ge im Sinne eines mittelalterlichen Werkmeisters, der anonym schuf, zumeist auch alles eigenh\{a}ndig aus. Dieser Haltung kam die nach dem Vorbild mittelalterlicher Bauh\{u}tten anonyme Arbeitsorganisation des Volksbund Deutsche Kriegsgr\{a}berf\{u}rsorge sehr entgegen, f\{u}r den Fritz Schmoll seit den drei{\sz}iger Jahren bis kurz vor seinem Tod, 1963, t\{a}tig war. In der Reihe der {\it Schmoll gen. Eisenwerth} ist au{\sz}erdem der Neffe
[NTG-context] Re: \setuplayout parameters
Hello John, John Culleton [EMAIL PROTECTED] writes: I want to set up a book 5.5 x 8.5 with .5in margins left and right. During the development process I want to be able to print it on US standard 8.5 x 11 sheet of paper. Here is my current prologue (I have tried several): \setupoutput[pdftex] \definepapersize[bok][width=5.5in,height=8.5in] \setuppapersize[bok][letter] \setuplayout[marginwidth=.5in,location=middle] \showframe The problem here is that you need to play with backspace, leftmargin and leftmargindistance. To verify, use the layout[1] module and add \usemodule [layout] \ShowLayout[units=in] in your document. The default in ConTeXt is that leftmargin + leftmargindistance backspace, so the layout gets shifted a bit. It is not really a shift, because the backspace parameter sets the left edge of the text. [1] see http://levana.de/context/ Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] merging pdf (repost)
Hello, I use this code to merge file1.pdf, file2.pdf, file3.pdf in file4.pdf % format=english \definepapersize[A3large][width=320mm,height=450mm,offset=0pt] \setuppapersize[A3,landscape][A3large,landscape] \setuplayout [backspace=0pt,marking=on, height=middle,width=middle,location=middle, topspace=0pt, header=0pt, footer=0pt] \starttext'; \insertpages[file1.pdf][width=0pt] \insertpages[file2.pdf][width=0pt] \insertpages[file3.pdf][width=0pt] \stoptext where file1 is481 031 bytes file2 is 1 277 167 bytes and file3 is 43 574 bytes. I expected ~2 Mbytes for file4.pdf but file4 is 10 601 693 bytes, ie ~five times the size expected. Why ? Thanks in advance luigi PS. I have a context distribution that is 1 year old, but i can't actually upgrade it (well, if I must do it, I will do !) ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] merging pdf
Thanks Hans for the answer. I made another try with file1.tex: \setuppapersize[A3,landscape][A3,landscape] \starttext \dorecurse{1500}{\input tufte \par \input knuth \par} \stoptext and merge.tex: \definepapersize[A3large][width=320mm,height=450mm,offset=0pt] \setuppapersize[A3,landscape][A3,landscape] \setuplayout [backspace=0pt,marking=on, height=middle,width=middle,location=middle, topspace=0pt, header=0pt, footer=0pt] \starttext \insertpages[file1.pdf][width=0pt] \stoptext The results are: 799537 ago 7 17:55 file1.pdf 1515097 ago 7 17:56 merge.pdf Also pdffonts file1.pdf give name type emb sub uni object ID --- --- --- - EGNYTD+CMR12 Type 1 yes yes no 6 0 but pdffonts merge.pdf give name type emb sub uni object ID --- --- --- - AGPRLI+CMSS8 Type 1 yes yes no 15 0 MGUYCG+CMR12 Type 1 yes yes no 7 0 : : MGUYCG+CMR12 Type 1 yes yes no 7 0 ie the line MGUYCG+CMR12 Type 1 yes yes no 7 0 is repeated 408 (yes, four hundred) times . Do I mess with pdftex.cfg or some *.map files ? luigi ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuplayout parameters
At 12:00 07/08/2003 -0400, you wrote: I want to set up a book 5.5 x 8.5 with .5in margins left and right. During the development process I want to be able to print it on US standard 8.5 x 11 sheet of paper. Here is my current prologue (I have tried several): \setupoutput[pdftex] \definepapersize[bok][width=5.5in,height=8.5in] \setuppapersize[bok][letter] \setuplayout[marginwidth=.5in,location=middle] \setuplayout[,width=middle] (location=middle centers on the paper) Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setuplayout parameters
I want to set up a book 5.5 x 8.5 with .5in margins left and right. During the development process I want to be able to print it on US standard 8.5 x 11 sheet of paper. Here is my current prologue (I have tried several): \setupoutput[pdftex] \definepapersize[bok][width=5.5in,height=8.5in] \setuppapersize[bok][letter] \setuplayout[marginwidth=.5in,location=middle] \showframe When the resultant pdf is printed via Acrobat Reader I find the following anomalies: Total width of page outline: 5 7/16 in. Width of actual text block: 4.5 in approx. (this is OK.) Width of text block outline: 3 29/32 in (text overlaps block outline.) And so on. There are gaps between the margin outlines and the text block outline. The margin outlines are the wrong size. When I put the document in final form with \setuppapersize{bok][bok] and comment out \showframe Then the text block is not quite centered: the left margin is smaller than the right margin. Using Xpdf instead of Acrobat Reader shows the same anomalies. Changing marginwidth to margin shows the same anomalies. and so on. -- John Culleton Able Typesetters and Indexers http://wexfordpress.com ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context