I find myself in the awkward, although apparently not uncommon, position of being ordered to write, or at least end up with, documentation in the Word format.
I don't have anything that fancy in my LaTeX source file save the title page, which I don't particularly care about. I do however make extensive use of the logical markup capabilities of LaTeX, using things like \servername#1
and \ipaddress#1
and acronyms using the acro
package.
I have no figures that I'm not willing to export with standalone
and no fancy minipage
action going on --- just straight LaTeX. Pandoc seemed to be my best bet, but it simply skipped/stripped my custom commands (\servername
, things from acro
) from the document completely. It would be a decent solution if this were not the case.
Does there exist a preprocessor that will attempt to expand macro definitions into their appropriate 'base calls'? (I'm talking about things like \def\servername#1{\texttt{#1}}
). For example,
\documentclass{article}
\newcommand{\servername}[1]{\texttt{#1}}
\begin{document}
Hi! My server is \servername{localhost}.
\end{document}
is converted to
\documentclass{article}
\begin{document}
Hi! My server is \texttt{localhost}.
\end{document}