Tagged Questions
2
votes
1answer
45 views
Tikzstyle for 2:1 Mux
Could someone help me with a \tikzstyle for this trapezium block:
I tried but look how it looks like:
The main problem it is in how to set the text (0 1) in the right place.
The code I'm using ...
7
votes
5answers
248 views
How to create following block diagram structure in LaTeX
How can i create this kind of connected and cascading block diagram in Latex?
8
votes
2answers
240 views
How can I improve those voltage annotations
In France, we draw an arrow above or below a dipole to represent the potential difference between its two poles. I'm trying to automate this using the ideas of the tikz circuits library (not ...
3
votes
1answer
54 views
Options passed to a path inside insert path style
Is there a way to give to the \path (inside mypath style) the options given to the \draw and \fill commands (ideally, the path should be drawn and red then filled and blue) ?
...
9
votes
1answer
124 views
Setting weekend background color
I'm making a calendar in LaTeX with tikz-pgf and I would like to set to gray the background color for the weekend. In the examples I found on the Internet and in the documentation, I can see how to ...
3
votes
2answers
85 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
0answers
84 views
Dependent node size in TikZ
I'm producing some control theory flow sheets in TikZ where I have specified the node box size. Since I'm making a lot of these flow sheets, I have set global styles for them, for instance the box ...
6
votes
1answer
193 views
Tikz: Text along top and bottom of arrow path
How can I add text to both the top and bottom of a path? My commutative diagram below is 90% complete. I would, however, like text={${gKer({\varphi}){\mapsto}{\varphi(G)}}$} following the path below ...
10
votes
2answers
194 views
TikZ: shade also the border of a node
I would like to shade a node and the border of the node.
The following code works but I don't like it very much that I have to draw something after the node on the background layer. I would prefer a ...
7
votes
1answer
166 views
Draw additional parallel paths in TikZ
How can parallel lines elegantly be added to an existing path? I am looking for a solution or hint to, how a general style can be made, that works with any path.
Example path:
...
5
votes
1answer
103 views
Determining tikz drawing style, depending on the values of two nested loop iterators
So the question is a tikz one!
Assume that you are drawing things inside two nested foreach loops in tikz, and the iterator variables are \x and \y. What I'd like to obtain is to be able to specify a ...
10
votes
2answers
142 views
How to detect if option provided via \tikzset
I would like to be able to detect if a particular option has been provided via a \tikzset and issue a message based on that.
The MWE yields:
But once the conditional works (just a comment for ...
3
votes
2answers
100 views
How do I define tikz styles with a xkeyval command?
I would like to write a command which allows the user to change tikz styles. My code goes like this:
\documentclass{article}
\usepackage{tikz,xkeyval}
\makeatletter
\def\DEFstyle{}
...
2
votes
1answer
113 views
TikZ: remove/override auto option (arrow label positioning) from a defined style
I have a defined style which I am applying to many arrows. Most of the time, I want them to have label nodes positioned using auto, but occasionally I do not. Currently, I simply add auto wherever ...
3
votes
1answer
156 views
Problem about pattern and gradient
I draw a graph using the code below
.
\documentclass[tikz]{standalone}
\usetikzlibrary{
shapes.geometric,
positioning,
fit,
calc,
patterns
}
\usepackage{tikz}
...
0
votes
1answer
60 views
the problem about putting one picture on the left and another on the right
I wish to put two graph together, one is on the left side, the other is one the right side.
I use "minipage". However, using the below code, the first graph is on the top of the second graph. May ...
10
votes
3answers
266 views
How to draw multiple lines inside the circle
I wish to draw the picture like below, however, I don't know how to add multiple lines in side the circle.
This is my code:
\documentclass[tikz]{standalone}
\usetikzlibrary{
shapes.geometric,
...
1
vote
0answers
160 views
change color of nodes in pgfplots bar plot [closed]
I have a bar plot which print the number next to the bar.
The text is however not very well readable due to the color applied to it.
Therefore I would like to know how to modify its style.
...
4
votes
1answer
117 views
how to add dotted line and arc line?
I wish to add dotted line connecting two nodes and an arc line as described in the photo.
Here is my code:
\documentclass[tikz]{standalone}
\usetikzlibrary{
shapes.geometric,
positioning,
...
3
votes
1answer
54 views
How to adust the location of the inner component in the Outer component constructed by “fit”?
I use "fit" to make two small rectangles inside a bigger rectangle. And then add some words at the top of the bigger one, which causes a large blank space at the bottom of the bigger rectangle as ...
0
votes
0answers
59 views
how to set the size of the star? [duplicate]
I wish to draw the picture described How to add the circle, star inside the diamond?
I tried the code:
\node[draw, fill, star, star points=6, minimum size=0.1mm,above=of aux, anchor=center]{};
...
4
votes
1answer
83 views
How to add new line character in the node
I wish to add the new line character in the node, however, I tried several ways, all cannot work.
\node[draw, minimum width = 2em, minimum height=1em] (a) {get \\ flight(gf)};
0
votes
0answers
87 views
How to add slash to the line and locate words? [closed]
I wish to draw the graph like in the picture, however, there are three problems here,
1. how to add the words "OnMess" and "h" on top of the rectangles
2. how to add the word "ac" above the line ...
5
votes
2answers
198 views
how to draw the complex work flow using tikz 2.0
I wish to draw a complex work flow using tikz 2.0 because I tried to update the tikz to 2.1, there are many problems. The work work flow is described as follows:
I have tried to draw it by locating ...
6
votes
1answer
230 views
How to draw the structure with rectangles inside
I wish to draw the flow like in the picture using the code below, however, I found it is very hard to locate the rectangles by using Coordinate. Is there any better way to do this?
Here is the code ...
10
votes
1answer
333 views
Comprehensive list of TikZ style options?
I'm aware that one can use \tikzstyle{every label}=[...] to apply styles to every label within a tikzpicture; or \tikzset{mystyle/.style={...}} to apply style specs to a specific type of node mystyle ...
6
votes
2answers
321 views
TikZ: Defining and reusing complex objects?
(How) Is it possible to save some complex TikZ objects for reusing them (in the same and in different pictures)?
I know it's possible to define own styles, but I'm not sure if it's the right thing ...
2
votes
1answer
179 views
TikZ - Changing the “z-index” of backgrounds
In the following code, I would like to place the backgrounds under the numbers and not the contrary as it is the case actually.
Screenshot
Code
\documentclass{article}
\usepackage{tikz}
...
9
votes
2answers
237 views
Hyperlinked nodes in TikZ mindmap
I am trying to make a small mindmap such that some of the child nodes are hyperlinked. I tried to follow the advice given here, about the new node style hyperlink node, but the following MWE compiles ...
18
votes
3answers
428 views
Can I mark ends of lines with a cross?
I have the following image:
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tkz-fct}
\usetikzlibrary{arrows, ...
6
votes
4answers
114 views
How can I calculate within style values?
Is it possible to calculate (addition etc.) in style values? I wanted to do the following:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,fit,chains}
...
7
votes
6answers
217 views
How can “execute at begin node” be used with special characters like curly braces? (or: how to raise node content)
I'd like to define the following style:
test/.style={
execute at begin node={\raisebox\{-0.2cm\}\{},
execute at end node={\}}
}
and use it like
\documentclass{article}
\usepackage{tikz}
...
12
votes
1answer
364 views
Nested node class with pictogram decoration
I'm wondering how can I define custom TikZ node class mynode thats allows my to use following syntax:
\node [mynode,fill=yellow!40] {component}
\child{
\node [mynode,fill=yellow!40] ...
15
votes
1answer
484 views
TikZ picture shapes
I am very new to the TikZ package, and I need to draw some flow chars by using the following shapes.
However I couldn't figure out how to draw the 4th and and 6th ones below. It would be very nice ...
4
votes
1answer
196 views
Tikz: Styling a node to display text on the right of a dot
I am trying to create a LaTeX document using the Tikz library, more particularly an E/R Diagram. I have downloaded the tikz-er2 additional library, but I am having an issue with the display of ...
27
votes
1answer
612 views
Creating thicker Tikz mindmap connectors
I'm running MiKTeX 2.9, on a Windows 7 machine. My pdflatex compilation log lists:
pgf 2008/01/15 v2.10 (rcs-revision 1.12)
I am using TikZ's mindmap library to draw some graphics and I quite ...
5
votes
2answers
235 views
Off page connector using Tikz
I'm creating a flowchart using TikZ. You can see my code so far below.
But now I want to create an off page connector:
I don't have a clue how to implement this in my \tikzset.
Furthermore I ...
10
votes
2answers
435 views
Change style of labels of Tikz nodes of a given style
How can all labels of a given type of node be restyled in Tikz?
Imagine that there are nodes of different styles, and that only the nodes of style X should have red labels. Is this possible without ...
13
votes
1answer
496 views
Drawing shapes around Tikz Tree nodes
I have a Tikz tree in my Latex document as follows:
% Set the overall layout of the tree
\tikzstyle{level 1}=[level distance=4.5cm, sibling distance=6.5cm]
\tikzstyle{level 2}=[level distance=4cm, ...
6
votes
1answer
135 views
TikZ: posticipate execution of type /.code key
I'm trying to create some TikZ keys which allows to easily draw distributed loads on a mechanical structure (or truss). The code I wrote at the moment is:
\documentclass[a4paper]{article}
...
3
votes
2answers
82 views
why my pic was changed by un-used tikzstyle
In a joint file, my picture was changed by some un-used global tikzstyle, which is added by other. Here is a minimal example. The output dots become bigger if I un-comment the commented line.
...
1
vote
1answer
336 views
Arrow decoration in TIKZ [duplicate]
Possible Duplicate:
TikZ: How to draw an arrow in the middle of the line?
I'd like to use Tikz for drawing Feynman diagrams. I found an example in TeXample, but it looks inefficient.
One ...
5
votes
2answers
177 views
How to share selected options between different nodes in TikZ?
(I didn't find a better title for the question. Suggestions are welcomed.)
I have created some new shapes in TikZ and I would like to put one of them below another one when a certain key is passed to ...
3
votes
1answer
316 views
TikZ edge thickness causing errors in foreach loop
I'm experiencing some weirdness in making a simple TikZ diagram (a comb-shaped graph with variable number of nodes). The weirdness comes from the style applied to the edge paths. Here's the ...
5
votes
1answer
234 views
When to use TikZ styles?
I planned to illustrate how a quadtree data structure I'm using is implemented, showing all internal pointers and arrays. The image will look something like this:
(Here, if a pointer points at the ...
1
vote
1answer
143 views
How can I make the path picture bigger? [duplicate]
Possible Duplicate:
How should I draw a singly/double linked list?
I am currently trying to create an image of a linked list like this one:
This is my current try:
What I miss is the ...
5
votes
2answers
333 views
How do you draw this prism in tikz/pstricks
The numbers are in Persian (side SB=6 and angle SBA=60 degrees).
7
votes
2answers
197 views
Restoring previous value of PGF/TikZ key?
How does one restore the previous value of a PGF/TikZ key?
For example, I would like to set the inner sep of a matrix to 0em but set the inner sep of nodes within the matrix to be the value that ...
5
votes
2answers
2k views
how to decrease the size of a node and a label - tikz package
i trying to draw an automata using tikz package, and i want to decrease the size of node and labels on each edge , im have trying to put the option [scale=0.5] but it doesn't work !
I have :
...
1
vote
0answers
768 views
! I can't find file `pgflibrarytikz*.code.tex' [closed]
I can compile the following LaTeX:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows,backgrounds,plotmarks}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing ...


