[NTG-context] Margin text running off bottom of page
Greetings, Is there any way to prevent marginal text from running off the bottom ot the page? I can adjust the margin widths to prevent them from running off the edges, but I cannot figure out how to do the same for the bottom of the page. \starttext text. \vskip 7.5in text \margintext{The book I am working with has marginal annotations that act as a précis of the argument in the main text. Some of them are several sentances long.} text. \stoptext Robert ___ 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] Margin text and multiple columns
Hi Marcel, As far as I know, margins end up directly next to columns: multiple columns do not share one margin at the edge of the page. This answer on tex.stackexchange.com comes tot the same conclusion: http://tex.stackexchange.com/questions/67078/text-in-outer-margin-of-multiple-columns If margins are indeed per-column instead of per-page, that should be reflected in the code determining where to set margin text. In [`typo-mar.lua`](http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/typo-mar.lua), line 434 (in the `realign`) function suggests the margintext's box is moved by hsize: if location == v_left then move_x = (reference.x or 0) - (blob.x or 0) elseif location == v_right then move_x = (reference.x or 0) - (blob.x or 0) + (reference.w or 0) - hsize else The `hsize` is as wide as the column one is currently in, and the variable `columns` is defined once and used never in the file. So that indeed suggests columns are not taken into account. Hans will know for sure, though. Cheers, Sietse On Thu, Aug 30, 2012 at 12:25 PM, Marc Rummel wrote: > Hello, > > I have a problem with margin texts in combination with multiple columns using > mkiv. I want to set a text in the outer margin of a double sided document. > This works well using \inouter as seen in the following document: > > --- > \setuppagenumbering[alternative=doublesided] > > \starttext > > \inouter{Text in Margin} > \input knuth > > \page[yes] > > \inouter{Text in Margin} > \input knuth > > \stoptext > --- > > But fails, when I use it in combination with multiple columns. Then the > margin text of the odd pages is set in the second column (probably in the > margin of the first column) instead of the margin of the whole page. > > --- > \setuppagenumbering[alternative=doublesided] > > \starttext > > \inouter{Text in Margin} > \startcolumns > \input knuth > \stopcolumns > > \page[yes] > > \inouter{Text in Margin} > \startcolumns > \input knuth > \stopcolumns > > \stoptext > --- > > I hope someone can help me. > > Best wishes, > Marc > ___ > 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 > ___ ___ 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 ___
[NTG-context] Margin text and multiple columns
Hello, I have a problem with margin texts in combination with multiple columns using mkiv. I want to set a text in the outer margin of a double sided document. This works well using \inouter as seen in the following document: --- \setuppagenumbering[alternative=doublesided] \starttext \inouter{Text in Margin} \input knuth \page[yes] \inouter{Text in Margin} \input knuth \stoptext --- But fails, when I use it in combination with multiple columns. Then the margin text of the odd pages is set in the second column (probably in the margin of the first column) instead of the margin of the whole page. --- \setuppagenumbering[alternative=doublesided] \starttext \inouter{Text in Margin} \startcolumns \input knuth \stopcolumns \page[yes] \inouter{Text in Margin} \startcolumns \input knuth \stopcolumns \stoptext --- I hope someone can help me. Best wishes, Marc ___ 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 ___
[NTG-context] Margin text and multiple columns
Hello, I have a problem with margin texts in combination with multiple columns using mkiv. I want to set a text in the outer margin of a double sided document. This works well using \inouter as seen in the following document: --- \setuppagenumbering[alternative=doublesided] \starttext \inouter{Text in Margin} \input knuth \page[yes] \inouter{Text in Margin} \input knuth \stoptext --- But fails, when I use it in combination with multiple columns. Then the margin text of the odd pages is set in the second column (probably in the margin of the first column) instead of the margin of the whole page. --- \setuppagenumbering[alternative=doublesided] \starttext \inouter{Text in Margin} \startcolumns \input knuth \stopcolumns \page[yes] \inouter{Text in Margin} \startcolumns \input knuth \stopcolumns \stoptext --- I hope someone can help me. Best wishes, Marc ___ 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] margin text rotated in inner margin
Am 2011-08-04 um 17:02 schrieb Wolfgang Schuster: So I have something like \chapter{My song} \Info{Author: Me} You can try to place the author with the title: \startchapter[title={My song}][author=Me] Good idea, but how solves that my placement problem? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] margin text rotated in inner margin
Am 04.08.2011 um 16:52 schrieb Henning Hraban Ramm: > I use it in a folk songbook, every song has a title (\chapter), then the > score (a LilyPond graphic via the filter module), after that sometimes lyrics > (a lot of rounds, so often no further lyrics). > > I use \Info for the author information, that should start at the same height > as the score - I wouldn't mind if it would start at the title. > > So I have something like > > \chapter{My song} > > \Info{Author: Me} You can try to place the author with the title: \startchapter[title={My song}][author=Me] 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] margin text rotated in inner margin
Am 2011-08-04 um 16:14 schrieb Wolfgang Schuster: \def\Info#1{\margindata[inmargin]{\rotate{\hbox[location=normal] {#1 \setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided] \define[1]\InfoCommand {\toplinebox{\rotate{#1}}} % \bottombox{\rotate{#1}} \definemargindata[Info][inmargin][style={\ss \tfx},location=inner,align=outer,command=\InfoCommand] Thank you, but that doesn’t work like it should: I use it in a folk songbook, every song has a title (\chapter), then the score (a LilyPond graphic via the filter module), after that sometimes lyrics (a lot of rounds, so often no further lyrics). I use \Info for the author information, that should start at the same height as the score - I wouldn't mind if it would start at the title. So I have something like \chapter{My song} \Info{Author: Me} \startlilypond ... \stoplilypond \startlines La la la la... \stoplines With your setup, the Info text starts at the lyrics - if there aren't any, at the lyrics of the next song! Can you guess why it skips the graphics? With my setup, I can place \Info after the score and it goes from there upward - not what I want, but acceptable. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] margin text rotated in inner margin
Am 04.08.2011 um 10:13 schrieb Henning Hraban Ramm: > I already asked this in april, but got no answer, and now I need it again: > > > I need my marginals as one line, rotated in the inner margin (that works) > AND ( > "hanging" from its place (at the moment it’s "standing") > OR > aligned to the top or bottom of the text area. > ) > AND several marginals must not overlap. > > I guess I need some \framed[align=flushright], but I don't know how. > > \setuplayout[location=doublesided] > \setuppagenumbering[alternative=doublesided,location={footer,right},strut=yes, > state=start] > \setupmargindata[inmargin][style={\ss\tfx},location=inner,align=outer] > \setupmarginframed[inmargin][align=outer,location=inner] > \def\Info#1{\margindata[inmargin]{\rotate{\hbox[location=normal]{#1 > > \starttext > > \section{Tufte} > \Info{This is a text by Tufte 1} > \input tufte > \Info{This is a text by Tufte 2} > > \page > \section{Knuth} > \Info{This is a text by Knuth 1} > \input knuth > \Info{This is a text by Knuth 2} > \input knuth > > \stoptext > > "This is a..." *starts* at the base line of the first word of the included > text. > I want it to *end* at the top of that line. \setuplayout[location=doublesided] \setuppagenumbering[alternative=doublesided] \define[1]\InfoCommand {\toplinebox{\rotate{#1}}} % \bottombox{\rotate{#1}} \definemargindata[Info][inmargin][style={\ss\tfx},location=inner,align=outer,command=\InfoCommand] \starttext \section{Tufte} \Info{This is a text by Tufte 1} \input tufte \Info{This is a text by Tufte 2} \page \section{Knuth} \Info{This is a text by Knuth 1} \input knuth \Info{This is a text by Knuth 2} \input knuth \stoptext 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 ___
[NTG-context] margin text rotated in inner margin
I already asked this in april, but got no answer, and now I need it again: I need my marginals as one line, rotated in the inner margin (that works) AND ( "hanging" from its place (at the moment it’s "standing") OR aligned to the top or bottom of the text area. ) AND several marginals must not overlap. I guess I need some \framed[align=flushright], but I don't know how. \setuplayout[location=doublesided] \setuppagenumbering [alternative=doublesided,location={footer,right},strut=yes, state=start] \setupmargindata[inmargin][style={\ss\tfx},location=inner,align=outer] \setupmarginframed[inmargin][align=outer,location=inner] \def\Info#1{\margindata[inmargin]{\rotate{\hbox[location=normal]{#1 \starttext \section{Tufte} \Info{This is a text by Tufte 1} \input tufte \Info{This is a text by Tufte 2} \page \section{Knuth} \Info{This is a text by Knuth 1} \input knuth \Info{This is a text by Knuth 2} \input knuth \stoptext "This is a..." *starts* at the base line of the first word of the included text. I want it to *end* at the top of that line. Please? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Margin text in doublesided documents
I had a similar problem - thank you, Wolfgang! But I need my marginals as one line, rotated in the inner margin and aligned to the top or bottom of the text area. I don’t know how to achieve the latter. \setuppapersize[A6][A6] \setupmargindata[inmargin][style={\ss\tfx},location=inner,align=outer] \setupmarginframed[inmargin][align=outer,location=inner] \def\Info#1{\margindata[inmargin]{\rotate{#1}}} \starttext \chapter{Tufte} \Info{This is a text by Tufte 1} \input tufte \Info{This is a text by Tufte 2} \chapter{Knuth} \Info{This is a text by Knuth 1} \input knuth \Info{This is a text by Knuth 2} \input knuth \stoptext Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Margin text in doublesided documents
Am 04.04.2011 um 23:56 schrieb C.: > Also, is \setupinmargindata equivalent to the old \setupinmargin? I could > not find any documentation about it. I wrote a interface file for the new margindata code. Wolfgang typo-mar.pdf Description: Adobe PDF document typo-mar.tex Description: Binary data typo-mar.xml Description: XML document ___ 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] Margin text in doublesided documents
Aha! It's this combination that makes it work: \setupmargindata[inmargin][location=outer,align=inner] % align=inner has no effect here?! \setupmarginframed[inmargin][align=inner] % but when I add this it works and aligns to the body text Thanks for your help, I'm all set now. > -Ursprüngliche Nachricht- > Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] > Gesendet: Dienstag, 5. April 2011 19:00 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Margin text in doublesided documents > > > Am 05.04.2011 um 18:56 schrieb C.: > > > What version(s)? > > mtx-context | current version: 2011.04.03 22:32 > > and > > mtx-context | current version: 2011.04.05 16:47 > > 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] Margin text in doublesided documents
Am 05.04.2011 um 18:56 schrieb C.: > What version(s)? mtx-context | current version: 2011.04.03 22:32 and mtx-context | current version: 2011.04.05 16:47 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] Margin text in doublesided documents
What version(s)? > -Ursprüngliche Nachricht- > Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] > Gesendet: Dienstag, 5. April 2011 17:26 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Margin text in doublesided documents > > > Am 05.04.2011 um 17:09 schrieb C.: > > > Whoops! Sent too early, this is the updated minimal example: > > Works for me, the margin text is always at the outer margin and the text > aligned to the body text. > > 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] Margin text in doublesided documents
Am 05.04.2011 um 17:09 schrieb C.: > Whoops! Sent too early, this is the updated minimal example: Works for me, the margin text is always at the outer margin and the text aligned to the body text. 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] Margin text in doublesided documents
Whoops! Sent too early, this is the updated minimal example: \setuplayout[location=doublesided] \setuppagenumbering[location=right,alternative=doublesided] \setupmargindata[inmargin][location=outer,align=inner] % almost correct. on odd pages wrong alignment % \setupmarginframed[inmargin][align=inner] % wrong side on odd pages, also wrong alignment \starttext \chapter{Chapter Knuth testing} \section{Section Knuth testing} \input knuth \inmargin{test}\input knuth\page \section{Section Knuth testing 2} bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla. \dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein Test.\inoutermargin{this is OK}\dorecurse{5}{\input knuth}\inmargin{bla} \stoptext > -Ursprüngliche Nachricht- > Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] > Gesendet: Dienstag, 5. April 2011 13:36 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Margin text in doublesided documents > > > Am 05.04.2011 um 13:23 schrieb C.: > > >> \setupmargindata[inmargin][location=outer,align=inner] > > > > Hm, tried that. The margin text did move to the outer margin, but it > > was aligned to the paper boarder, not to the body text. (i.e. it was > > set ragged left/flush right on an odd page) > > \setupmarginframed[inmargin][align=inner] > > It would really help when you provide a minimal example because its very > annoying to write always one by myself. > > 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] Margin text in doublesided documents
I will remember to include a minimal example from now on. Here is the current: \setuplayout[location=doublesided] \setuppagenumbering[location=right,alternative=doublesided] \setupmargindata[inmargin][location=outer,align=inner] % almost correct. on odd pages wrong alignment % \setupmarginframed[inmargin][align=inner] % wrong side on odd pages, also wrong alignment \starttext \chapter{Chapter Knuth testing} \section{Section Knuth testing} \input knuth \inmargin{test}\input knuth\page \section{Section Knuth testing 2} bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla. \dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein Test.\dorecurse{5}{\input knuth}\inmargin{bla} \stoptext Note: \inoutermargin on page 3 behaves correctly, though it seems to have a different default style (why bold, anyway?). As for now, I'm using \inoutermargin . > -Ursprüngliche Nachricht- > Von: Wolfgang Schuster [mailto:schuster.wolfg...@googlemail.com] > Gesendet: Dienstag, 5. April 2011 13:36 > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Margin text in doublesided documents > > > Am 05.04.2011 um 13:23 schrieb C.: > > >> \setupmargindata[inmargin][location=outer,align=inner] > > > > Hm, tried that. The margin text did move to the outer margin, but it > > was aligned to the paper boarder, not to the body text. (i.e. it was > > set ragged left/flush right on an odd page) > > \setupmarginframed[inmargin][align=inner] > > It would really help when you provide a minimal example because its very > annoying to write always one by myself. > > 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] Margin text in doublesided documents
Am 05.04.2011 um 13:23 schrieb C.: >> \setupmargindata[inmargin][location=outer,align=inner] > > Hm, tried that. The margin text did move to the outer margin, but it was > aligned to the paper boarder, not to the body text. (i.e. it was set ragged > left/flush right on an odd page) \setupmarginframed[inmargin][align=inner] It would really help when you provide a minimal example because it’s very annoying to write always one by myself. 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] Margin text in doublesided documents
> > Hello, > > > > in my doublesided document \inmargin texts are always on the left side > > of the body text. > > \inmargin is configures to be always in the left margin, you can use > \inothermargin to put the text in the opposite margin or use \inoutermargin > to put the text always in the outer margin or you can configure \inmargin to > be always in the outer margin \inothermargin gives Undefined control sequence \inoutermargin works great! > \setupmargindata[inmargin][location=outer,align=inner] Hm, tried that. The margin text did move to the outer margin, but it was aligned to the paper boarder, not to the body text. (i.e. it was set ragged left/flush right on an odd page) > > Also, is \setupinmargindata equivalent to the old \setupinmargin? I > > could not find any documentation about it. > > Because the command is new and nobody documented it so far. I see. Thank you for your reply and have a nice day. Christian ___ 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] Margin text in doublesided documents
Am 04.04.2011 um 23:56 schrieb C.: > Hello, > > in my doublesided document \inmargin texts are always on the left side of > the body text. \inmargin is configures to be always in the left margin, you can use \inothermargin to put the text in the opposite margin or use \inoutermargin to put the text always in the outer margin or you can configure \inmargin to be always in the outer margin \setupmargindata[inmargin][location=outer,align=inner] > Also, is \setupinmargindata equivalent to the old \setupinmargin? I could > not find any documentation about it. Because the command is new and nobody documented it so far. 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 ___
[NTG-context] Margin text in doublesided documents
Hello, in my doublesided document \inmargin texts are always on the left side of the body text. \setuplayout[location=doublesided] \setuppagenumbering[location=right,alternative=doublesided] \setupmargindata[left][style=\tfx] \starttext \chapter{Chapter Knuth testing} \section{Section Knuth testing} \input knuth\inmargin{test}\input knuth\page \section{Section Knuth testing 2} bla bla \inmargin{test 1.5}bla bla bla bla bla bla bla bla. \dorecurse{5}{\input knuth}Nochmal \inmargin{test 2}ein Test.\dorecurse{5}{\input knuth}\inmargin{bla} \stoptext Also, is \setupinmargindata equivalent to the old \setupinmargin? I could not find any documentation about it. This is LuaTeX, Version beta-0.66.0-2011033109 (rev 4094) ConTeXt ver: 2011.03.30 11:21 MKIV fmt: 2011.4.2 int: english/english ___ 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] margin text
On Fri, Mar 26, 2010 at 12:00 PM, luigi scarso wrote: > for expected behavior must be > backspace >= margin + margindistance > Try > backspace=23mm,margin=21mm,margindistance=2mm, > backspace=23mm,margin=23mm,margindistance=0mm, > backspace=23mm,margin=18mm,margindistance=0mm, > backspace=23mm,margin=2mm,margindistance=21mm, > luigi and Alain Delmotte wrote: > When I tested some of the page layout possibilities I did read in * that > the margin and the text are *not* at the same level, so the margins can > be *under* the text. > This also means that changing the margin will not affect the text width, > and so on. > > Alain Thank you Luigi and Alain, This helped. This matter is clear to me now. Best regards, Robert Blackstone ___ 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] margin text
Hi! Robert Blackstone a écrit : Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso wrote: wrote: What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything. hm, strange, try \setuppapersize[A4][A3] \setuplayout[location=middle, backspace=23mm, margin=15mm,margindistance=3mm, width=fit, ] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \showlayout \starttext . -- luigi Thank you, Luigi. This code gives a nice result with the page sitting neatly centered on the paper. However, when I increase the margin width to 25mm all gets shifted to the left. Both margins get 25 width, the right margin stays within the boundaries of the A4 paper, the left one is pushed outside. One would have expected that with width=fit, the increase of marginwidth would go at the expense of textwidth and that location=middle will still dictate the overall position. But no, it does not work that way apparently. Setting margin=20mm is about the limit. Even setting textwidth to a small size, for example 10 cm, does not work to keep the page inside the paper. The extra white space all shows up at the right side as an enormously wide rightedge while the left margin is still partly outside the paper. In other words: location=middle does not work. Strange indeed. Is there anything that could be done about this? And would it be possible to different margin width for the right and left margin? When I tested some of the page layout possibilities I did read in * that the margin and the text are *not* at the same level, so the margins can be *under* the text. This also means that changing the margin will not affect the text width, and so on. Alain see ConTeXt wiki Layout: http://wiki.contextgarden.net/Layout and perhaps also ConTeXt the manual cont-enp.pdf Thanks in advance for any advice. Best regards, Robert Blackstone ___ 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 ___ ___ 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] margin text
On Fri, Mar 26, 2010 at 9:56 AM, Robert Blackstone wrote: > Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso wrote: > >> wrote: >>> What should I do to get the page in the middle of the paper so to >>> speak, instead of shifted to the left, which happens with >>> \setuplayout[location=middle]?? I tried specifying leftedgewidth but >>> that does not change anything. >> hm, strange, try >> >> \setuppapersize[A4][A3] >> \setuplayout[location=middle, >> backspace=23mm, >> margin=15mm,margindistance=3mm, >> width=fit, >> ] >> \setupinmargin[left][align=left,foregroundcolor=red] >> \setupinmargin[right][align=right,foregroundcolor=blue] >> \showlayout >> \starttext > . >> -- >> luigi > > Thank you, Luigi. > This code gives a nice result with the page sitting neatly centered on > the paper. > > However, when I increase the margin width to 25mm all gets shifted to > the left. Both margins get 25 width, the right margin stays within the > boundaries of the A4 paper, the left one is pushed outside. One would > have expected that with width=fit, the increase of marginwidth would > go at the expense of textwidth and that location=middle will still > dictate the overall position. > But no, it does not work that way apparently. Setting margin=20mm is > about the limit. Even setting textwidth to a small size, for example > 10 cm, does not work to keep the page inside the paper. The extra > white space all shows up at the right side as an enormously wide > rightedge while the left margin is still partly outside the paper. In > other words: location=middle does not work. > Strange indeed. for expected behavior must be backspace >= margin + margindistance Try backspace=23mm,margin=21mm,margindistance=2mm, backspace=23mm,margin=23mm,margindistance=0mm, backspace=23mm,margin=18mm,margindistance=0mm, backspace=23mm,margin=2mm,margindistance=21mm, > > Is there anything that could be done about this? > And would it be possible to different margin width for the right and > left margin? yes there are right and left dimensions, but you should definitely experiments with them -- luigi ___ 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] margin text
Thu, 25 Mar 2010 13:26:19 +0100 luigi scarso wrote: > wrote: >> What should I do to get the page in the middle of the paper so to >> speak, instead of shifted to the left, which happens with >> \setuplayout[location=middle]?? I tried specifying leftedgewidth but >> that does not change anything. > hm, strange, try > > \setuppapersize[A4][A3] > \setuplayout[location=middle, > backspace=23mm, > margin=15mm,margindistance=3mm, > width=fit, > ] > \setupinmargin[left][align=left,foregroundcolor=red] > \setupinmargin[right][align=right,foregroundcolor=blue] > \showlayout > \starttext . > -- > luigi Thank you, Luigi. This code gives a nice result with the page sitting neatly centered on the paper. However, when I increase the margin width to 25mm all gets shifted to the left. Both margins get 25 width, the right margin stays within the boundaries of the A4 paper, the left one is pushed outside. One would have expected that with width=fit, the increase of marginwidth would go at the expense of textwidth and that location=middle will still dictate the overall position. But no, it does not work that way apparently. Setting margin=20mm is about the limit. Even setting textwidth to a small size, for example 10 cm, does not work to keep the page inside the paper. The extra white space all shows up at the right side as an enormously wide rightedge while the left margin is still partly outside the paper. In other words: location=middle does not work. Strange indeed. Is there anything that could be done about this? And would it be possible to different margin width for the right and left margin? Thanks in advance for any advice. Best regards, Robert Blackstone ___ 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] margin text
On Thu, Mar 25, 2010 at 1:00 PM, Robert Blackstone wrote: > What should I do to get the page in the middle of the paper so to > speak, instead of shifted to the left, which happens with > \setuplayout[location=middle]?? I tried specifying leftedgewidth but > that does not change anything. hm, strange, try \setuppapersize[A4][A3] \setuplayout[location=middle, backspace=23mm, margin=15mm,margindistance=3mm, width=fit, ] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \showlayout \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }} %% override blue, but not for frame \inleft{\tfx A small note in this margin. But we need to setup something before \ldots } \stoptext -- luigi ___ 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] margin text
On Thu, Mar 25, 2010 at 12:00 PM, wrote: (>> Is this normal?) > yes . > I have these line > \setuppapersize[A4][A3] > \setuplayout[location=middle] > right to show that default layout --- and it's the default layout from > 10years at least --- > perhaps is not adeguate to your needs; you need to setup* something. > > align (and ragged align) have always confused me, and I suspect that > here aligns are corrects. > > > > -- > luigi and wrote: (>> Is this normal?) > Yes, it is even a FAQ item. See here for why: > > http://wiki.contextgarden.net/Right_and_left > > In short: use flushleft or flushright. This gives the opposite behavior > of left and right, and avoids ambiguity. > > Best wishes, > Taco Thank you, Luigi and Taco, for your almost instantaneous replies. The answer to the left-right question, the recommended use of flushright and flushleft, is clear now. But the eccentricity of what apparently is the default layout is still a problem for me. What should I do to get the page in the middle of the paper so to speak, instead of shifted to the left, which happens with \setuplayout[location=middle]?? I tried specifying leftedgewidth but that does not change anything. Thanks in advance for any help. Best regards, Robert Blackstone ___ 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] margin text
Robert Blackstone wrote: 2, \setupinmargin[left][align=left,.. ] actually right-aligns the left margin note and vice versa. To left-align it I had to give \setupinmargin[right]. Seems odd to me. Is this normal? Yes, it is even a FAQ item. See here for why: http://wiki.contextgarden.net/Right_and_left In short: use flushleft or flushright. This gives the opposite behavior of left and right, and avoids ambiguity. Best wishes, Taco ___ 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] margin text
On Thu, Mar 25, 2010 at 11:33 AM, Robert Blackstone wrote: > Hi all, > > This is a reaction to a post in another thread, setupinmargin failing, > but it does not seem to directly concern the problem raised there (by > Hans van der Meer). So I raise it as a new problem. > > I tried the code supplied by Luigi Scarso in ntg-context Digest, Vol > 69, Issue 127, Message 1: > > \showframe > \setuppapersize[A4][A3] > \setuplayout[location=middle] > \setupinmargin[left][align=left,foregroundcolor=red] > \setupinmargin[right][align=right,foregroundcolor=blue] > \starttext > ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }} > %% override blue, but not for frame > \inleft{\tfx A small note in this margin. But we need to setup > something before \ldots } > \stoptext > > A few things in the result surprise, and worry, me: > 1, the actual text page does not coincide with (what I assume is) the > reserved space on the A3-folio (that is, it partially falls outside > the area with the green border). Thus in particular the left margin > with its margin text falls partly outside this area (which is also > clear when one uses \setuppapersize[A4][A4] in the preamble. ) The > margin itself is, of course, wide enough to contain the margin note. > Why is this and how can it be avoided? > In fact this usually happens to me: the margins partly fall outside > the page. Very annoying. > 2, \setupinmargin[left][align=left,.. ] actually right-aligns the > left margin note and vice versa. To left-align it I had to give > \setupinmargin[right]. > Seems odd to me. > Is this normal? yes . I have these line \setuppapersize[A4][A3] \setuplayout[location=middle] right to show that default layout --- and it's the default layout from 10years at least --- perhaps is not adeguate to your needs; you need to setup* something. align (and ragged align) have always confused me, and I suspect that here aligns are corrects. -- luigi ___ 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 ___
[NTG-context] margin text
Hi all, This is a reaction to a post in another thread, setupinmargin failing, but it does not seem to directly concern the problem raised there (by Hans van der Meer). So I raise it as a new problem. I tried the code supplied by Luigi Scarso in ntg-context Digest, Vol 69, Issue 127, Message 1: \showframe \setuppapersize[A4][A3] \setuplayout[location=middle] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }} %% override blue, but not for frame \inleft{\tfx A small note in this margin. But we need to setup something before \ldots } \stoptext A few things in the result surprise, and worry, me: 1, the actual text page does not coincide with (what I assume is) the reserved space on the A3-folio (that is, it partially falls outside the area with the green border). Thus in particular the left margin with its margin text falls partly outside this area (which is also clear when one uses \setuppapersize[A4][A4] in the preamble. ) The margin itself is, of course, wide enough to contain the margin note. Why is this and how can it be avoided? In fact this usually happens to me: the margins partly fall outside the page. Very annoying. 2, \setupinmargin[left][align=left,.. ] actually right-aligns the left margin note and vice versa. To left-align it I had to give \setupinmargin[right]. Seems odd to me. Is this normal? Since I frequently have to use margin texts I hope somebody can help me out. Best regards, Robert Blackstone ___ 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 ___
[NTG-context] margin text headings
Dear consortium, In \setuptexttexts[margin] it would be nice to have an option for the margin text (used for headings here) to start from the top of the textblock, instead of the middle, something like marginposition = top, middle % middle is default \setuptexttexts[margin][][\setups{text a}][\setups{text b}][] \setuptext[marginposition=top,state=high,] As is one has to do alot of guesswork. Can this be implemented (if it is not already)? In any case, is there a better way to do this (see example file)? Best Idris === % output=pdf interface=en %\setuppapersize [A5][A4] \newdimen\Margin \Margin=1.5cm \newdimen\MarginRaise \MarginRaise=112.6ex % guesswork \setuptexttexts[margin][][\setups{text a}][\setups{text b}][] \setuptext[style=\it,state=high] \startsetups[text a] \raise\MarginRaise\hbox{\vtop{\hsize=\Margin% \startalignment[right] Testing Knuth 2 \stopalignment }} \stopsetups \startsetups[text b] \raise\MarginRaise\hbox{\vtop{\hsize=\Margin% \startalignment[right] Testing Knuth 1 \stopalignment }} \stopsetups \setuppagenumbering[alternative=doublesided, location={footer,middle}] \showframe \starttext \dorecurse{20}{\input knuth\par } \stoptext === -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context