Re: [NTG-context] question about frames

2020-11-26 Thread Hans Hagen

On 11/26/2020 10:03 PM, Pablo Rodriguez wrote:

On 11/26/20 5:26 PM, Wolfgang Schuster wrote:

Pablo Rodriguez schrieb am 25.11.2020 um 22:43:

[...]
Which is the way to avoid any vertical space between frames?


Variant 1:

 \offinterlineskip}


Many thanks for your reply, Wolfgang.

As always, your solution is straight to the point and works like a
charm. And it’s also highly instructive.

This is the first time I see \offinterlineskip. Thanks to “TeX for the
Impatient”, I see that this is a TeX command.


beware, it's a macro, not a primitive (and context has a bit different 
definition)


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
___


Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
A bit late to the party but maybe this helps... try "frameoffset":

\defineframed[caja][frameoffset=\zeropoint,width=5cm,height=2cm]
\starttext
\dorecurse{5}{\caja[frame=on]{Hello}}
\stoptext

-- 
Andrés Conrado Montoya
___
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
___


Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
Disregard that... that is the default... it doesn't work as I thought
initially. Sorry for the noise.
___
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
___


Re: [NTG-context] question about frames

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 5:26 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 25.11.2020 um 22:43:
>> [...]
>> Which is the way to avoid any vertical space between frames?
>
> Variant 1:
>
> \offinterlineskip}

Many thanks for your reply, Wolfgang.

As always, your solution is straight to the point and works like a
charm. And it’s also highly instructive.

This is the first time I see \offinterlineskip. Thanks to “TeX for the
Impatient”, I see that this is a TeX command.

> Variant 2:
>
> \setuparranging
>[XY]

I wonder whether arranging is a more proper way of doing labels.

Maybe I’m too lazy, but I see this variant also as a more complex way to
achieve it.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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
___


Re: [NTG-context] question about frames

2020-11-26 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 25.11.2020 um 22:43:

Dear list,

here is a minimal sample of frames to make up labels:

   \setuplayout[page]
   \starttext
   \dorecurse{16}{\dontleavehmode\dorecurse{4}
   {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
   \stoptext

Which is the way to avoid any vertical space between frames?


Variant 1:

\setuplayout
  [page]
  [backspace=5mm,
   topspace=10mm]

\setuplayout
  [page]

\starttext

\dorecurse{14}
  {\dontleavehmode
   \dorecurse{4}
 {\framed[width=5cm,height=2cm]{}}%
   \par
   \offinterlineskip}

\stoptext

Variant 2:

\definepapersize
  [etikett]
  [width=5cm,
   height=2cm]

\setuppapersize
  [etikett] [A4]

\setuplayout
  [page]

\setuppaper
  [nx=4,
   ny=14]

\setuppaper
  [dx=1sp,
   dy=1sp,
   backspace=5mm,
   topspace=10mm]

\setuparranging
  [XY]

\setuplayout
  [location=middle]

\starttext

\dorecurse{56}
  {\framed[width=max,height=max]{}}

\stoptext

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 9:42 AM, Henning Hraban Ramm wrote:
>> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez:
>> [...]
>> Which is the way to avoid any vertical space between frames?
>>
>> Sorry, this may be obvious, but I don’t know how to do it now.
>
> try offset=overlay
> don’t know if that goes all the way.

Many thanks for your reply, Hraban.

I’m afraid that offset is related to the space between frame and its
content.

Or at least, I couldn’t make it work.

> How about \blank[none,back,disable]?

Nope. But this contains the key to the solution.

\blank[-0.395mm] corrects the extra vertical space between frames in
this case.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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
___


Re: [NTG-context] question about frames

2020-11-26 Thread Henning Hraban Ramm


> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez :
> 
> Dear list,
> 
> here is a minimal sample of frames to make up labels:
> 
>  \setuplayout[page]
>  \starttext
>  \dorecurse{16}{\dontleavehmode\dorecurse{4}
>  {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\}
>  \stoptext
> 
> Which is the way to avoid any vertical space between frames?
> 
> Sorry, this may be obvious, but I don’t know how to do it now.

try offset=overlay
don’t know if that goes all the way.
How about \blank[none,back,disable]?

Hraban
___
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
___