How do I define a variable and then reuse it later in the document? Something like:
Code: Select all
\def\MyVariable{\value{fboxsep}}
\setlength{\fboxsep}{20pt}
%% Do some stuff
% Now restore the value
\setlength{\fboxsep}{\MyVariable}
in multiple places? For example, I have many charts in my document, and I'd
like to place their width into a variable so that I can change it in just one place. Something like
Code: Select all
\def\MyWidth{0.8\textwidth}
%%%%
\includegraphics[width=MyWidth]{newimages/p002.png}
sb