pkubowicz / opendetex

Improved version of Detex - tool for extracting plain text from TeX and LaTeX sources
Other
236 stars 35 forks source link

Removing all commands excepted math #77

Open Futyn-Maker opened 3 years ago

Futyn-Maker commented 3 years ago

Hello! Thanks for this program, it's very useful.

I'd like to know if I can remove all LaTeX commands excepted math formulas. I mean, I want to remove, for example, itemize, textit and others, but save \frac{}{}, \sqrt{}, etc.

Thanks!

pauloney commented 3 years ago

Yeah, it is possible, but it demands some work. One simple way to do it would be to list all commands you want to remove, abd write a script just to do that. The problems are many including the fact that "itemize" is NOT a command, but the name of an environment.

Paulo Ney

On Sat, Sep 11, 2021 at 9:38 AM Andrey yakuboy @.***> wrote:

Hello! Thanks for this program, it's very useful.

I'd like to know if I can remove all LaTeX commands excepted math formulas. I mean, I want to remove, for example, itemize, textit and others, but save \frac{}{}, \sqrt{}, etc.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pkubowicz/opendetex/issues/77, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR7WYVNG2ZF7L3OUWG4NNLUBOAW5ANCNFSM5D3DZ5XA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.