GeneralHow to make length-assignments global

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
johnst
Posts: 3
Joined: Thu May 07, 2009 12:09 pm

How to make length-assignments global

Post by johnst »

The problem is that all length-commands, e.g., \setlength, are local, meaning that old values are restored when going out of a group of commands surrounded by {..}. Is there any way to make length-assignments globally defined provided they are made within the group of commands?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: How to make length-assignments global

Post by josephwright »

\global\setlength ?
Joseph Wright
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: How to make length-assignments global

Post by localghost »

I would think that putting such declarations into the preamble also makes them global.


Best regards and welcome to the board
Thorsten
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: How to make length-assignments global

Post by josephwright »

I'm rather assuming this is a document command question, not a global setting.
Joseph Wright
johnst
Posts: 3
Joined: Thu May 07, 2009 12:09 pm

Re: How to make length-assignments global

Post by johnst »

Thank you! \global\setlength does work properly !
Post Reply