[NTG-context] Adjusting vertical location of a margin figure

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Mar 30 12:15:31 CEST 2015


> Am 30.03.2015 um 08:41 schrieb Mari Voipio <mari.voipio at iki.fi>:
> 
> On Tue, Mar 24, 2015 at 1:41 PM, Wolfgang Schuster
> <schuster.wolfgang at gmail.com> wrote:
>> 
>> You can use the \tbox command for the alignment of the graphic.
>> 
>> \setuplayout[backspace=4cm,width=14cm]
>> 
>> \starttext
>> 
>> \inmargin{\tbox{\externalfigure[warning][width=\leftmarginwidth]}}
>> \input tufte
>> 
>> \stoptext
> 
> This is much better, and quite a bit cleaner, too. Thank you Wolfgang!

When you have more graphics in the margin you create a new inmargin
command which always uses the \tbox command for the image.

\setuplayout[backspace=4cm,width=14cm]

\definemargindata[marginfigure][inmargin]
\setupmargindata [marginfigure][command=\tbox]

\starttext

\marginfigure{\externalfigure[warning][width=\leftmarginwidth]}
\input tufte

\stoptext

Wolfgang



More information about the ntg-context mailing list