Tuesday, August 19, 2008

Back from Chicago

I'm back from the URSI GA in Chicago and back in the office. While I was in Chicago, I wrote a little program to auto-generate a bingo board in LaTeX for a little game I dreamt up. While that program will probably not see the light of day, it inspired me to write something else.

I've been frustrated with the user un-friendliness of existing scripts to generate a sheet suitable for use at a key signing party. This frustration led me to write a program that uses libcryptui to select keys for the sheet and inserts them into a table in LaTeX. It's now at a usable point so I thought I would make it available:

signingparty.c

Compile with: gcc -o signingparty signingparty.c `pkg-config --cflags --libs gtk+-2.0` `pkg-config --cflags --libs dbus-1` `pkg-config --cflags --libs cryptui-0.0` -D LIBCRYPTUI_API_SUBJECT_TO_CHANGE -g -Wall


An example of the output is party.tex

And the processed PDF party.pdf

Obligatory Screenshot:


TODO:
* Strip comments from display names (what's in parenthesis normally)
* Fix table grid lines (Help from a LaTeX guru would be appreciated)
* Auto-process LaTeX to PDF (via Rubber)

1 comment:

ondrew said...

Hi,

you have to use the multirow package. You're basically inserting linefeed in a table and latex isn't expecting it. Therefore the lines are not connected.

I pasted the solution to http://pasteall.org/2125/latex

Ondra