ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Tent style cards
@ 2019-12-21 22:08 Pavneet Arora
  2019-12-22  7:24 ` Pablo Rodriguez
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pavneet Arora @ 2019-12-21 22:08 UTC (permalink / raw)
  To: ntg-context

Hello.

I am trying to do up some tent style table place holder cards for my 
daughter's wedding, and have been wracking my brain for a solution for a 
couple of days now.

Having tried many alternatives, this is the closest I have come up with.  
But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring 
works, but I only need tent style (1*2 head-to-head) so that I can trim 
to size.

Any template that could be suggested would be most helpful as the 
wedding is on Mon (yikes!).

advTHANKSance.

>>>MWE<<<

\definepapersize[tblcard][width=4in,height=3in]

\setuppapersize[tblcard][letter,portrait]
\setuparranging[2TOP]

\setuplayout[
    height=3in,
    width=4in,
    topspace=0in,
    header=0in,
    bottomspace=0in,
    footer=0in,
    backspace=0.0in,
    %%
    location=middle,
    marking=on,
]

\startbuffer[tblcard]
    \strut
    \tfd A Name
\stopbuffer

\starttext
    \showframe
    \adaptpapersize[tblcard,mirrored][letter,portrait]\getbuffer[tblcard]
    \page
    \getbuffer[tblcard]
\stoptext

-- 
Pavneet Arora           m: +1 647-406-6843
Waroc Informatik        e: pavneet_arora@waroc.com
___________________________________________________________________________________
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] 6+ messages in thread

* Re: Tent style cards
  2019-12-21 22:08 Tent style cards Pavneet Arora
@ 2019-12-22  7:24 ` Pablo Rodriguez
  2019-12-22 10:08 ` Wolfgang Schuster
  2019-12-22 10:23 ` Wolfgang Schuster
  2 siblings, 0 replies; 6+ messages in thread
From: Pablo Rodriguez @ 2019-12-22  7:24 UTC (permalink / raw)
  To: ntg-context

On 12/21/19 11:08 PM, Pavneet Arora wrote:
> Hello.
>
> I am trying to do up some tent style table place holder cards for my
> daughter's wedding, and have been wracking my brain for a solution for a
> couple of days now.
>
> Having tried many alternatives, this is the closest I have come up with.
> But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
> works, but I only need tent style (1*2 head-to-head) so that I can trim
> to size.
>
> Any template that could be suggested would be most helpful as the
> wedding is on Mon (yikes!).

Hi Paavnet,

I think this could achieve what you might need:

    \definepapersize[tblcard][width=4in,height=3in]

    \setuppapersize[tblcard][letter,portrait]
    \setuparranging[2TOP]

    \setuplayout[
        height=3in,
        width=4in,
        topspace=0in,
        header=0in,
        bottomspace=0in,
        footer=0in,
        backspace=0.0in,
        %%
        location=middle,
        marking=on,
    ]

    \startbuffer[tblcard]
        \startframedtext
            [frame=off, width=\textwidth, height=\textheight,
              align={lohi, middle}]
            \tfd A Name
        \stopframedtext
    \stopbuffer

    \starttext
        %~ \showframe
        \rotate[rotation=180]{\getbuffer[tblcard]}
        \page
        \getbuffer[tblcard]
    \stoptext

I hope it goes on time ;-),

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

* Re: Tent style cards
  2019-12-21 22:08 Tent style cards Pavneet Arora
  2019-12-22  7:24 ` Pablo Rodriguez
@ 2019-12-22 10:08 ` Wolfgang Schuster
  2019-12-22 14:53   ` Pavneet Arora
  2019-12-22 10:23 ` Wolfgang Schuster
  2 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2019-12-22 10:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pavneet Arora

Pavneet Arora schrieb am 21.12.2019 um 23:08:
> Hello.
>
> I am trying to do up some tent style table place holder cards for my
> daughter's wedding, and have been wracking my brain for a solution for a
> couple of days now.
>
> Having tried many alternatives, this is the closest I have come up with.
> But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
> works, but I only need tent style (1*2 head-to-head) so that I can trim
> to size.
>
> Any template that could be suggested would be most helpful as the
> wedding is on Mon (yikes!).

There is a arrangement style but it's meant for doublesided cards.

\setuppapersize[A6,landscape][A5]

\setuparranging[1*2-Conference]

\setuppagenumbering[location=]

\starttext
\dorecurse{2}{\centerbox{\tfd Insert Name}}
\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] 6+ messages in thread

* Re: Tent style cards
  2019-12-21 22:08 Tent style cards Pavneet Arora
  2019-12-22  7:24 ` Pablo Rodriguez
  2019-12-22 10:08 ` Wolfgang Schuster
@ 2019-12-22 10:23 ` Wolfgang Schuster
  2019-12-22 10:32   ` Hans Hagen
  2 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2019-12-22 10:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pavneet Arora

Pavneet Arora schrieb am 21.12.2019 um 23:08:
> Hello.
>
> I am trying to do up some tent style table place holder cards for my
> daughter's wedding, and have been wracking my brain for a solution for a
> couple of days now.
>
> Having tried many alternatives, this is the closest I have come up with.
> But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
> works, but I only need tent style (1*2 head-to-head) so that I can trim
> to size.
>
> Any template that could be suggested would be most helpful as the
> wedding is on Mon (yikes!).

Simple solution:

\starttexdefinition TableCard #1

     \setupTABLE [start] 
[frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]
     \setupTABLE [row]   [1] [orientation=180]
    %\setupTABLE [start]     [leftframe=on,rightframe=on]
    %\setupTABLE [row]   [1] [topframe=on]
    %\setupTABLE [row]   [2] [bottomframe=on]

     \bTABLE
         \bTR
             \bTD
                 #1
             \eTD
         \eTR
         \bTR
             \bTD
                 #1
             \eTD
         \eTR
     \eTABLE

\stoptexdefinition


\starttext
\TableCard{Insert Name}
\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] 6+ messages in thread

* Re: Tent style cards
  2019-12-22 10:23 ` Wolfgang Schuster
@ 2019-12-22 10:32   ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2019-12-22 10:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pavneet Arora

On 12/22/2019 11:23 AM, Wolfgang Schuster wrote:
> Pavneet Arora schrieb am 21.12.2019 um 23:08:
>> Hello.
>>
>> I am trying to do up some tent style table place holder cards for my
>> daughter's wedding, and have been wracking my brain for a solution for a
>> couple of days now.
>>
>> Having tried many alternatives, this is the closest I have come up with.
>> But mirroring doesn't work.  If I use \setuparranging[2*4] mirroring
>> works, but I only need tent style (1*2 head-to-head) so that I can trim
>> to size.
>>
>> Any template that could be suggested would be most helpful as the
>> wedding is on Mon (yikes!).
> 
> Simple solution:
> 
> \starttexdefinition TableCard #1
> 
>      \setupTABLE [start] 
> [frame=off,width=4in,height=3in,align={middle,lohi},style=\tfd]
>      \setupTABLE [row]   [1] [orientation=180]
>     %\setupTABLE [start]     [leftframe=on,rightframe=on]
>     %\setupTABLE [row]   [1] [topframe=on]
>     %\setupTABLE [row]   [2] [bottomframe=on]
> 
>      \bTABLE
>          \bTR
>              \bTD
>                  #1
>              \eTD
>          \eTR
>          \bTR
>              \bTD
>                  #1
>              \eTD
>          \eTR
>      \eTABLE
> 
> \stoptexdefinition
> 
> 
> \starttext
> \TableCard{Insert Name}
> \stoptext

Now that's one for Pavneets upcoming context cookbook project, after the 
wedding is done,

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

* Re: Tent style cards
  2019-12-22 10:08 ` Wolfgang Schuster
@ 2019-12-22 14:53   ` Pavneet Arora
  0 siblings, 0 replies; 6+ messages in thread
From: Pavneet Arora @ 2019-12-22 14:53 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 2048 bytes --]

Many thanks Wolfgang and Pablo.

And, Hans, I have already included this example for the Cookbook (with 
the three differing solution), as you will see from the path name of the 
attached PDF :).

Wolfgang, I just used your first solution, and it worked great.  I don't 
know whether the mailing-list daemon will let through a PDF, but I am 
enclosing the current (almost final) version of the table place card 
(with my daughter's name).

The figure to the left is an Apollonius Gasket of tangential circles 
made with MetaPost signifying all the family connections that each 
partner brings in creating a new union.  The code is from Denis Roegel, 
who quickly responded when I was unable to piece together a working 
example from his 2005 TUGboat article:

https://www.tug.org/TUGboat/tb26-1/tb82roegel.pdf

I've resorted to layers with explicit positioning for now, as well as 
having to compile the MetaPost explicitly and then hand edit out all 
references to cmmr in the resulting PS, but at least I have a working 
template.

If there are other suggestions to better optimize, I'm all ears.  In 
particular I would like to place each name vertically centred in right 
one-third of the card, as well as using \startuseMPgraphic for direct 
compilation from ConTeXt.

Many thanks for all the help.

>>> SNIPPET <<<

\startbuffer[tblcard]
    \strut
    \definelayer[tblplacecard]
    \setlayer[tblplacecard][x=-1em,y=1em]{%
        \externalfigure[figures/apollonius/apollonius.103][width=2.0in]}
    \switchtobodyfont[nameface]
    \setlayer[tblplacecard][x=10em,y=3.0em]%
        {\tfg\it\color[orangered]{Vidya}}
    \flushlayer[tblplacecard]
\stopbuffer

\starttext
    \setupcolors[state=start]

    %%% 1. Show the frame and layout information.
    \showframe
    %\showsetups
    %\showlayout

    \getbuffer[tblcard]
    \page
    \getbuffer[tblcard]
\stoptext

On 22Dec19, Wolfgang Schuster wrote:
>
> \setuparranging[1*2-Conference]

-- 
Pavneet Arora           m: +1 647-406-6843
Waroc Informatik        e: pavneet_arora@waroc.com

[-- Attachment #2: tblplacecards.pdf --]
[-- Type: application/pdf, Size: 35282 bytes --]

[-- Attachment #3: 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] 6+ messages in thread

end of thread, other threads:[~2019-12-22 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-21 22:08 Tent style cards Pavneet Arora
2019-12-22  7:24 ` Pablo Rodriguez
2019-12-22 10:08 ` Wolfgang Schuster
2019-12-22 14:53   ` Pavneet Arora
2019-12-22 10:23 ` Wolfgang Schuster
2019-12-22 10:32   ` 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).