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

2013-01-03 Thread Mikael P. Sundqvist
Dear list,

I want to have the effect I get with \placefigure[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
fix this with some setup?

Small test file:

\starttext
\input tufte

\placefigure[leftmargin][none]{With the key
leftmargin}{\externalfigure[cow][width=1cm]}
\input tufte

\placefigure[inleft][none]{With the key
inleft}{\externalfigure[cow][width=1cm]}
\input tufte

\placefigure[margin][none]{With the key
margin}{\externalfigure[cow][width=1cm]}
\input tufte
% This is the way I want it, but I want it in the left margin instead
\stoptext
___
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] \placefigure[margin] but in left margin?

2013-01-03 Thread Wolfgang Schuster

Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:

 Dear list,
 
 I want to have the effect I get with \placefigure[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 
 fix this with some setup?
 
 Small test file:

\setupmarginblocks
  [location=left]

 \starttext
 \input tufte
 
 \placefigure[leftmargin][none]{With the key 
 leftmargin}{\externalfigure[cow][width=1cm]}
 \input tufte
 
 \placefigure[inleft][none]{With the key 
 inleft}{\externalfigure[cow][width=1cm]}
 \input tufte
 
 \placefigure[margin][none]{With the key 
 margin}{\externalfigure[cow][width=1cm]}
 \input tufte
 % This is the way I want it, but I want it in the left margin instead
 \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
___


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

2013-01-03 Thread Mikael P. Sundqvist
On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


 Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:

  Dear list,
 
  I want to have the effect I get with \placefigure[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
 fix this with some setup?
 
  Small test file:

 \setupmarginblocks
   [location=left]

  \starttext
  \input tufte
 
  \placefigure[leftmargin][none]{With the key
 leftmargin}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[inleft][none]{With the key
 inleft}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[margin][none]{With the key
 margin}{\externalfigure[cow][width=1cm]}
  \input tufte
  % This is the way I want it, but I want it in the left margin instead
  \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

 ___



Thank you very much for your fast reply, Wolfgang. That is what I looked
for. However, a new problem appeared now. The example file

\setuppapersize[A5][A5]

\setuplayout[
footer=0cm,
header=0.6cm,
headerdistance=0.2cm,
footerdistance=0cm,
topspace=1cm,
backspace=4cm,
leftmargin=3cm,
rightmargin=0cm,
leftmargindistance=0.5cm,
height=fit,
width=fit,
]

\setupmarginblocks[location=left]


\starttext
\showlayout

\placefigure[margin][none]{With the key
margin}{\externalfigure[cow][width=3cm]}
\input tufte

\stoptext

does not work as intended for me. The layout looks OK if I read the
\showlayout output correctly, but the cow is not put entirely in the
margin, but sticks out outside the page. I attach the output of the code
above.

Best regards, Mikael


test.pdf
Description: Adobe PDF 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] \placefigure[margin] but in left margin?

2013-01-03 Thread Wolfgang Schuster

Am 03.01.2013 um 17:13 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster 
 wolfgang.schus...@gmail.com wrote:
 
 Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:
 
  Dear list,
 
  I want to have the effect I get with \placefigure[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 
  fix this with some setup?
 
  Small test file:
 
 \setupmarginblocks
   [location=left]
 
  \starttext
  \input tufte
 
  \placefigure[leftmargin][none]{With the key 
  leftmargin}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[inleft][none]{With the key 
  inleft}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[margin][none]{With the key 
  margin}{\externalfigure[cow][width=1cm]}
  \input tufte
  % This is the way I want it, but I want it in the left margin instead
  \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
 ___
 
 
 Thank you very much for your fast reply, Wolfgang. That is what I looked for. 
 However, a new problem appeared now. The example file
 
 \setuppapersize[A5][A5]
 
 \setuplayout[
 footer=0cm,
 header=0.6cm,
 headerdistance=0.2cm,
 footerdistance=0cm,
 topspace=1cm,
 backspace=4cm,
 leftmargin=3cm,
 rightmargin=0cm,
 leftmargindistance=0.5cm,
 height=fit,
 width=fit,
 ]
 
 \setupmarginblocks[location=left]

\setupmarginblocks
  [location=left,
   width=\leftmarginwidth]

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] \placefigure[margin] but in left margin?

2013-01-03 Thread Mikael P. Sundqvist
On Thu, Jan 3, 2013 at 5:16 PM, Wolfgang Schuster 
wolfgang.schus...@gmail.com wrote:


 Am 03.01.2013 um 17:13 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Thu, Jan 3, 2013 at 3:58 PM, Wolfgang Schuster 
 wolfgang.schus...@gmail.com wrote:


 Am 03.01.2013 um 13:48 schrieb Mikael P. Sundqvist mic...@gmail.com:

  Dear list,
 
  I want to have the effect I get with \placefigure[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
 fix this with some setup?
 
  Small test file:

 \setupmarginblocks
   [location=left]

  \starttext
  \input tufte
 
  \placefigure[leftmargin][none]{With the key
 leftmargin}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[inleft][none]{With the key
 inleft}{\externalfigure[cow][width=1cm]}
  \input tufte
 
  \placefigure[margin][none]{With the key
 margin}{\externalfigure[cow][width=1cm]}
  \input tufte
  % This is the way I want it, but I want it in the left margin instead
  \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

 ___



 Thank you very much for your fast reply, Wolfgang. That is what I looked
 for. However, a new problem appeared now. The example file

 \setuppapersize[A5][A5]

 \setuplayout[
 footer=0cm,
 header=0.6cm,
 headerdistance=0.2cm,
 footerdistance=0cm,
 topspace=1cm,
 backspace=4cm,
 leftmargin=3cm,
 rightmargin=0cm,
 leftmargindistance=0.5cm,
 height=fit,
 width=fit,
 ]

 \setupmarginblocks[location=left]


 \setupmarginblocks
   [location=left,
width=\leftmarginwidth]

 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

 ___


Thank you very much, Wolfgang! Now it looks as it should.

Mikael
___
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
___