Tagged Questions
8
votes
1answer
78 views
Access loop variable outside loop
Here's what I have created, but how could I access the loop variable \n outside the foreach loop so that I could write sth like this:
\n = \n + 1 % this is definitely not right, and it seems I ...
2
votes
1answer
54 views
How to define the default vertical distance between nodes?
Use positioning can control the individual vertical position of nodes. But is there any way to control the default vertical spacing?
\documentclass{article}
\usepackage[utf8]{inputenc}
...
1
vote
0answers
193 views
Title page report with TikZ [closed]
I want to make the front page shown in the attached PDF.
Someone! help me?
0
votes
0answers
40 views
TikZ triming text based on an other node placement
I am using tikz to create a page layout comprising different nodes, each node containing a bit of text.
The nodes are placed relative to each other.
What I would like to achieve is that for some ...
3
votes
1answer
89 views
Tikz vertical alignement text and shape
I want to vertically align sans serif font with a rectangle. The following code show the problem:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary[positioning]
...
2
votes
2answers
90 views
TikZ picture positioning in landscape
I wrote a large game tree (using automata package) and need to display it in landscape mode. I already tried to use both textpos and geometry (newgeometry command) packages but without any positive ...
1
vote
1answer
49 views
How to set the distance between to subfigures each with a tikz-pic inside?
My code is as follows. I want to increase the distance between the two diagrams:
\PassOptionsToPackage{usenames,dvipsnames,svgnames,table}{xcolor}
\documentclass [11pt,a4paper] {article}
...
1
vote
1answer
97 views
Using Tikz Fit to draw a node covering a Tikz chains
A chain of nodes is drawn using tikz chains. I would like to draw a rectangle node covering the chain nodes (or, multiple rectangle nodes covering subsets of them). I am using tikz fit.
...
9
votes
2answers
223 views
High level digital design in TikZ
I am very new to TikZ and I have trouble making a diagram similar to the one here:
My problems are specifically making MUX to get to inputs which would be on 1/3 and 2/3 of the width. Taking sigma ...
6
votes
2answers
111 views
Novice's question: I don't want other objects' locations to move when I add a circle
TikZ novice, here. I want to create two slides (in Beamer), identical except for the addition of a circle in the second slide. I don't want the addition of the circle to shift about the placement of ...
3
votes
2answers
90 views
anchor arrow start position
Attached below is the minimum working example. I would like the arrow to end at the
west anchor of the node "operation". I tried anchor and few other possibilities but they don't seem to affect the ...
2
votes
1answer
96 views
TOC longer than 1 page messes with Tikz absolute positioning on following pages
I have an issue where a TOC on more than one page, ruins the tikz-positioning for the rest of the pdf.
Example:
The header has been moved to the bottom of the page where it usually stays on the ...
15
votes
3answers
263 views
How can I set the tikz label anchor explicitly?
I want to add a label to a node, but "inside" the node. Something like this:
The manual seems to indicate it might be possible, although no actual key is named.
The ... anchor point for the ...
2
votes
2answers
95 views
How to position qtrees
Suppose, I have 2 qtrees, that I want to put below each other:
\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-qtree,tikz-qtree-compat}
\usetikzlibrary{positioning}
\begin{document}
...
4
votes
1answer
95 views
Relative positioning of Lewis electrons in chemfig
I am defining a submolecule in chemfig (2,2'-bipyridine) and I want to show the lone pair of electrons on both the Nitrogens. (For those who care, I wish to show a coordination bond between the lone ...
6
votes
1answer
103 views
How to position one node relative to another node at a certain angle in TikZ taking the nodes' size into account?
I asked a question before about how to position a node relative to another node at a certain angle in TikZ, and the answer I got there was that you can use the \path (node1) ++(angle:distance) node ...
6
votes
3answers
154 views
How to place text and image above the exact subfigure?
I want to draw something like this:
I am able to draw like this:
This is the code for the same:
\documentclass{article}
\usepackage{tikz,subfig}
\begin{document}
\begin{figure}
\centering
...
4
votes
1answer
97 views
Positioning node at end of line
The following code fails to do what I want:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,calc}
\begin{document}
\tikz{%
\draw (0,0) -- (\textwidth, 0) node[draw, inner ...
3
votes
2answers
197 views
Overriding node draw style inherited from every node style messes up positioning
I have been trying to draw a tree with TikZ. All nodes should be circles, so I use the every node style. There are some additional labels on some nodes, which have to be exceptions. I have tried this:
...
4
votes
1answer
174 views
Insert Picture on Titlepage
I have made a titlepage with a wide (104pt) vertical line and i want to place a logo on top of that line. I tried to do it with icluding a picture with tikzpicture, but it places the image at the ...
3
votes
1answer
168 views
TikZ node positioning in Beamer ignores x coordinate
I have the following frame in beamer:
\begin{frame}{Language}
\begin{block}{}
\begin{align*}
\onslide<1->{
&\text{Types} & T &::= B | T \to T \\
}
...
2
votes
1answer
68 views
positioning nodes according to their sizes in tikz?
I produced the following output using the tikz code shown below. What I want is for the arrow on the right to have a fixed length relative to the rightmost symbol, not relative to the center of the ...
5
votes
1answer
133 views
How to put node in an accurate place? How to use different style of font in TikZ?
I want to draw something like this:
This is my code:
\documentclass{article}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tikz}
%\usepackage[active,tightpage,floats]{preview}
...
8
votes
1answer
109 views
How can I position a node in the center of an arbitrary path
\documentclass{article}
\usepackage{lmodern}
\usepackage{tikz,times}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[scale=.3]
\draw [thick] (0,6) rectangle (18,4) node ...
4
votes
2answers
122 views
Tikz: Using relative positioning and foreach variables
I want to generate a picture that replicates itself and slowy fades out.
For that i plan to use a foreach statement and redraw the picture to its rigth.
How can i use the foreach variable to position ...
8
votes
2answers
185 views
Anchors badly positioned
I am trying to overlay some transparent boxes over a picture using TikZ within a Beamer frame. The code I use is the following:
\documentclass{beamer}
\usepackage[spanish]{babel}
...
9
votes
3answers
221 views
pgfplots - Add offset to pins
I'm trying to make a bar plot for an optimization parameter in quantum physics. To be more informative, the graph should display the values of these parameters above the bars. So far I did
...
6
votes
1answer
101 views
Simultanious use of relative positioning and “of” notation
A rather high node has a not so high node on its rigth side.
I like the positioning and sizes, but i want both node to share the same Y-Axis of their north border.
\tikzstyle{big} =[rectangle, ...
40
votes
1answer
656 views
Toward a Stamper Package
Imagine that you want to simulate a hand stamp on every page in some large documents. It must be an imperfect print, with random page-to-page variations in ink intensity, fading, rotation and blur. ...
2
votes
0answers
121 views
How to make nodes on branchy TikZ chain lay on regular grid (trangular or square) automatically?
How to ensure that nodes on chain with branches (generated using chains library) are laid out on regular grid, regardless of node shape?
I am interested in automatic placement on triangular or ...
5
votes
2answers
275 views
TikZ: node at \item to use in [overlay]
In my beamer presentation I would like to reference an item by pointing an arrow on it's number. However, I don't know how to make \item a TikZ node. Otherwise it works well.
\documentclass{beamer}
...
5
votes
1answer
231 views
Positioning relative to page in TikZ
Consider the following:
Let's say I have a dot. I would like to be able to position this dot anywhere on the page: at the corner, in the middle, anywhere.
So far, despite poring over manuals and ...
7
votes
1answer
158 views
centering rotated tikz labels
I have a series of five image generated from a code that I wish to include one under the other in a figure. I would like to include labels on the left, right and bottom of each of them (left and ...
5
votes
1answer
151 views
Tikz randomly placed groups of objects
I would like to place several groups of three objects (two circle paths and one node) in a triangular area. I came up with the following code, which is based on a subdivision of the triangle in ...
8
votes
2answers
155 views
Giving a `matrix` node an `alias`
This TeX.sx question asks if is it possible to use a TikZ matrix along a chain. The error that occurs when one tries to do so is Package pgf Error: No shape named chain-3 is known., and a way to ...
6
votes
1answer
209 views
Edge nodes, auto and node distance
Consider the following MWE
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0)--(1,1) node[auto,midway] {$A$}
-- (2,0) node[auto,midway] {$B$};
...
4
votes
2answers
191 views
Title picture misplaced in Beamer when using 'show notes on second screen' and absolute 'pgf' positioning
When I try to do something like the following, everything works fine and dandy; The title graphic (here represented by the LaTeX logo with the reddish background) is shown just fine.
...
3
votes
1answer
138 views
Circling/framing and referring to a bunch of nodes
The end goal: drawing paths between nodes like in the example there but the difference is the nodes are inside a picture here and in particular, the other node is a bunch of nodes in the same picture. ...
10
votes
1answer
230 views
Tikz tree and position of single leaf in binary tree
I am constructing a binary tree which looks as follows:
\begin{tikzpicture}
\node {root}
child { node {left} }
child { node {right}
child { node {rightmost} }
...
4
votes
2answers
186 views
How to put text at an arbitrary position around an image?
I want to get sth like:
I have produced the vector images in Adobe Illustrator. I could do the labels (X_3, X_2,..) in there too, but after importing them in latex they wouldn't be consistent with ...
10
votes
1answer
172 views
Can I calculate the difference between two relatively positioned nodes with TikZ using calc?
I have a chart with relatively positioned nodes.
How do I calculate the horizontal distance x, between node "sub3" and node "key" and multiply that value by 2 and use it for the positioning of node ...
6
votes
3answers
414 views
positioning a child node between two parents
\begin{tikzpicture}[node distance=1.5cm]
\node[state] (A) {A};
\node[state] (C) [right of=A] {C};
\node[state] (B) [below in the middle of=A and C] {B}
\end{tikzpicture}
Something like this:
A ...
5
votes
0answers
130 views
How to draw a split arrow [duplicate]
Possible Duplicate:
How to draw a Sankey Diagram using TikZ
I want to have an arrow which splits up and one end is pointing then downwards. When you compile the code below you should see my ...
9
votes
1answer
262 views
tikz: positioning above of point a, left of point b
I want to create a blockdiagram using tikz.
I would like to use "above of, below of, etc." to position my nodes in order to keep it as flexible as possible.
I would no like to position a node D on ...
5
votes
1answer
208 views
Wrong vertical text position with Tikz
This is driving me nuts. The "Job5" and "Job6" text is slightly verticaly higher than the rest of text.
I'm suspecting the "inner sep", but I need that for the fit.
How can I re-adjust the text?
...
4
votes
1answer
265 views
How to change the position of the initial text in TikZ automata?
It seems PGF manual for v1.18 doesn't cover the case on how to change the position of the initial text relative to the initial transition. Accoring to the PGF manual section 19.3 the parameters of ...
7
votes
2answers
338 views
How does the 'on grid' node positioning in TikZ actually work?
I thought I knew how the on grid option of TikZ (cf. version 2.10 manual section 16.5.3 pages 186-187) worked, but the results I get are different from what I expected.
I have a minimal example:
...
3
votes
0answers
146 views
ytick pos=right doesn't work [closed]
This is my code:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xticklabel pos=right,
...
5
votes
1answer
516 views
Position text next to rectangle in TikZ
Consider the following TikZ code:
\filldraw[fill=black!40!white,thick] (0,1.5) node[above left] {start} rectangle (3.2,2) node[below right] {end} node [midway] {cp} ;
It produces a rectangle at the ...
7
votes
2answers
269 views
Align an equation and a tikz picture with anchor and baseline
I'm trying to get the math part the equation to be centered with the tikz picture:
\begin{equation}
\mathcal{G} =
\begin{tikzpicture}[]
\tikzstyle{vertex}=[anchor=base,baseline,
...



