Skip to main content

LaTeX Greeting Cards

No, no, not that kind of latex. You are pretty sick for thinking that. I am talking about LaTeX, the typesetting program. Back to greeting cards.

Anybody else hate greeting cards? The type that you buy at the store, sign and deliver even though the message is very impersonal and superficial? Yeah, those kind. I hate them very much. Not only do I hate spending time trying to find something that's mildly personal, but I hate paying for them too. $3-5 on that garbage is a travesty. Jerry Seinfeld captures my feelings towards Hallmark cards perfectly in this clip:


or this one http://www.youtube.com/v/7tq-RE_6yVo

This problem has become significant enough for me to start working on solutions. I am going to make my own cards using LaTeX.

So, I googled "LaTeX greeting cards" and came across the the gcards package. It requires that you also install the textpos and graphicx packages, if you don't have them installed already. I am working with a Linux system here.

While the gcard style sheet is intended for a "two-fold" card, my idea of a greeting card is more of a "one-fold" type.

The original example given by the author George McBane produces something like this after I included the 'showboxes' option in the gcard package.
Upon folding in half twice, you get a small greeting card. I for one prefer the more majestic card that only folds once. So, I have to modify the package to do just that.

A brute force solution would be to
  1. Remove the 'showboxes' option for gcard,
  2. Specify the size of a minipage to be half a page instead of quarter of a page.
  3. Print the outer page to one file by specifying the content for the 'outercover' and 'backcover' sections and leaving the 'insideleft' and 'insideright' sections empty.
  4. Print the inside page to another file by specifying the content for the 'insideleft' and 'insideright' sections and leaving the 'outercover' and 'backcover' sections empty.
I successfully made a few cards using the brute force approach even though the process was not fun. A cleaner and more elegant solution came to me after I read more about the textpos package. The new approach is a subject of a new post.




Comments

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

An Exercise in Obstinacy, Deception, and Self-Destruction

There is no other way to describe the policies of the current leadership in Eritrea. Please watch this appalling interview of the Eritrean President Isaias Afewerki with Riz Khan of Aljazeera and come up with your own series of adjectives to describe that incredible exchange. The fact that Eritreans are dying under the oppressive and misguided dictatorship of Isaias Afeworki frightens and saddens me very much. The fact that there is no immediate hope is downright depressing.

Victim of Asylum Roulette

Not too many stories resonate with me as much as the plight of legitimate asylum seekers whose desperate plea to find refuge in the US is ultimately decided by the questionable preference, judgment and mood of a single asylum officer (with some oversight from a regional asylum director) on one fateful day. That decision, according to numerous credible and through studies, depends largely on the location of the regional asylum center, the legal representation of the the applicant, the gender of the asylum officer just as much as the merit of the asylum case, while in fact the legitimacy of the asylum case should be the only relevant factor. This phenomenon has become so real that researchers at the Georgetown University law school have dubbed it the Refugee Roulette . Why am I so sensitive about this subject? My most devastating tragedy of late has been the denial of my legitimate and honest application for political asylum at the Chicago Asylum Office. When I applied believing the