lj2latex?

Saturday, November 23rd, 2002 02:48 am
robinturner: (Default)
[personal profile] robinturner
Some time back, I had a groovy idea for writing a Perl script to convert LJ entires to LaTeX, so you could download your journal and get a beautifully typeset hard copy (Donald Knuth, Leslie Lamport and Larry Wall, I worship the ground you tread on!). Unfortunately my Perl skills are so minimal that it would take me an entire Summer vacation to do it, and during the Summer I'm normally in some Turkish holiday resort with no computer, or on my mother's computer with no Perl or LaTeX. So if any LJ Perl monks are reading this, here's a nice project for you to display your monkery: lj2latex!

Date: 2002-11-22 11:49 pm (UTC)
From: [identity profile] evan.livejournal.com
It'd be better to have an LJ -> offline program and another offline -> TeX. I actually wrote the first part a while ago in Python but I dunno if it works anymore...

Date: 2002-12-04 11:03 am (UTC)
From: [identity profile] solri.livejournal.com
Any chance of a look at the code? Not that I know Python, but I could probably adapt it or run as is if it still works. Been messing around in bash unsuccessfully today - problem is I can't get wget to glob properly, probably because diary entries are accessed by a question post rather than a straight URL.

Incidentally, downloading a month's entries in XML seems to lose the paragraph breaks.

Date: 2002-12-04 11:54 am (UTC)
From: [identity profile] evan.livejournal.com
http://neugierig.org/software/livejournal/python/

It's pretty impenetrable though. I was writing it to test it and not for anyone else to ever be able to use it (or even myself to be able to understand it).

I'll put up my Ruby code after I play with it a bit. I saw someone announce that RSS 2.0 is "good" for journal backups, so maybe I can target that.

Date: 2002-12-05 09:46 am (UTC)
From: [identity profile] solri.livejournal.com
You're right - can't make head or tail of it ;-)

Profile

robinturner: (Default)
Robin Turner

June 2014

M T W T F S S
      1
2345678
9101112131415
16171819202122
232425 26272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags