Sunday, April 29, 2012

Slackware - TeX4ht, Sigil

Using the new Google blog interface for the first time here. Appears it's critical to set the line breaks in "Options", or else bloggers will have to enter <br> at the end of each and every return, even inside code listings and block quotes.

Links: Sigil source Sigil is QT; TeX4ht source No specific dependencies - compiles .tex files; Instructions for making TeX4ht .epubs

Epubs in general

Processing text files into ePub's seemed a worthy learning process. I have several files in .tex format which easily become PDF's or other formats in LaTeX, but what about reflowable formats? That is, what if one wishes to read files on a celly, Cobo, Nook, Kindle, etc? Two possibilities jumped out. Sigil appeared to be a good Linux WYSIWYG option for taking text files and making them into reflowable .epub files. But of equal importance, TeX4ht appears to do the job on .tex files. We'll start with it.

TeX4ht (LaTex)

The TeX4ht source is here. This appears to require the latest LaTeX installation to work.

Sigil (QT)

The Sigil source is available here, in .zip format. Download and unpack into a directory.

Installation - prep

README indicates it's a QT program. Dependencies (besides QT basics) are libqt4-xml, libqt4-svg, libqt4-webkit and libqt4-dev. Some of these also have dependencies. For a list of what libs I already had onboard, I checked with
$ ldconfig -p | grep libqt
Unfortunately, I had a very sparse set of QT libs installed.
$ ldconfig -p |grep libqt (libc6) => /usr/lib/qt/lib/ (libc6) => /usr/lib/qt/lib/

Subsequent to this the installer uses the dreaded cmake instead of make.

$configure prefix=/usr
$ make
# make install

No comments: