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

Correlation Between Taxes and Social/Economic Programs

I have always wondered if the taxes people pay correlate with the availability of social and economic programs and safety nets, not to mention the military programs that protect them. This idea comes in light of the notion that Europeans are highly taxed compared to their American counterparts, but they seem to have access to free (or almost free) education and health care while the US provides neither. The Europeans live and work at a more leisurely pace than Americans and they have the comfort of knowing that their government has put safety nets in case a disaster. The Europeans do a lot to ensure that all their citizens have comparable opportunities, and thus you are less likely to see a huge gap between the poor and the rich. Perhaps the lack of incentive to excel has stifled entrepreneurship and innovation in Europe to some extent. In fact, Europe has historically high unemployment rates than the US and the size of government there is significantly larger than that of the US....

2001 Recession Deferred for 2008?

Most people remember the Dot-Com bubble of the 1990s that peaked in 2000 before bursting in 2001-2003. Considering how the NASDAQ composite lost more than 60% of its value by 2001 alone, the country was about to go into a recession. The 9/11 attacks made things worse too. As the impact of 9/11 and Dot-Com bust were about to pull the country into a recession, another bubble came to the rescue. It was the housing bubble that deferred a sure recession and kept the US in an era of faux prosperity. It gave Bush a reason to soldier on with flawed economic policies as the housing bubble gave the impression that the good economic progress of the Clinton years were being sustained through Bush's years. This time though, there does not appear to be another bubble ready to bail the US out of the recession it is in. After suffering through the I.T. and housing bubbles in just a decade, I don't think investors and people in general will be adventurous enough to create another bubbl...

Linux Tips and Solutions

PROBLEM: Audacious on K/Ubuntu Doesn't play my mp3s:: On my kubuntu 8.04.1 audacious is not playing any audiofile. I've tried to run my mp3s with amarok and it works. Also audacity is playing mp3s. SOLUTION: Click on Preferences in Audacious; Select Audio Tab; Set the 'cCurrent output plugin' to 'aRts output plugin'. __________________________________________________________ PROBLEM: File associations in Firefox 3.0 disappear in Kubuntu SOLUTION: Install firefox-3.0-gnome-support . . . more to come