Questions tagged [scoping]
{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.
145 questions
7 votes
3 answers
183 views
Strange node naming scope issues across two tikzpictures environment?
This post raised from my previous answer, and pascal974's comment: Consider the following two codes: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{positioning} \begin{document} \...
3 votes
2 answers
122 views
Scoping \coordinate in tikz
According to https://tex.stackexchange.com/a/459499/319072, you can use the key name prefix = <str> to achieve a form of quasi-scoping for setting a coordinate in tikz. I am after true scoping ...
0 votes
1 answer
72 views
Problem with defining tikz node labels
When I try to use the defined node labels, I get a compilation error, for example with \draw (n1:5)--(n0:5); \documentclass[tikz]{standalone} \usetikzlibrary{chains, automata} \tikzset{ drBinT/...
1 vote
1 answer
41 views
Error when using `\DTLdisplaydb` to display a custom database created inside a `tabular` environment
I am working with the datatool package in LaTeX to create and display a custom database. I define a new database (DBnew), add a column to it, and populate it with values calculated from another ...
2 votes
1 answer
179 views
How to properly align a scope and a node?
I am using two different approaches to draw similar looking blocks. Using first approach, I draw first block (top row) made of rectangular nodes inside a scope and name it as group 1. Similarly, ...
2 votes
1 answer
138 views
How to clip a rectangle on a QR Code with TikZ?
I'd like to clip a rectangle at the center of a QR Code, however it can't satisfy my request. The first one clips reversed, then I switch the order of node and clip commands, the second one couldn't ...
1 vote
1 answer
86 views
How can I join these three figures in a single document?
I have problems when using scope in circuitikz. \documentclass{standalone} \usepackage{tikz} \usepackage{circuitikz} \usepackage{siunitx} %Inicio Preambulo \ctikzset{% monopoles/vcc/arrow={Triangle[...
4 votes
1 answer
148 views
PGF/TikZ Object-Oriented Programming Scope Issue
I'm experimenting with the PGF/TikZ Object-Oriented Programming functionality and have encountered what appears to be a scoping issue that I do not understand. I have provided a minimum example of the ...
2 votes
3 answers
380 views
How to set up a sequence of clips in TiKZ with a loop?
Here's the simplest file I can think of which demonstrates my problem: I simply want to draw two circles, half filled: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
3 votes
1 answer
140 views
Automatic scope detection and red box drawing
In the following tikz code, there are three sets of graphs, each enclosed within its own scope environment. I'm looking to enclose the middle graph with a rectangular box. While I can achieve this ...
0 votes
0 answers
75 views
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 ...
4 votes
2 answers
269 views
TikZ - accurate colors with shifting in scope environments while using transparency group and opacity
Is it possible to display identical images accurately without color change when the options [transparency group] and [opacity] are used and the images are stacked on top of each other while shifted ...
0 votes
1 answer
53 views
Variables set within tables and reused later in the document
I am writing a document that involves a table of information for many sections, something like: \textbf{Details:} \begin{table}[H] \begin{center} \begin{tabularx}{\linewidth}{|X|c|c|c|c|c|} ...
2 votes
1 answer
78 views
Is it a scoping problem?
I try to display a fancy rating scale in pdf forms with the hyperref package. After half a day of investigation, trying and errors, I finaly got something. I use some redefinition of documented and ...
4 votes
2 answers
483 views
Force horizontal line between two scopes
I have two scopes and I want to draw an arrow from one to the other. I want the red arrow to be horizontal and not oblique as it is now. It is oblique because the node n is "lower" than ...