ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startplacefloat query
@ 2017-07-31 19:52 Alan Bowen
  2017-07-31 20:43 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Bowen @ 2017-07-31 19:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

When placing a float to the left or right of text, is there a way to place
a given number of lines of text directly above it? Or is this not the right
mechanism to achieve this?

What I have now is:
\starttext
\startplacefigure[title=Cow,
location={left, 3*line, force, high}]
{\externalfigure[cow.pdf][width=.2\textwidth]}
\stopplacefigure
\input knuth
\stoptext

which gives:

                   Xxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
[cow image] xxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


What I would prefer is a pattern like this:

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
[cow image] xxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
                   xxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Alan

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

[-- Attachment #2: Type: text/plain, Size: 492 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: \startplacefloat query
  2017-07-31 19:52 \startplacefloat query Alan Bowen
@ 2017-07-31 20:43 ` Aditya Mahajan
  2017-07-31 21:42   ` Alan Bowen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2017-07-31 20:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 31 Jul 2017, Alan Bowen wrote:

> When placing a float to the left or right of text, is there a way to place
> a given number of lines of text directly above it? Or is this not the right
> mechanism to achieve this?

Using 3*hang instead of 3*line

> What I have now is:
> \starttext
> \startplacefigure[title=Cow,
> location={left, 3*line, force, high}]
> {\externalfigure[cow.pdf][width=.2\textwidth]}
> \stopplacefigure
> \input knuth
> \stoptext

Aditya
___________________________________________________________________________________
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: \startplacefloat query
  2017-07-31 20:43 ` Aditya Mahajan
@ 2017-07-31 21:42   ` Alan Bowen
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Bowen @ 2017-07-31 21:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Thanks, Aditya. That is a great help!

Alan


On Mon, Jul 31, 2017 at 4:43 PM, Aditya Mahajan <adityam@umich.edu> wrote:

> On Mon, 31 Jul 2017, Alan Bowen wrote:
>
> When placing a float to the left or right of text, is there a way to place
>> a given number of lines of text directly above it? Or is this not the
>> right
>> mechanism to achieve this?
>>
>
> Using 3*hang instead of 3*line
>
> What I have now is:
>> \starttext
>> \startplacefigure[title=Cow,
>> location={left, 3*line, force, high}]
>> {\externalfigure[cow.pdf][width=.2\textwidth]}
>> \stopplacefigure
>> \input knuth
>> \stoptext
>>
>
> Aditya
> ____________________________________________________________
> _______________________
> 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/list
> info/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: 2574 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 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:[~2017-07-31 21:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-31 19:52 \startplacefloat query Alan Bowen
2017-07-31 20:43 ` Aditya Mahajan
2017-07-31 21:42   ` Alan Bowen

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