Le 31/10/2012 12:48, Robin Fairbairns a �crit :
> Axel Berger <Axel....@Gmx.De> writes:
>
>> greenux wrote:
>>> Now, I'm not allowed to use this package in the final latex source
>>> version. Therefore I would like to create a "deparsed" version.
>>
>> I don't know what you're using, but for me this would be a typical job
>> for the editor. One editor script of mine does far more complicated
>> stuff in translating automatically generated TeX code to HTML. A simple
>> RegEx replace suffices in your case.
>
> don't know about simple -- greenux was (aiui) merely showing us an
> example. (though the example, as you say, would succumb to a rather
> simple regex.)
>
> fwiw, the uk faq is written in (slightly constrained) latex, and is
> translated (using a perl file containing a rather large bunch of
> regexes) to html. in current usage, this happens on the fly in the cgi
> code that handles
www.tex.ac.uk/faq
>
Interesting.
By the way TeX is also able to translate anything to HTML, if properly
set up. It just writes its output to an \openout file.
Such a use of the TeX engine is obviously not LaTeX. But if the source
is /extremely standardized/ it should be possible to produce pdf or html
output, with no extra script.
i say that because i used TeX this way, and it is able for example to
produce HTML tables in a {tabular} (-like) environment...
Cheers.