W3C home > Mailing lists > Public > spec-prod@w3.org > April to June 2004

Re: Transforming XHTML to LaTeX and BibTeX

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 12 May 2004 10:29:44 +0100
Message-Id: <200405120929.KAA12957@penguin.nag.co.uk>
To: duerst@w3.org
Cc: connolly@w3.org, spec-prod@w3.org, sean@mysterylights.com


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


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Wednesday, 12 May 2004 05:41:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:19:13 GMT