ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* margin of left/right floats
@ 2018-04-03 16:56 Henning Hraban Ramm
  2018-04-03 18:55 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2018-04-03 16:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello again,

this should be a simple question, but I didn’t find anything (or probably didn’t look at the right places):

How can I setup/change the margin beside a float (image) that is placed left or right?

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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] 4+ messages in thread

* Re: margin of left/right floats
  2018-04-03 16:56 margin of left/right floats Henning Hraban Ramm
@ 2018-04-03 18:55 ` Hans Hagen
  2018-04-04  8:10   ` Henning Hraban Ramm
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2018-04-03 18:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

On 4/3/2018 6:56 PM, Henning Hraban Ramm wrote:
> Hello again,
> 
> this should be a simple question, but I didn’t find anything (or probably didn’t look at the right places):
> 
> How can I setup/change the margin beside a float (image) that is placed left or right?
     \setupfloats[margin=3cm]

     \placefigure[left]{}{}

     \input ward \input ward

     \definefloat[myleft]

     \setupfloat
       [myleft]
       [default=left,
        leftmargindistance=1cm]

     \placefloat
       [myleft]{}{}

     \input ward \input ward

     \setupfloat
       [myleft]
       [default=left,
        margin=1cm,
        leftmargindistance=1cm]

     \placefloat
       [myleft]{}{}

     \input ward \input ward


for historical reasons margin is only set global but I'll change that to 
instance related too (so that the last example works without globally 
setting margin)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

* Re: margin of left/right floats
  2018-04-03 18:55 ` Hans Hagen
@ 2018-04-04  8:10   ` Henning Hraban Ramm
  2018-04-04  8:57     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Henning Hraban Ramm @ 2018-04-04  8:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 2018-04-03 um 20:55 schrieb Hans Hagen <j.hagen@xs4all.nl>:

> On 4/3/2018 6:56 PM, Henning Hraban Ramm wrote:
>> Hello again,
>> this should be a simple question, but I didn’t find anything (or probably didn’t look at the right places):
>> How can I setup/change the margin beside a float (image) that is placed left or right?
>    \setupfloats[margin=3cm]

I thought there should be a setting like that, but it’s missing in http://wiki.contextgarden.net/Command/setupfloat
I’ll add it.

I didn’t check what left/rightmargindistance does, just anticipated it would be the distance from the margin of the textarea.

> 
>    \placefigure[left]{}{}
> 
>    \input ward \input ward
> 
>    \definefloat[myleft]
> 
>    \setupfloat
>      [myleft]
>      [default=left,
>       leftmargindistance=1cm]
> 
>    \placefloat
>      [myleft]{}{}
> 
>    \input ward \input ward
> 
>    \setupfloat
>      [myleft]
>      [default=left,
>       margin=1cm,
>       leftmargindistance=1cm]
> 
>    \placefloat
>      [myleft]{}{}
> 
>    \input ward \input ward
> 
> 
> for historical reasons margin is only set global but I'll change that to instance related too (so that the last example works without globally setting margin)

Thank you very much!


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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] 4+ messages in thread

* Re: margin of left/right floats
  2018-04-04  8:10   ` Henning Hraban Ramm
@ 2018-04-04  8:57     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2018-04-04  8:57 UTC (permalink / raw)
  To: ntg-context

On 4/4/2018 10:10 AM, Henning Hraban Ramm wrote:
> Am 2018-04-03 um 20:55 schrieb Hans Hagen <j.hagen@xs4all.nl>:
> 
>> On 4/3/2018 6:56 PM, Henning Hraban Ramm wrote:
>>> Hello again,
>>> this should be a simple question, but I didn’t find anything (or probably didn’t look at the right places):
>>> How can I setup/change the margin beside a float (image) that is placed left or right?
>>     \setupfloats[margin=3cm]
> 
> I thought there should be a setting like that, but it’s missing in http://wiki.contextgarden.net/Command/setupfloat
> I’ll add it.
> 
> I didn’t check what left/rightmargindistance does, just anticipated it would be the distance from the margin of the textarea.
> 
there's probably some info in details.pdf


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2018-04-04  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-03 16:56 margin of left/right floats Henning Hraban Ramm
2018-04-03 18:55 ` Hans Hagen
2018-04-04  8:10   ` Henning Hraban Ramm
2018-04-04  8:57     ` Hans Hagen

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