We use the conv.sh
script to perform the overall conversion. There are a few steps in the conversion process, and we will list them here.
- .tex to .tex conversion
- read in the customized macros and \newCommands, so returned .tex can all be standalone
- turn colons in various places into hyphens
- turn
\label{whatever:label} to \label{whatever-label}
, in fact there might be multiple colons in the label, so we need to turn all of them to hyphens - turn
\ref{whatever:label} to \ref{whatever-label}
, similar for the multiple colons - turn
\cite{whatever:label} to @{whatever-label}
, and similar for the multiple colons
- turn
- get rid of [x inch] or [x cm]
- adding or removing line breaks
- margin note declarative
- Equation clean up
- Figure clean up
- Table clean up
- Bibliography clean up
- Cross-referencing clean up
- Footnote clean up
- Margin note clean up
- Customized macros clean up
- pandoc conversion
- [] some customized filters