Re: [NTG-context] First and last lines on a grid
This should do the trick: \define[1]\PagenumberCommand {\smash[d]{#1}} \setuppagenumbering [ strut=no, command=\PagenumberCommand] And how well it does it! Now I managed to align the last line of the grid with the textblock's frame: --- \definemeasure [gridWidth] [\dimexpr\paperwidth/9\relax] \definemeasure [gridHeight] [\dimexpr\paperheight/9\relax] \definemeasure [leading] [\dimexpr(6\measure{gridHeight}+\strutdepth)/20\relax] \setuplayout [grid=yes, backspace=\measure{gridWidth}, width=\dimexpr6\measure{gridWidth}\relax, topspace=\measure{gridHeight}, height=\dimexpr7\measure{gridHeight}\relax, leftmargin=\zeropoint, rightmargin=\zeropoint, header=\zeropoint, footer=\measure{gridHeight}] \setupinterlinespace [line=\measure{leading}] \define[1]\PageNumberCommand{\smash[d]{#1}} \setuppagenumbering [alternative=doublesided, location={footer,right}, strut=no, command=\PageNumberCommand] \starttext \showframe \showgrid É \dorecurse{10}{\input zapf\par} \stoptext --- This only leaves the task of aligning the first line, too. How would I achieve this? Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First and last lines on a grid
Am 22.04.2011 um 14:04 schrieb Oliver Buerschaper: Also I'd like to typeset the page number flush with the lower border of the footer frame. How would I achieve that? \setuppagenumbering[strut=no] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First and last lines on a grid
Also I'd like to typeset the page number flush with the lower border of the footer frame. How would I achieve that? \setuppagenumbering[strut=no] That's wonderful! Any idea about the other thing? Thanks, Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First and last lines on a grid
Also I'd like to typeset the page number flush with the lower border of the footer frame. How would I achieve that? \setuppagenumbering[strut=no] I just realized that when I use oldstyle figures any pagenumber with a descender is bumped upwards a little. Is there a way to have them protrude (vertically) beyond the frame border? Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First and last lines on a grid
Am 22.04.2011 um 19:32 schrieb Oliver Buerschaper: Also I'd like to typeset the page number flush with the lower border of the footer frame. How would I achieve that? \setuppagenumbering[strut=no] I just realized that when I use oldstyle figures any pagenumber with a descender is bumped upwards a little. Is there a way to have them protrude (vertically) beyond the frame border? This should do the trick: \define[1]\PagenumberCommand {\smash[d]{#1}} \setuppagenumbering [ strut=no, command=\PagenumberCommand] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] First and last lines on a grid
I just realized that when I use oldstyle figures any pagenumber with a descender is bumped upwards a little. Is there a way to have them protrude (vertically) beyond the frame border? This should do the trick: \define[1]\PagenumberCommand {\smash[d]{#1}} \setuppagenumbering [ strut=no, command=\PagenumberCommand] And how well it does it! Thanks, Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___