ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Left, right, top, bottom margins in a \framed box
@ 2009-12-26 13:43 Oliver Buerschaper
  2009-12-26 15:18 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Oliver Buerschaper @ 2009-12-26 13:43 UTC (permalink / raw)
  To: mailing ConTeXt users list for

Dear all,

I'm wondering how I can get different margins between the contents of a framed box and its left, right, top or bottom border. Somehow "offset" affects all margins simultaneously ...

Best wishes,
Oliver
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Left, right, top, bottom margins in a \framed box
  2009-12-26 13:43 Left, right, top, bottom margins in a \framed box Oliver Buerschaper
@ 2009-12-26 15:18 ` Wolfgang Schuster
  2009-12-26 15:53   ` Oliver Buerschaper
  2010-02-20 21:15   ` Bernhard Rosensteiner
  0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2009-12-26 15:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 26.12.2009 um 14:43 schrieb Oliver Buerschaper:

> Dear all,
> 
> I'm wondering how I can get different margins between the contents of a framed box and its left, right, top or bottom border. Somehow "offset" affects all margins simultaneously 

MkIV only:

- loffset
- roffset
- toffset
- boffset

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

* Re: Left, right, top, bottom margins in a \framed box
  2009-12-26 15:18 ` Wolfgang Schuster
@ 2009-12-26 15:53   ` Oliver Buerschaper
  2010-02-20 21:15   ` Bernhard Rosensteiner
  1 sibling, 0 replies; 6+ messages in thread
From: Oliver Buerschaper @ 2009-12-26 15:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> MkIV only:
> 
> - loffset
> - roffset
> - toffset
> - boffset

Wonderful!

Many thanks,
Oliver
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Left, right, top, bottom margins in a \framed box
  2009-12-26 15:18 ` Wolfgang Schuster
  2009-12-26 15:53   ` Oliver Buerschaper
@ 2010-02-20 21:15   ` Bernhard Rosensteiner
  2010-02-21  8:54     ` Wolfgang Schuster
  1 sibling, 1 reply; 6+ messages in thread
From: Bernhard Rosensteiner @ 2010-02-20 21:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 26.12.2009 um 16:18 schrieb Wolfgang Schuster:

> 
> Am 26.12.2009 um 14:43 schrieb Oliver Buerschaper:
> 
>> Dear all,
>> 
>> I'm wondering how I can get different margins between the contents of a framed box and its left, right, top or bottom border. Somehow "offset" affects all margins simultaneously 
> 
> MkIV only:
> 
> - loffset
> - roffset
> - toffset
> - boffset
> 
> Wolfgang

Hi,

sorry for opening an old thread but with boffset key setting to a value, nothing happens.  (\(l|r|t)offset) works.

best regards
Bernhard

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

* Re: Left, right, top, bottom margins in a \framed box
  2010-02-20 21:15   ` Bernhard Rosensteiner
@ 2010-02-21  8:54     ` Wolfgang Schuster
  2010-02-21 10:33       ` Bernhard Rosensteiner
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2010-02-21  8:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Am 20.02.10 22:15, schrieb Bernhard Rosensteiner:
>>> I'm wondering how I can get different margins between the contents of a framed box and its left, right, top or bottom border. Somehow "offset" affects all margins simultaneously
>>>        
>> MkIV only:
>>
>> (l|r|t|b)offset
>>      
> sorry for opening an old thread but with boffset key setting to a value, nothing happens.  (\(l|r|t)offset) works.
>    
pack-rul.mkiv

\def\setextraframedoffsets
   {\boxhasextraoffsetfalse
    \!!framedloffset\framedparameter\c!loffset
    \!!framedroffset\framedparameter\c!roffset
    \!!framedtoffset\framedparameter\c!toffset
    \!!framedboffset\framedparameter\c!boffset\relax % <-- add \relax here
    \ifzeropt\!!framedloffset\else \advance\!!framedwidth 
-\!!framedloffset \boxhasextraoffsettrue \fi
    \ifzeropt\!!framedroffset\else \advance\!!framedwidth 
-\!!framedroffset \boxhasextraoffsettrue \fi
    \ifzeropt\!!framedtoffset\else 
\advance\!!framedheight-\!!framedtoffset \boxhasextraoffsettrue \fi
    \ifzeropt\!!framedboffset\else 
\advance\!!framedheight-\!!framedboffset \boxhasextraoffsettrue \fi}

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

* Re: Left, right, top, bottom margins in a \framed box
  2010-02-21  8:54     ` Wolfgang Schuster
@ 2010-02-21 10:33       ` Bernhard Rosensteiner
  0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Rosensteiner @ 2010-02-21 10:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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



liebe Grüße
Bernhard Rosensteiner
- brosensteiner@gmail.com -




Am 21.02.2010 um 09:54 schrieb Wolfgang Schuster:

> Am 20.02.10 22:15, schrieb Bernhard Rosensteiner:
>>>> I'm wondering how I can get different margins between the contents of a framed box and its left, right, top or bottom border. Somehow "offset" affects all margins simultaneously
>>>>       
>>> MkIV only:
>>> 
>>> (l|r|t|b)offset
>>>     
>> sorry for opening an old thread but with boffset key setting to a value, nothing happens.  (\(l|r|t)offset) works.
>>   
> pack-rul.mkiv
> 
> \def\setextraframedoffsets
>  {\boxhasextraoffsetfalse
>   \!!framedloffset\framedparameter\c!loffset
>   \!!framedroffset\framedparameter\c!roffset
>   \!!framedtoffset\framedparameter\c!toffset
>   \!!framedboffset\framedparameter\c!boffset\relax % <-- add \relax here
>   \ifzeropt\!!framedloffset\else \advance\!!framedwidth -\!!framedloffset \boxhasextraoffsettrue \fi
>   \ifzeropt\!!framedroffset\else \advance\!!framedwidth -\!!framedroffset \boxhasextraoffsettrue \fi
>   \ifzeropt\!!framedtoffset\else \advance\!!framedheight-\!!framedtoffset \boxhasextraoffsettrue \fi
>   \ifzeropt\!!framedboffset\else \advance\!!framedheight-\!!framedboffset \boxhasextraoffsettrue \fi}
> 
> Wolfgang

thanks - now it works

Bernhard


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

[-- Attachment #2: Type: text/plain, Size: 486 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] 6+ messages in thread

end of thread, other threads:[~2010-02-21 10:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-26 13:43 Left, right, top, bottom margins in a \framed box Oliver Buerschaper
2009-12-26 15:18 ` Wolfgang Schuster
2009-12-26 15:53   ` Oliver Buerschaper
2010-02-20 21:15   ` Bernhard Rosensteiner
2010-02-21  8:54     ` Wolfgang Schuster
2010-02-21 10:33       ` Bernhard Rosensteiner

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