Martin Duerst | 12 May 2004 05:31
Picon
Favicon

Re: Transforming XHTML to LaTeX and BibTeX


Hello Dan,

This  is great. It may turn out to be an excellent replacement
for older html2ps solutions, which as far as I know suffer
hopelessly in terms of I18N.

With your solution, what would be needed would be to use
Omega/Lambda (Unicode versions) instead of TeX/LaTeX.
Maybe I should give it a try once I have a new machine.

Regards,    Martin.

At 16:17 04/05/06 -0500, Dan Connolly wrote:

>Necessity is the mother of invention...
>
>
>   Transforming XHTML to LaTeX and BibTeX
>   Dan Connolly
>   $Revision: 1.13 $ of $Date: 2004/05/06 21:09:14 $
>   http://www.w3.org/2004/04/xhlt91/
>
>   Abstract
>
>   We transform XHTML to LaTeX and BibTeX to allow technical articles
>   to be developed using familiar XHTML authoring tools and
>   techniques.
>
>It was originally developed to turn
(Continue reading)

David Carlisle | 12 May 2004 11:29
Picon
Favicon

Re: Transforming XHTML to LaTeX and BibTeX


Martin

  With your solution, what would be needed would be to use
  Omega/Lambda (Unicode versions) instead of TeX/LaTeX.

Nothing would be needed: the character data in Dan's stylesheet just
"drops through" to latex so it will by default do the wrong thing there
(sorry, TeX has this in built bias towards 1970's US-English:-)
Although you could load one of the utf8 packages which will deal with
many cases of utf8 documents even using standard TeX, or should just
"drop through" to omega and do the right thing by default if omega is used.

While such a stylesheet is useful if you have some hand authored xhtml
it relies on some very special conventions and magic comments (for table
layout) so it's not a general xhtml to latex convertor. If you are having
to write the document specifcally for this tool you seem to get more
benefits from XML if you author in some other format rather than xhtml
so that you  can get much better automated procesing of cross refs etc,
you can then generate the xhtml and latex in parallel from this
source. Styles to go to xhtml and latex from the w3c's xmlspec dtd
markup are in the mathml REC distribution, for example.

David

--

-- 
The LaTeX Companion
  http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996
  http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-7257897-0619804

(Continue reading)


Gmane