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

Distribution of Wealth in the US

The rich get richer and the poor get poorer. I heard this statement quite a bit lately particularly in light of the sub-prime mortgage and general housing crisis in the US. The country has enjoyed significant economic prosperity and both Clinton and Bush boasted economic growth under their reign. Unfortunately, the beneficiaries of the economic boom are not people from all economic backgrounds, but rather the top 10%. To make things worse, Bush gave tax cuts mainly targeting the top 10%. Being more of a numbers guy, I always wanted showing the validity of the-rich-get-richer-n-the-poor-get-poorer statement. Thanks to Wikipedia , I have finally found it!! Both the mean and median net worth of families for the bottom 50% of the population has remained absolutely flat while the 75th-90th percentile see a decent growth and the top 10% enjoy the most appreciation on their net worth. So, if you factor in inflation, the-rich-get-richer-n-the-poor-get-poorer probably holds true. The g...

IPtables, SVN, and NMAP

I reviewed some material on IPtables, SVN, and NMAP just for the sake of keeping my mind busy. Here are some useful notes: IPtables - best resource found at HERE SVN - best, as in the quickest and simplest intro could be found HERE NMAP - I honestly don't see in using it for more than port-scanning in a few instances. Anyway, here are a few other options that might come in handy at some point. nmap -sT/sS/ sX/sF/...[-P0] IPADDRESS(range) == to check which ports are open nmap -sP IPADDRESS(range) == a simple ping scan for availability nmap -sO IPADDRESS(range) == check what IP protocols are available nmap -sV IPADDRESS(range) == a scan with version detection Other useful flags: -O == detects OS, part of -v (verbosity) flag as well -A == detects OS and versions -v == request high verbosity/detail -F == performs a fast scan of only a few common ports Installing Perl modules Perl modules may be installed using the CPAN module or from source. SOURCE...

Reasons to Vote for Barack Obama

Not that I am eligible to vote or anything ... but if I could, I would vote for Barack Obama for the following reasons. He listens to experts . He has assembled a group of smart and practical intellectuals to advise him on all sorts of topics. Hillary has her own agenda and ambition which appears to keep her from entertaining any "elitist" agenda. He is a good manager. The way he hired very intelligent people to run a nearly flawless campaign to beat an established and seemingly unbeatable opponent in Hillary Clinton is commendable. He really knows how to surround himself with a smart group of people who can get things done and that is exactly what this country needs. Hillary hired people on the basis of their loyalty and counted on friends of the Clintons to win her the nomination. Unfortunately, all that influence and political capital could not overcome the grassroots movement Obama initiated. He is not an ideologue . That allows him to make good decisions for this...