Re: [NTG-context] Tesselating the sheet with a image
Am 21.05.2013 um 07:38 schrieb H. Özoguz : > Hi there, > > for a card game I have this macro: > > \defineoverlay[eslami][{\externalfigure[somepicture.pdf]}] > \def\esl[#1][#2][#3]{% > \startframed[frame=on,width=4.75cm,offset=overlay,align=middle,background=eslami]% > \offinterlineskip > \framed[width=4.75cm,frame=off,height=2cm]{\blank[-3mm]#1}\\ > \framed[width=4.75cm,frame=off,height=3cm]{#2}\\ > \framed[width=4.75cm,frame=off,height=2.4cm]{#3} > \stopframed} > \starttext > \esl[blub][blub][blub] > \stoptext > > which produces cards with some text (see attachment). > Now, I only want to write in the editor the commands > > \esl[blub1][blub1][blub1] > \esl[blub2][blub2[blub2] > \esl[blub3][blub3][blub3] > etc. > > and these images / overlays should be placed automatically vertically and > horizontically over the sheets, like a tesselation (and after that they will > be printed and cutted). > The order of setting the cards is not important. If one page is full, then > they should be placed automatically on the next page - but perfectly the same > way, on the same locations, like on all other pages. That is important for > cutting, each card should have two sides, so they have to match in location. > > Is there a way to do this? You can let each card produce a single page (select a small aper size, e.g. A7) and use the imposition mechanism to print many cards on paper. I wrote a while ago a imposition shame for flashcards which can be used for this. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tesselating the sheet with a image
On Wed, May 22, 2013 at 8:03 AM, "H. Özoguz" wrote: > I someone could tell me how to place images horizontally side by side, not > only vertically, then I possibly could make it with some use of \dorecurse? > > perhaps \hbox, as in \hbox {\externalfigure[picture1.pdf]\externalfigure[picture1.pdf]} ? -- luigi ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Tesselating the sheet with a image
I someone could tell me how to place images horizontally side by side, not only vertically, then I possibly could make it with some use of \dorecurse? Huseyin ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Tesselating the sheet with a image
Hi there, for a card game I have this macro: \defineoverlay[eslami][{\externalfigure[somepicture.pdf]}] \def\esl[#1][#2][#3]{% \startframed[frame=on,width=4.75cm,offset=overlay,align=middle,background=eslami]% \offinterlineskip \framed[width=4.75cm,frame=off,height=2cm]{\blank[-3mm]#1}\\ \framed[width=4.75cm,frame=off,height=3cm]{#2}\\ \framed[width=4.75cm,frame=off,height=2.4cm]{#3} \stopframed} \starttext \esl[blub][blub][blub] \stoptext which produces cards with some text (see attachment). Now, I only want to write in the editor the commands \esl[blub1][blub1][blub1] \esl[blub2][blub2[blub2] \esl[blub3][blub3][blub3] etc. and these images / overlays should be placed automatically vertically and horizontically over the sheets, like a tesselation (and after that they will be printed and cutted). The order of setting the cards is not important. If one page is full, then they should be placed automatically on the next page - but perfectly the same way, on the same locations, like on all other pages. That is important for cutting, each card should have two sides, so they have to match in location. Is there a way to do this? Thank you. Huseyin PS.: Before this mail I accidentally sent a mail with a slightly different code and a too big attachment, which awaited moderation, so it can be ignored. eslami_kartenntg.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___