ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* margintext and floats in the margin
@ 2020-01-29  8:30 Otared Kavian
  2020-01-31  8:39 ` Jan Willem Flamma
  0 siblings, 1 reply; 3+ messages in thread
From: Otared Kavian @ 2020-01-29  8:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1123 bytes --]

Hi,

Is it possible to put some short notes in the margin, together with a float?
Below is an example, which puts the float on top of the text in the margin.
The option « stack=yes » works fine for the margintext when there is no float, but it does not seems to be an option which puts the figure and margintext in a sort of stack.

Thanks for any advice: Otared K.

% begin margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
	width=120mm,
	leftmargin=25mm,rightmargin=50mm]
	
\setupmargindata[margintext]
	[align=raggedright,
	stack=yes,
	location=outer,
	style={\rm}]

\showframe
\startbuffer[sine]
	numeric u ; u = 5mm ;
	draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
	withcolor transparent(1,.5,darkblue) 
	withpen pencircle scaled 2pt ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the margin.}
This is some more text.\margintext{This text is also in the margin.}
\startplacefigure[location=outermargin,number=no]
\scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
\stopplacefigure

\stoptext
% end margintext-float.tex


[-- Attachment #1.2: Type: text/html, Size: 6275 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: margintext and floats in the margin
  2020-01-29  8:30 margintext and floats in the margin Otared Kavian
@ 2020-01-31  8:39 ` Jan Willem Flamma
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Willem Flamma @ 2020-01-31  8:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2002 bytes --]

Dear Otared,

Please have a look at:

https://www.mail-archive.com/ntg-context@ntg.nl/msg63579.html <https://www.mail-archive.com/ntg-context@ntg.nl/msg63579.html>

Kind regards,
Jan Willem Flamma


> On 29 Jan 2020, at 09:30, Otared Kavian <otared@gmail.com> wrote:
> 
> Hi,
> 
> Is it possible to put some short notes in the margin, together with a float?
> Below is an example, which puts the float on top of the text in the margin.
> The option « stack=yes » works fine for the margintext when there is no float, but it does not seems to be an option which puts the figure and margintext in a sort of stack.
> 
> Thanks for any advice: Otared K.
> 
> % begin margintext-float.tex
> \setuppapersize[A4][A4]
> \setuplayout[
> 	width=120mm,
> 	leftmargin=25mm,rightmargin=50mm]
> 	
> \setupmargindata[margintext]
> 	[align=raggedright,
> 	stack=yes,
> 	location=outer,
> 	style={\rm}]
> 
> \showframe
> \startbuffer[sine]
> 	numeric u ; u = 5mm ;
> 	draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
> 	withcolor transparent(1,.5,darkblue) 
> 	withpen pencircle scaled 2pt ;
> \stopbuffer
> 
> \starttext
> 
> This is some text.\margintext{This is a remark in the margin.}
> This is some more text.\margintext{This text is also in the margin.}
> \startplacefigure[location=outermargin,number=no]
> \scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
> \stopplacefigure
> 
> \stoptext
> % end margintext-float.tex
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 8116 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* margintext and floats in the margin
@ 2020-01-26 10:10 Otared Kavian
  0 siblings, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2020-01-26 10:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1123 bytes --]

Hi,

Is it possible to put some short notes in the margin, together with a float?
Below is an example, which puts the float on top of the text in the margin.
The option « stack=yes » works fine for the margintext when there is no float, but it does not seems to be an option which puts the figure and margintext in a sort of stack.

Thanks for any advice: Otared K.

% begin margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
	width=120mm,
	leftmargin=25mm,rightmargin=50mm]
	
\setupmargindata[margintext]
	[align=raggedright,
	stack=yes,
	location=outer,
	style={\rm}]

\showframe
\startbuffer[sine]
	numeric u ; u = 5mm ;
	draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
	withcolor transparent(1,.5,darkblue) 
	withpen pencircle scaled 2pt ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the margin.}
This is some more text.\margintext{This text is also in the margin.}
\startplacefigure[location=outermargin,number=no]
\scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
\stopplacefigure

\stoptext
% end margintext-float.tex


[-- Attachment #1.2: Type: text/html, Size: 6087 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-31  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-29  8:30 margintext and floats in the margin Otared Kavian
2020-01-31  8:39 ` Jan Willem Flamma
  -- strict thread matches above, loose matches on Subject: below --
2020-01-26 10:10 Otared Kavian

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).