[nycbug-talk] getting txt files from tex
Peter Wright
pete at nomadlogic.org
Thu Sep 7 14:19:08 EDT 2006
> On Thu, Sep 07, 2006 at 10:15:59AM -0700, Peter Wright wrote:
>>
>>> I've written some some tex files and makefiles to produce pdf and
>>> html output, but today I was asked for text output.... how is that
>>> done?
>>>
>>belive texi2html and texi2pdf should work, i know they are part of our
>>stock Irix and RHELinux builds...not sure if it's part of the freebsd
>>ports.
>
> they don't seem to have text output options.
> Yusuke's suggestion:
>
> lynx -dump file.html > file.txt
>
> seems the best. but it does not generate 'finished' docs.
>
> The docbook standard for linux seems to have macros
> to generate text output (eg an option for HOWTOs)
> but that doesn't not seem a standard output for tex
> processors. a collection of macros:
>
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=toascii
>
> the txt sty can be used for rfc generation...
>
> but, I find it odd that there is no mature tex2txt program,
> eg something more than stripping out latex commands.
>
sure there is, i think it's called awk/sed/perl ;^)
-pete
--
~~oO00Oo~~
Peter Wright
pete at nomadlogic.org
www.nomadlogic.org/~pete
310.869.9459
More information about the talk
mailing list