On 13 Nov 2013, at 18:40, Andreas Triantafillidis <[log in to unmask]> wrote:
> i would appreciate any suggestions for articles, posts, software, books (!), etc related to transforming (?) and formatting TEI documents via LaTeX
The XSL stylesheets at https://github.com/TEIC/Stylesheets/ implement a reasonably complete
transformation of TEI to LaTeX. I am never _very_ happy with them, because they are half way between
using TeX as a formatting engine (doing a lot of the work in XSL), and generating high-level
LaTeX (and doing a lot of work in LaTeX macros). I probably verge towards the latter, generating
LaTeX closer to what a human would write, and depending on LaTeX packages. So, for example,
I (and a few other people) do presentations by writing simple TEI XML and converting it to input for
the excellent LaTeX "beamer" package, where all the look and feel is dictated by beamer.
The TEI Guidelines PDF version is prepared using TEI to LaTeX, FWIW.
I don't think there are special magic tricks about XML to LaTeX - it's mostly obvious, if you know
going from LaTeX back to XML? yurgh. It's "easy", _if_ you have very constrained LaTeX,
but I never met a LaTeX author yet who didn't descend into low-level trickery, lazy
use of presentation markup, and abuse of features. Systems like TeX4ht will do the job
for you, on a good day, with a following wind.
As ever, it all depends what you're trying to achieve.
Director (Research) of Academic IT
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431