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

Online Storage Solutions

Problem: I often need to have some files readily available online so that I can access them from any computer. There are many ways to go about solving this problem and each comes with its set of shortcomings: Yahoo! Briefcase - 30MB limit Online storage services like Box.net, Xdrive, MediaMax - usually cost money; signing up is cumbersome Email to myself as an attachment - enough said there It's time to find a home-made solution. The solution I am about to suggest is intended for -- A *NIX user someone with access to a *NIX web server Solution: I am a linux user and I have user level access to a web server. The web server is configured such that the public does not have access to directory structure. So, I would need to write a script that copies my files to the web server and creates an index listing my files. Password protection of the storage would follow after that. Client Side: Use the following script to transfer file to server, make the file readable by public and execu...

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...