I have a one-page standalone document:
\documentclass[border=1pt]{standalone}
\begin{document}
Lorem ipsum
\end{document}
I would like to create a command \removeborder
that will, when placed between the \begin{document}
and \end{document}
commands, remove the border from this one-page document.
\documentclass[border=1pt]{standalone}
\newcommand{\removeborder}{???}
\begin{document}
\removeborder
Lorem Ipsum
\end{document}
While \standaloneconfig{border=0pt}
(documented here) is similar to what I want, when put in place of the ???
, it does not remove the border from the page. Unfortunately, I am rather restricted on which parts of this code I can modify, thus why I do not modify the \documentclass
statement. The command \removeborder
will always be called from within the page it should affect; I cannot simply define a \standaloneenv
and place \removeborder
before the environment is entered.
My question: What can I place in the ???
in the second code block to remove the border from this document?
\standaloneconfig{border=0pt}
before\begin{document}
?\begin{document}
. I intend to use it in an application that gives me only limited control over theLaTeX
header and footer, but much more control over the body.\documentclass[border=1pt]{standalone}\standaloneconfig{border=0pt}\begin{document}Lorem Ipsum\end{document}
? If so, this is not what I seek; I wish to define a command that I can call between\begin{document}
and\end{document}
that will remove the border on that page.