{scoping} defines the context within which a variable name or other identifier is valid and can be used, or within which a declaration has effect.
Questions tagged [scoping]
140 questions
15
votes
2 answers
Scoping \raggedbottom to a single page
How does one define a single page to be \raggedbottom? Or, for completion's sake, \flushbottom?
Background
In a comment to a related answer, Ben Lerner provided the following snippet of code to declare a single page to be…
jja
- 1,813
6
votes
1 answer
Scope of LaTeX code
In C/C++ or other language, the code and variables have scope. Is this the same in LaTeX?
I struggled to understand the behavior of below code--
\documentclass[doubleside]{article}
\usepackage{lipsum}
\begin{document}
%% case…
Max
- 305
2
votes
1 answer
making \@namedef optionally global
I'd like to implement a global option on a package that I maintain, as per Mats's suggestion (here). The package is sepfootnotes, and the suggested modification will allow footnotes' content definitions optionally to take global scope. This will…
eduardo.tex
- 603
1
vote
1 answer
scoping problem with newcommand, renewcommand and longtable
My problem to be solved is: I want to set and reset a value (like a summation value) per line in my longtable (whose content is generated from the outside of the…
Peter Miehle
- 401
1
vote
1 answer
How to add options to \Begin {Scope}
How to add options to \Begin {Scope} like [fill=..., shading angle, top color, bottom color]?
\begin {scope}[color=OrangeD]
\draw [-] plot[smooth, tension=.7] coordinates {(-5.25,1) (-5.15,1.15) (-4.8,1.3) (-4.6,1.6) (-4.3,1.7) (-4.05,2.05)…
Marwa Hashem
- 61
0
votes
0 answers
Restore the state (global/local variables) at a previous time
I made a package that caches stuff (robust-externalize) and my goal now is to compile automatically many images into a single document to save the loading time of the preamble during the first compilation. So I was planning to write in a file…
tobiasBora
- 8,684