ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] blank line and \placefigure
@ 2024-04-06 10:48 Thomas Meyer
  2024-04-06 10:56 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Meyer @ 2024-04-06 10:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi folks,

how can I suppress a blank line between a text paragraph and \placefigure?
I get one there, but I don't want it.

Thanks and greetings on a sunny weekend
Thomas

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

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: blank line and \placefigure
  2024-04-06 10:48 [NTG-context] blank line and \placefigure Thomas Meyer
@ 2024-04-06 10:56 ` Henning Hraban Ramm
  2024-04-06 11:43   ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-04-06 10:56 UTC (permalink / raw)
  To: ntg-context

Am 06.04.24 um 12:48 schrieb Thomas Meyer:
> how can I suppress a blank line between a text paragraph and \placefigure?
> I get one there, but I don't want it.

Did you try
\setupfloat[figure][spacebefore=,]
?
or "none" or "{disable,nowhite,back}"

https://wiki.contextgarden.net/Command/setupfloat
https://wiki.contextgarden.net/Command/blank

HTH
Hraban

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: blank line and \placefigure
  2024-04-06 10:56 ` [NTG-context] " Henning Hraban Ramm
@ 2024-04-06 11:43   ` Wolfgang Schuster
  2024-04-06 14:30     ` Thomas Meyer
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2024-04-06 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

Henning Hraban Ramm schrieb am 06.04.2024 um 12:56:
> Am 06.04.24 um 12:48 schrieb Thomas Meyer:
>> how can I suppress a blank line between a text paragraph and 
>> \placefigure?
>> I get one there, but I don't want it.
>
> Did you try
> \setupfloat[figure][spacebefore=,]
> ?
> or "none" or "{disable,nowhite,back}"

You can set the space only for *all* floats, e.g.

     \setupfloat[spacebefore=...,spaceafter=...]

and not for a single float type only.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: blank line and \placefigure
  2024-04-06 11:43   ` Wolfgang Schuster
@ 2024-04-06 14:30     ` Thomas Meyer
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Meyer @ 2024-04-06 14:30 UTC (permalink / raw)
  To: ntg-context


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

Here is a minimal example that better describes my problem.
It seems to depend on the size of the image. 30 mm and 40 mm width 
works, 35 mm does not.
I have not tested height, although the image I want to use would be 
portrait format.

\setuplayout[grid=yes]
\setupinterlinespace[line=15pt]
\starttext
\input{knuth}
\startlinecorrection
\placefigure[left, none]
[]{}\externalfigure[cow.pdf][width=40mm]
\input{knuth}
\stoplinecorrection
\stoptext

Thomas

Am 06.04.24 um 13:43 schrieb Wolfgang Schuster:
> Henning Hraban Ramm schrieb am 06.04.2024 um 12:56:
>> Am 06.04.24 um 12:48 schrieb Thomas Meyer:
>>> how can I suppress a blank line between a text paragraph and 
>>> \placefigure?
>>> I get one there, but I don't want it.
>>
>> Did you try
>> \setupfloat[figure][spacebefore=,]
>> ?
>> or "none" or "{disable,nowhite,back}"
>
> You can set the space only for *all* floats, e.g.
>
>     \setupfloat[spacebefore=...,spaceafter=...]
>
> and not for a single float type only.
>
> Wolfgang
>
> ___________________________________________________________________________________ 
>
> If your question is of interest to others as well, please add an entry 
> to the Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net 
> (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> ___________________________________________________________________________________ 
>

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

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-04-06 14:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-06 10:48 [NTG-context] blank line and \placefigure Thomas Meyer
2024-04-06 10:56 ` [NTG-context] " Henning Hraban Ramm
2024-04-06 11:43   ` Wolfgang Schuster
2024-04-06 14:30     ` Thomas Meyer

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