[OS X TeX] Binary for detex (convert latex into plain text, see also l2a)

David Watson dewatson at mac.com
Fri Aug 31 02:23:58 CEST 2007


You need to edit the Makefile:

The line that says
     #DEFS    += ${DEFS} -DNO_MALLOC_DECL
needs to be changed to
     DEFS    := ${DEFS} -DNO_MALLOC_DECL

and then do
     make
     sudo make install

One thing I'm wondering about though, is why you don't already have  
detex installed on your system. I'm fairly sure that it is  
distributed in a functioning executable with the TeXLive (mac) release.

As always, I could be very wrong about this.

On Aug 30, 2007, at 2:13 PM, Markus S wrote:

> Hi,
>
> does anybody know where to find binaries for  detex or knows how to  
> compile it. I get errors when I try to 'make' it.
>
> The more modern alternative l2a compiles fine on my system but is a  
> bit limited (no /include).
>
> Or is there a better way to get plain text out of latex? Exporting  
> text from the pdf file using Acrobat works, but all non-ASCII  
> characters (incl. the pervasive ligatures) and the hyphenation make  
> a big mess of the text.
>
> Cheers,
>
> Markus
>
>
>
>
> ------------------------- Helpful Info -------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
>
>


------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list