Skip to main content

LaTeX Greeting Cards - New and Improved

... Disaster has struck and the post I had spent a whole day on has vanished because of some incompatibility between Blogger and Microsoft SkyDrive embedding. I will try to recap the contents of that post briefly anyways.

The original gcard style sheet is intended for making a small greeting card that gets folded twice, as shown in my previous post. I would like to modify the style sheet to produce a card that gets folded only once. It will have some content on the outside as well as inside. In addition, I want to add features like background image and other figures to make the cards more appealing.

Going from a double fold to a single fold

That requires that you make the following changes in the file gcard.sty.

1) Double the panel height.
%\setlength{\panelheight}{(\paperheight-2\gctopmargin-2\gcbottommargin)/2}
\setlength{\panelheight}{(\paperheight-2\gctopmargin-2\gcbottommargin)}
2) Push the inside pages to their respective location next page.
%\begin{textblock*}{\panelwidth}(0pt,\TPVertModule)
\begin{textblock*}{\panelwidth}(0pt,0pt)
.
.
.
%\begin{textblock*}{\panelwidth}(\TPHorizModule,\TPVertModule)
\begin{textblock*}{\panelwidth}(\TPHorizModule,0pt)
To the TeX source, you would need to insert the following like right between the 'backcover' and 'insideleft' sections.
\null\newpage


Inserting a Background

In the TeX source file, include this code before the \begin{document}.
\usepackage{eso-pic}
\newcommand\BG{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio,angle=180]{BG.jpg}
\vfill
}}}

\usepackage{eso-pic}
\newcommand\BG1{
\put(0,0){
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,keepaspectratio,angle=0]{BG.jpg}
\vfill
}}}
Right after \begin{document}, add this line
\AddToShipoutPicture{\BG}
Add this line right between the 'backcover' and 'insideleft' sections.
\AddToShipoutPicture{\BG1}



Inserting Images
Images can be inserted as follows.
\includegraphics[width=5.00in,keepaspectratio,angle=0]{Image.jpg}


It might be time for me to share a card I have created using the above-mentioned principles.

PDF:: TEX:: STY::


Enjoy

Comments

Anonymous said…
Cool. I'm glad to see somebody using gcard. (You're the second I know about!)

Agreed, on the "I don't really like
the commercial ones."

Enjoy the ware...
Anonymous said…
Thanks for preparing gcard, George.
I have enjoyed using it to make all sorts of cards. I have made so many thank you notes, happy b-day cards, mother's and father's day cards ...etc to give to friends and family.
Berhin
Wendy said…
Hi, I was hoping to download your latex greeting card example and use it to make my own wedding invite. However, the link is not working for me. Please help!

thanks!
Wendy
Erdem said…
Hi,
both gcard and this website enabled me to prepare a nice wedding card.
To note, the addition of rotating package enables some further flexibility.
I used the first foo box example from the rotating package manual:
Thank you :)

---------------
\documentclass[12 pt,landscape]{article}
\usepackage{palatino}
\usepackage[dvips]{geometry}
\usepackage[showboxes]{gcard}
\usepackage{rotating}

\begin{document}

\newsavebox{\foo}
\savebox{\foo}{\parbox{1in}{\centering
Your message}}%

\newsavebox{\front}
\savebox{\front}{\parbox{1in}{\centering
Your front box message}}%


\begin{frontcover}
\huge
\centering
\begin{turn}{90}\usebox{\front}\end{turn}

\end{frontcover}


\begin{insideright}
\huge
\centering

\begin{turn}{90}\usebox{\foo}\end{turn}

\end{insideright}

\begin{insideleft}
\null\newpage
\end{insideleft}

\end{document}

Popular posts from this blog

Slow Acroread Startup in OpenSuSe 11.0

It takes more than 30 seconds for acroread to load on my Opensuse machine the first time and the startup time gets shorter in subsequent attempts. Why? This is not the first time I have come across this problem of slow application startups in OpenSuse. Apparently a lot of people had encountered this problem and they found a simple solution - uninstalling the version of acroread that comes with OpenSuse and installing one from Adobe site yourself. Fortunately, that prescription seems to have solved the problem. My acroread startup time is a few seconds now. Why does a very good Linux distribution like OpenSuse with its wide support and following make so many of these mistakes?!?! Over the years, I have seen Suse/OpenSuse sending buggy distributions that make you wonder if they do much testing before releasing their distro. Here are a few bugs I have come across: The extremely slow startup of Openoffice in OpenSuse 10.0 was one of the reasons I switched to Fedora Core for a while...

The Pervasive Mac vs. Windows vs. Linux Analogy

I'm sure everyone has seen the Mac vs. PC ads on TV where the Mac appears to be confident while th PC is in denial about its deficiencies. Missing from that picture is Linux which is robust, but seeks no attention because it has no commercial ambitions. This Mac vs. PC vs. Linux model can serve as a analogy for many things/phenomena. I would like to make a list of those analogies here. For example, The New York Times recently characterized Hillary as a PC and Obama as a mac on the basis of the design of their websites. The analogy would also work if you think of Hillary as the status quo much like Windows, and Obama as the new thing with great promise, cachet and appeal like the newly reborn mac. It is not obvious who would play the role of Linux, but my choice would be Ron Paul. He has some bold and independent ideas along with a very loyal following even though he has no chance of winning. PC Mac Linux Candidate Hillary Clinton Barack Obama Ron Paul States Northeast West Co...

Movies for the Idle Mind

Wondering how I fill my idle hours and days? Among other things, I watch a few movies here and there. Here is a list I downloaded using Bittorrent and am watching at the pace of a movie non-enthusiast. The rating for the movies I have already watched are shown while it is left empty for the others. Woody Allen:: # MOVIE MY RATING ( /10) 1 Annie Hall 10 2 Manhattan 8 3 Hannah and Her Sisters 9 4 Love and Death 8 5 Deconstructing Harry 6 6 Match Point 5 7 Antz 8 8 Play it Again, Sam 8 9 Husbands and Wives 10 The Purple Rose of Cairo 11 Everything You Wanted to Know about Sex, But Were Afraid To Ask OTHER:: # MOVIE MY RATING ( /10) 1 Citizen Kane 7 2 Eternal Sunshine of a Spotless Mind 9 3 The Pursuit of Happyness 6 4 About Schmidt 5 5 The Royal Tenenbaums 10 6 Rushmore 7 7 The Big Lebowski 9 8 Monty Python and the Holy Grail 7 9 Ed Wood 8 10 Broken Flowers 8 11 Basketball Diaries 8 12 Crash 13 The Clockwork Orange 14 City of God 15 The Science of Sleep 16 La Dolce Vita 17...