Related to my titular quest:
- LaTeX macro expander
- https://stackoverflow.com/questions/1509799/how-to-replace-latex-macros-with-their-definitions-using-latex
- https://stackoverflow.com/questions/2462656/transform-a-tex-source-so-that-all-macros-are-replaced-by-their-definition
Reasons behind my interest (that may be relevant to finding what I'm looking for):
- When collaborating and working on a single .tex file through online-file-sharing-programs (e.g. Dropbox), I do not want to insert my personally-defined macros (e.g.
\newcommand{\infwrt}[2]{\inf\limits_{\scriptscriptstyle\mathclap{#2}}#1}), but I would still like to use the convenient macro, and then simply convert my .tex file accordingly to then copy-paste the standard-defined version of my write-up. - The above reason is what pushed me into looking for a solution, but a much older reason for me is that I prefer typing in a tex editor (e.g. TeXstudio) which has nice features such as autofill, and so when I peruse Math StackExchange, and find a question I want to answer, it can take awhile without the editor. With the editor, I can type up an answer quickly, and ideally convert the personally-defined macros into standard-defined commands.
I tried looking into "de-macro", and according to the CTAN page:
I need to use Python. So I downloaded Python 3.5.2, and am not sure what to do from here. Alternative solutions is what I'm seeking, but if you are proficient in how to use "de-macro" then a guide would be very helpful. Thanks in advanced!