[NTG-context] Re: Asking help for better way to make tickets.

2024-01-13 Thread Jeong Dal via ntg-context
Dear Bruce and Marco,

Thank you for your suggestions. 
I think that it would be good enough to replace my code.
I learned new method which doesn’t use metaFun.

I’ll modify what you suggested for my purpose.

Thank you again.

Best regards,

Dalyoung


> 2024. 1. 13. 오전 7:38, Bruce Horrocks  작성:
> 
> 
> 
>> On 12 Jan 2024, at 14:05, Jeong Dal via ntg-context  
>> wrote:
>> 
>> Dear all,
>> 
>> I’d like to make a ticket on A4 as follows:
>> 
>> 1. Use all of A4(no margin, no header, no footer,…)
>> 2. Arange 12 tickets in the form of 3 x 4 on one page,
>> 3. Two rows are same,
>> 4. Numbers in the center of the ticket which is increasing.
>> 
>> I use the following code to make it.
>> 
>> but I think that there is a better and simpler way to do it which I don’t 
>> know.
>> 
>> I hope that someone give me a nicer way to do it.
> 
> Not sure if it is 'nicer' but I use a table to print addresses onto sticky 
> labels. The code should be fairly easy to adapt or just borrow some ideas.
>  >
> 
> —
> Bruce Horrocks
> Hampshire, UK
> 
> ___
> 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 
> ___

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


[NTG-context] Re: Asking help for better way to make tickets.

2024-01-12 Thread Bruce Horrocks


> On 12 Jan 2024, at 14:05, Jeong Dal via ntg-context  
> wrote:
> 
> Dear all,
> 
> I’d like to make a ticket on A4 as follows:
> 
> 1. Use all of A4(no margin, no header, no footer,…)
> 2. Arange 12 tickets in the form of 3 x 4 on one page,
> 3. Two rows are same,
> 4. Numbers in the center of the ticket which is increasing.
> 
> I use the following code to make it.
> 
> but I think that there is a better and simpler way to do it which I don’t 
> know.
> 
> I hope that someone give me a nicer way to do it.

Not sure if it is 'nicer' but I use a table to print addresses onto sticky 
labels. The code should be fairly easy to adapt or just borrow some ideas.


—
Bruce Horrocks
Hampshire, UK

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


[NTG-context] Re: Asking help for better way to make tickets.

2024-01-12 Thread Marco Patzer
On Fri, 12 Jan 2024 23:05:14 +0900
Jeong Dal via ntg-context  wrote:

> I’d like to make a ticket on A4 as follows:
> 
> 1. Use all of A4(no margin, no header, no footer,…)
> 2. Arange 12 tickets in the form of 3 x 4 on one page,
> 3. Two rows are same,
> 4. Numbers in the center of the ticket which is increasing.
> 
> I use the following code to make it.

Here's a suggestion:

\definepapersize
  [jeong]
  [width=67mm,
   height=73mm]

\setuppapersize
  [jeong]
  [A4]

\setuppaper
  [nx=3, ny=4,
   dx=4.4mm, dy=1.5mm]

\setuparranging
  [XY]

\setuplayout
  [page]

\setuppagenumbering
  [state=stop]

\setupmakeup
  [standard]
  [align=middle]

\setupblank
  [2*line]

\showframe
\starttext
  \dorecurse{12}{%%
\startstandardmakeup
Text \blank
{\tfd\recurselevel} \blank
Text
\stopstandardmakeup
\page}
\stoptext

That's how I'd approach it. Not sure if it meets all your
requirements, though.

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