General ⇒ Preserving original values fpr parameters
Preserving original values fpr parameters
I would like to know how to set parameters back to thier original values (not nesecerally default, but defined ealier in the document).
E.g. I changed the distance \doublerulesep via \setlength, but other parts of the document should maintain orininal value of this parameter (defined somewhere ealier and i do not know these original values).
So I need to set the parameter back to its originally defined value.
So I am looking to do somethinhg like that:
1. oldValue = getValue(\doublerulesep)
2. % draw table
3. \setlength\doublerulesep{oldValue}
Please advise !
Thanks a lot !
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Preserving original values fpr parameters
Code: Select all
\documentclass{article}
\begin{document}
\begingroup
\setlength\doublerulesep{6pt}
\begin{tabular}{l||l}
a & a
\end{tabular}
\endgroup
\begin{tabular}{l||l}
a & a
\end{tabular}
\end{document}