Re: [NTG-context] Tent style cards
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 Informatike: pavneet_ar...@waroc.com tblplacecards.pdf Description: Adobe PDF document ___ 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] Tent style cards
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 ___
Re: [NTG-context] Tent style cards
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 ___
Re: [NTG-context] Tent style cards
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 ___
Re: [NTG-context] Tent style cards
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 ___
[NTG-context] Tent style cards
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 Informatike: pavneet_ar...@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 ___