tdegeus / texplain

Copy TeX-file and included figures to a separate (flattened) folder
https://texplain.readthedocs.io
MIT License
2 stars 0 forks source link

Format `{\it foo}` to `\textit{foo}` #109

Closed tdegeus closed 7 months ago

tdegeus commented 8 months ago

{em ...} -> \emph{...} {it ...} -> \textit{...}

tdegeus commented 7 months ago

The best is to allow regex input for texclean.

tdegeus commented 7 months ago

This could also allow, for example, to add a newline after sections:

\paragraph{...}
My text

would become

\paragraph{...}

My text

The problem is however that regex does not support matching brackets

tdegeus commented 7 months ago

See https://github.com/tdegeus/texplain/issues/112 for regex finding matching brackets