* Re: stack marginals: text and figures
@ 2012-05-22 7:46 Andy Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Andy Thomas @ 2012-05-22 7:46 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1906 bytes --]
> > I made a small example to show the behavior:
> >
> > […]
> >
> > This is a sentence.\margintext{This is a note in the margin.} Another
> > sentence.\margintext{Another note.} \placefigure[margin][fig:one]{This is a
> > small figure.}{\externalfigure[test][width=100pt]}
> > \placefigure[margin][fig:two]{This is another small
> > figure.}{\externalfigure[test][width=100pt]} \stoptext
> >
> > I also tried to do things such as \margintext{\placefigure...}}, but had no
> > success.
>
> Why not? The following works here:
>
> This is a sentence.
> \margintext{This is a note in the margin.}
> Another sentence.
> \margintext{Another note.}
> \margintext
> {\placefigure[here][fig:one]
> {This is a small figure.}
> {\externalfigure[test][width=100pt]}}
> \margintext
> {\placefigure[here][fig:two]
> {This is another small figure.}
> {\externalfigure[test][width=100pt]}}
>
>
> Marco
\margintext{\placefigure[here]…} does indeed work. I cannot even reproduce why I was not able to do it, but I assume I tried \margintext{\placefigure[margin]…} which does not make much sense...
> > Dear ConTeXt group,
> >
> > I am trying to stack text and figures in the margin. After getting some help, I am able to setup the text just fine, the notes do not overlap. I am also able to stack figures, they also do not overlap. But figures and text does not 'know of each other'. They do overlap.
> >
> > I made a small example to show the behavior:
> >
> > […]
> >
> > \definemargindata [margintext]
> > [
> > location=outer,
> > width=100pt,
> > align=flushouter,
> > stack=continue, % or yes
> > ]
>
> Use \setupmargindata to change the values of a existing command. In this example it doesn’t matter but that’s not always the case.
>
> Wolfgang
I also changed \definemargindata to \setumargindata.
Andy
[-- Attachment #1.2: Type: text/html, Size: 6616 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stack marginals: text and figures
2012-05-20 18:42 Andy Thomas
2012-05-21 18:00 ` Marco
@ 2012-05-21 18:33 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-05-21 18:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 20.05.2012 um 20:42 schrieb Andy Thomas:
> Dear ConTeXt group,
>
> I am trying to stack text and figures in the margin. After getting some help, I am able to setup the text just fine, the notes do not overlap. I am also able to stack figures, they also do not overlap. But figures and text does not 'know of each other'. They do overlap.
>
> I made a small example to show the behavior:
>
> […]
>
> \definemargindata [margintext]
> [
> location=outer,
> width=100pt,
> align=flushouter,
> stack=continue, % or yes
> ]
Use \setupmargindata to change the values of a existing command. In this example it doesn’t matter but that’s not always the case.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: stack marginals: text and figures
2012-05-20 18:42 Andy Thomas
@ 2012-05-21 18:00 ` Marco
2012-05-21 18:33 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Marco @ 2012-05-21 18:00 UTC (permalink / raw)
To: ntg-context
On 2012-05-20 Andy Thomas <andythomas@web.de> wrote:
> I made a small example to show the behavior:
>
> […]
>
> This is a sentence.\margintext{This is a note in the margin.} Another
> sentence.\margintext{Another note.} \placefigure[margin][fig:one]{This is a
> small figure.}{\externalfigure[test][width=100pt]}
> \placefigure[margin][fig:two]{This is another small
> figure.}{\externalfigure[test][width=100pt]} \stoptext
>
> I also tried to do things such as \margintext{\placefigure...}}, but had no
> success.
Why not? The following works here:
This is a sentence.
\margintext{This is a note in the margin.}
Another sentence.
\margintext{Another note.}
\margintext
{\placefigure[here][fig:one]
{This is a small figure.}
{\externalfigure[test][width=100pt]}}
\margintext
{\placefigure[here][fig:two]
{This is another small figure.}
{\externalfigure[test][width=100pt]}}
Marco
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* stack marginals: text and figures
@ 2012-05-20 18:42 Andy Thomas
2012-05-21 18:00 ` Marco
2012-05-21 18:33 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Andy Thomas @ 2012-05-20 18:42 UTC (permalink / raw)
To: ntg-context
Dear ConTeXt group,
I am trying to stack text and figures in the margin. After getting some help, I am able to setup the text just fine, the notes do not overlap. I am also able to stack figures, they also do not overlap. But figures and text does not 'know of each other'. They do overlap.
I made a small example to show the behavior:
% setup the page format
\definepapersize[wissenschaft][width=170mm,height=240mm]
% use the new page format
\setuppapersize[wissenschaft]
% shape the page
\setuplayout[topspace=40pt,
header=0pt,
headerdistance=0pt,
backspace=42pt,
leftmargin=0pt,
width=280pt,
height=560pt,
rightmargindistance=20pt,
rightmargin=100pt,
footer=0pt]
%\showframe
\setuppagenumbering[alternative=doublesided]
\definemargindata [margintext]
[
location=outer,
width=100pt,
align=flushouter,
stack=continue, % or yes
]
\starttext
This is a sentence.\margintext{This is a note in the margin.} Another sentence.\margintext{Another note.}
\placefigure[margin][fig:one]{This is a small figure.}{\externalfigure[test][width=100pt]}
\placefigure[margin][fig:two]{This is another small figure.}{\externalfigure[test][width=100pt]}
\stoptext
I also tried to do things such as \margintext{\placefigure...}}, but had no success.
Is there a way to achieve a 'stacking' of all marginals?
Andy
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-22 7:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-22 7:46 stack marginals: text and figures Andy Thomas
-- strict thread matches above, loose matches on Subject: below --
2012-05-20 18:42 Andy Thomas
2012-05-21 18:00 ` Marco
2012-05-21 18:33 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).