How do I convert LaTeX to plain-text (ASCII)?

前端 未结 14 1988
故里飘歌
故里飘歌 2020-12-07 13:17

Scenario:
I have a document I created using LaTeX (my resume in this case), it\'s compiling in pdflatex correctly and outputting exactly what I\'

14条回答
  •  攒了一身酷
    2020-12-07 13:36

    Opendetex is available both for Windows and Linux (compiles fine on a Mac as well). It can be downloaded from https://github.com/pkubowicz/opendetex

    Usage:

    detex project

    opens project.tex, reads all files included using \include or \includeonly commands, outputs resulting text to standard output.

    detex -n project > out.txt

    opens project.tex, does not follow \include or \includeonly commands, outputs resulting text to out.txt

    detex --help

    shows full help

    Extract it to any directory of your choice. Say you extracted it to your Downloads directory.

    Create another directory of any name in that (this is optional but recommended). Let's say the directory name is “my_paper”. Put your paper in the “my_paper” directory. Assume your paper name is project.tex.

    Navigate to the path

        cd ~/Downloads/opendetex
    

    Run the command

        detex my_paper/project.tex  > out.txt
    

    generic form

        detex -n full_path_to_tex_file.tex > output_text_file.txt
    

提交回复
热议问题