I tried this code with both
        \setupinmargin[left][...] and \setupinmargin[][...].
The first one worked, the second obviously not. I take it therefore that the [left]-argument is mandatory.

In the manual I have, the \setupinmargin[][] description has its first argument printed slanted. I checked the manual's introduction and expressis verbis it is mentioned there that "Optional arguments are displayed as slanted text." So I would not easily have inferred the necessity to specify a value in both the arguments. Even to the point of having \setupinmargin[{left,right}][...] needed to set both margin notes to the same value.

So, thanks of pointing this out.

Hans van der Meer




On 23 mrt 2010, at 20:56, luigi scarso wrote:

On Tue, Mar 23, 2010 at 7:34 PM, Hans van der Meer <h.vanderm...@uva.nl > wrote:
I tested margin notes and may have found a discrepancy with the (albeit old)
manual.
\setupcolors[state=start]
\setupinmargin[][align=right,foregroundcolor=red]
\starttext
ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1}}
\inleft{L1}
\stoptext
This shows un uncolored "L1". But according to the manual there is a
parameter choice as in \setupframed. This means for example colored contents
with foregroundcolor.
The code above leaves "L1" black, but does honor the color inside the
framed.
I also fail to see a difference between the align options right, middle,
left.
Something wrong? Or something not understood?
ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.23 int: english/ english
Hans van der Meer

\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

--
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
___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to