[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Luc Chabassier
mechanisms? >> I did, but as far as I know they place the text on the margin next to >> the \inmargin invocation in the text, so they may overlap, which is what >> I want to avoid. > > \setupmarginblocks[inbetween=] > > \starttext > > \dorecurse{100} >{\

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
vm via ntg-context schrieb am 21.05.2024 um 16:07: On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}    {\bold{#1:} \samplefile{ward}%     \startmarginblock Note #1\stopmarginblock     \par} \stoptext when I compile this, i get per

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
just noticed that if the notes need more margin space then are pages available by the text, they get lost. e.g. this mwe generates 10 pages with 100 par but only 80 notes will show up. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread vm via ntg-context
On 21/05/2024 15:54, Wolfgang Schuster wrote: \setupmarginblocks[inbetween=] \starttext \dorecurse{100}   {\bold{#1:} \samplefile{ward}%    \startmarginblock Note #1\stopmarginblock    \par} \stoptext when I compile this, i get per page with \par 1..10 -> the notes 1..11 \par 11.

[NTG-context] Re: LUA API for page numbers

2024-05-21 Thread Wolfgang Schuster
xt to the \inmargin invocation in the text, so they may overlap, which is what I want to avoid. \setupmarginblocks[inbetween=] \starttext \dorecurse{100} {\bold{#1:} \samplefile{ward}% \startmarginblock Note #1\stopmarginblock \par} \stoptext Wol

[NTG-context] tikzpicture in margin

2021-02-14 Thread Jigé
ded] \starttext \input{lorem} \inmargin{\externalfigure[cow] [width=\marginwidth]} \pagebreak \input{lorem} \input{lorem} \blank We would like the picture to go the the left of this paragraph. \setupmarginblocks[location=left,align=inner] \startmarginblock \starttikzpicture[scale=0.2] \draw[gray] (-2,

Re: [NTG-context] notes in the margin

2017-04-09 Thread Pablo Rodriguez
ypo-mar.mkiv)? I don’t know, but both mechanisms aren’t able to split content between pages: \setupmarginblocks[width=.8\rightmarginwidth] \starttext \dorecurse{5}{\input zapf \startmarginblock\input knuth\stopmarginblock

[NTG-context] Different width of marginblocks and margindata

2013-05-03 Thread Marco Patzer
Hi, in the following example, why do marginblocks and margindata produce a different width when both are set to the same value? \setupmarginblocks [width=\rightmarginwidth] \setupmargindata [inright] [style=normal, width=\rightmarginwidth] \showframe \starttext \startmarginblock

Re: [NTG-context] \placefigure[margin] but in left margin?

2013-01-03 Thread Mikael P. Sundqvist
e tried several other keys but with leftmargin, inleft the >> figure is not put in the top of the page, "independent of the text". Can I >> fix this with some setup? >> > >> > Small test file: >> >> \setupmarginblocks >> [location=left] &

Re: [NTG-context] \placefigure[margin] but in left margin?

2013-01-03 Thread Wolfgang Schuster
[margin] but I want it > > _always_ in the left margin instead of the right margin where it ends up by > > default. I have tried several other keys but with leftmargin, inleft the > > figure is not put in the top of the page, "independent of the text". Can I > &g

Re: [NTG-context] \placefigure[margin] but in left margin?

2013-01-03 Thread Mikael P. Sundqvist
the left margin instead of the right margin where it ends up by > default. I have tried several other keys but with leftmargin, inleft the > figure is not put in the top of the page, "independent of the text". Can I > fix this with some setup? > > > > Small test file: >

Re: [NTG-context] \placefigure[margin] but in left margin?

2013-01-03 Thread Wolfgang Schuster
tmargin, inleft the > figure is not put in the top of the page, "independent of the text". Can I > fix this with some setup? > > Small test file: \setupmarginblocks [location=left] > \starttext > \input tufte > > \placefigure[leftmargin][none]{With the

Re: [NTG-context] old sidebar example

2009-09-25 Thread Piotr Kopszak
> rightmargindistance=-.8in, > default={outer,high}] > \setupcaption[intermezzo][location=none] > > \defineframedtext > [myohmy] > [width=6cm,bodyfont=small, > frame=off, > backgroundcorner=round, > backgroundradius=6pt,background=screen,backgroundscreen=.8] > %\showframe >

[NTG-context] old sidebar example

2009-09-25 Thread Piotr Kopszak
\setupmarginblocks[ style=small, width=5cm, before=\startmyohmy, after={\relax,\stopmyohmy}, align=middle, ] \long\def\sidebar#1{\placeintermezzo{}{\startmyohmy #1 \relax\stopmyohmy}} \starttext \input ward \placeintermezzo{}{\startmyohmy\input dawkins \relax\stopmyohmy} \dorecurse{3}{\input

[NTG-context] math font size in captions (and other places)

2008-09-24 Thread Mikael Persson
math font is not changed. I can solve this by doing a \switchtobodyfont in the caption, but I'd like to do it only once and for all. I guess I have the same problem in all environments where there is a style= parameter. (For now, I also would like to set it in \setupmarginblocks. I've tested

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
up[name][number|each][options][options] \setupitems[options] \setuplabeltext[language code][name=text] \setuplanguage[language code][settings] # \setuplayer \setuplayout[options] \setuplegend[options] \setuplinenumbering[options] \setuplines[options] \setuplinewidth[dimension] \setuplist[names][options] \setupmak

Re: [NTG-context] footnotes in margin

2006-03-21 Thread John R. Culleton
dth=6cm,bodyfont=small, frame=off, backgroundcorner=round, backgroundradius=6pt,background=screen,backgroundscreen=.8] %\showframe \setupmarginblocks[ style=small, width=5cm, before=\startmyohmy, after={\relax,\stopmyohmy}, align=middle, ] \lo

[NTG-context] marginblock placement

2006-01-19 Thread Hans van der Meer
Encountered some annoying behaviour in placing sidenotes in the margin with \startmarginblock (1) In a previous email I said I could get the notes in the right margin only. That was incorrect. \setupmarginblocks governs the placement and of course the last call gets precedence when several