When integrating standard LaTeX
output from a database or from software like pandoc
, the actual content cannot be changed. To still be able to layout the document, it is important to have redefinitions in the preamble.
I am looking for preamble commands that translate (redefine layout visually) from
\begin{figure}[htbp]
\centering
\includegraphics{test.png}
\caption{test}
\end{figure}
to
\noindent\begin{minipage}[t]{0.5\textwidth}
\begin{figure}[H]
\centering
\includegraphics{test.png}
\end{figure}
\end{minipage}
\hspace{0.03\textwidth}
and quotations from:
\begin{quote}
test
\end{quote}
to
\noindent\begin{minipage}[t]{0.4\textwidth}
test
\end{minipage}
My current approach is a simple perl script that does these translations. But I want to omit in-between-operations for the sake of simplicity. Especially renewing the figure environment has been a big threat to me, because here I mostly do not want to renew anything (apart from removing the caption), but just enveloping a minipage around the existent figure. What are the standard approaches in the world of tex monks wisdom?