ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: question about frames
@ 2020-11-26 21:24 Andres Conrado Montoya
  0 siblings, 0 replies; 8+ messages in thread
From: Andres Conrado Montoya @ 2020-11-26 21:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

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

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

* Re: question about frames
  2020-11-26 21:03   ` Pablo Rodriguez
@ 2020-11-26 22:29     ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2020-11-26 22:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: question about frames
@ 2020-11-26 21:27 Andres Conrado Montoya
  0 siblings, 0 replies; 8+ messages in thread
From: Andres Conrado Montoya @ 2020-11-26 21:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Disregard that... that is the default... it doesn't work as I thought
initially. Sorry for the noise.

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

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

* Re: question about frames
  2020-11-26 16:26 ` Wolfgang Schuster
@ 2020-11-26 21:03   ` Pablo Rodriguez
  2020-11-26 22:29     ` Hans Hagen
  0 siblings, 1 reply; 8+ messages in thread
From: Pablo Rodriguez @ 2020-11-26 21:03 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: question about frames
  2020-11-25 21:43 Pablo Rodriguez
  2020-11-26  8:42 ` Henning Hraban Ramm
@ 2020-11-26 16:26 ` Wolfgang Schuster
  2020-11-26 21:03   ` Pablo Rodriguez
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2020-11-26 16:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

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
___________________________________________________________________________________

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

* Re: question about frames
  2020-11-26  8:42 ` Henning Hraban Ramm
@ 2020-11-26 15:40   ` Pablo Rodriguez
  0 siblings, 0 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2020-11-26 15:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: question about frames
  2020-11-25 21:43 Pablo Rodriguez
@ 2020-11-26  8:42 ` Henning Hraban Ramm
  2020-11-26 15:40   ` Pablo Rodriguez
  2020-11-26 16:26 ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2020-11-26  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez <oinos@gmx.es>:
> 
> 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
___________________________________________________________________________________

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

* question about frames
@ 2020-11-25 21:43 Pablo Rodriguez
  2020-11-26  8:42 ` Henning Hraban Ramm
  2020-11-26 16:26 ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Pablo Rodriguez @ 2020-11-25 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-11-26 22:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 21:24 question about frames Andres Conrado Montoya
  -- strict thread matches above, loose matches on Subject: below --
2020-11-26 21:27 Andres Conrado Montoya
2020-11-25 21:43 Pablo Rodriguez
2020-11-26  8:42 ` Henning Hraban Ramm
2020-11-26 15:40   ` Pablo Rodriguez
2020-11-26 16:26 ` Wolfgang Schuster
2020-11-26 21:03   ` Pablo Rodriguez
2020-11-26 22:29     ` 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).