{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.
2
votes
1answer
59 views
Labeling user-defined shapes in TikZ
I have modified code for rotating a primitive 'match' shape (adapted from rotating camera code found here (Use a custom shape as a "building block").
How do I pass the label parameter in ...
8
votes
2answers
72 views
Getting \let definitions from inside a group, inside a loop
I have the following nested loop situation:
\begingroup
\def\do##1{%
\begingroup
\def\do####1{%
\csletcs{somemacro@##1@####1}{someothermacro@##1@####1}}%
...
3
votes
1answer
109 views
How do I nest subdrawings in a bigger drawing in TikZ?
I want to draw several complex drawings and put them all together in a bigger TikZ drawing. How do I do that?
So far, this is what I have done:
\documentclass[preview]{standalone}
\begin{document}
...
3
votes
0answers
136 views
tikz-qtree with scope ? (how to draw the Cayley formula)
I want to make a tree for the Cayley formula as this :
(But with a vertical layout)
I can use the tikz-qtree environments as show in section 1 below
I can draw the graph as show in section 2
But ...
0
votes
0answers
398 views
\setlength{\parskip} scope [closed]
I set
\setlength{\parskip}{0.7ex}
at the top of my LaTeX document, but it seems that when I begin a \begin{itemize}, I need to do \setlength{\parskip}{0.7ex} again in order for it to take effect ...
5
votes
2answers
70 views
How do I use scopes to apply a style to nodes inside a path?
I want to use nodes inside a single path, in order that I might position one relative to another using the ++(x,y) notation.
However, a scope that I want to use to style the nodes only styles the ...
11
votes
4answers
368 views
Why are node names inside \begin{scope} still visible outside?
The following example draws three rectangles, each divided in two parts (they're Lisp cons cells). It works fine, but something doesn't seem right: I have used \begin{scope} inside the \cons macro, ...
2
votes
1answer
492 views
Applying backgrounds to TikZ scope
I have problems creating a background for a scope envionment
Here is part of the code I used for a beamer slide:
\documentclass{beamer}
\usepackage{tikz}
...
3
votes
3answers
315 views
How to scale and clip a path at the same time?
Again, i started a question here, and i found the solution. But i think this method maybe useful for others.
The problem: i exported the TikZ code of one path from Inkscape; then, i wanted to use it ...
4
votes
1answer
224 views
Pass options to the scope that is internally created by preaction
In the reply to this question on shadows, it was suggested to use the backgrounds library so that the shadow of one object doesn't overlap another object drawn previously.
If I understand the ...
1
vote
0answers
86 views
Scope issues with pgfplotstable [closed]
I created a command that creates a table and do some computations on it.
And I would like to use this command several times.
\documentclass{minimal}
\usepackage{pgfplotstable}
\pgfplotstableset{%
...
10
votes
2answers
219 views
How to make an infix \if variant?
How does one make custom \if variants in core TeX?
I would like to write:
\ifshape{it} ... \else ... \fi
as in:
\textit{Italic? \ifshape{it}Yes\else No\fi}
Problem is, I get the error "Too many ...
1
vote
1answer
712 views
Why does 'every node' not work inside a scope environment?
I just tried the following and was suprised it didn't work:
\begin{tikzpicture}
... some commands
\begin{scope}[very thick,
every node=./style={circle, fill=white, minimum size=1.2mm, inner ...
5
votes
2answers
308 views
scope/yscale not transforming coordinates?
To my understanding of the documentation, the scope block should transform all coordinates. However, in the following example, only circles themselves are scaled, but not their centers: black circles ...
7
votes
3answers
290 views
Global Coordinates
How can I declare coordinates in a block and access them from outside of the block?
\begin{tikzpicture}
\foreach \x / \y in {
1 / 3,
2 / 8,
3 / 14,
}{
\coordinate (N\x) at ...
9
votes
1answer
551 views
TikZ: Execute code at end of scope OR picture and access its bounding box
TikZ provides the two keys execute at end picture={<code>} and execute at end scope={<code>} which can be used to execute any code at the end of the picture and of the current scope, ...