Tagged Questions

{tikz-styles} are predefined sets of options that organize how graphics elements are drawn. It is thus possible to program specific styles and reuse the styles on different objects. The {tikz-styles} tag can be used in parallel with {tikz-pgf}.

learn more… | top users | synonyms

0
votes
1answer
88 views

drawing a 2D-plane

i need to draw this plane, but i don't know how can anyone help me? its important i need it in my master report. i try to use this from an old example to start with but it didn't work ...
4
votes
1answer
56 views

labeling edges in tikz using boxes

I'm creating labels for edges by manually creating a node and placing it in the center of the edge. Is there a cleaner way to do it? Also I would like to have the edge invisible inside the label. ...
4
votes
1answer
52 views

Filter tikz node text through macro

I would like to make a node style that "filters" the node's label (text) through a command, i.e. replace the node text with a macro, with the original node text passed as an argument to that macro. ...
1
vote
4answers
241 views

How can I draw the following diagram?

Please, How can I draw these diagrams using TiKZ ? r = r_{0} e^{bt}, \theta= bt x= R cos wt, y=R sin wt, z=hwt
4
votes
3answers
124 views

Expansion Issues When Passing TikZ Styles to Macro Created by Macro

I'm struggling (again) with expansions. This time I have a generic function \misdirection that creates a TikZ environment subject to a few options. Then, I create a macro \freezeStyle that creates a ...
1
vote
0answers
60 views

Tikz - dynamic letter

I've got the task, to create a pattern for a letter or something else. It must have a perspective view like in this example So I think I've just managed to create something that looks nearly ...
2
votes
2answers
80 views

TikZ: How to spread out nodes/shapes FBD?

Basically I'm trying to make a free body diagram with one main diagram and 2 separate force diagrams for ease of viewing and analysis. However, the two separate ones keep on overlapping on top of the ...
4
votes
1answer
112 views

How to draw integrator block with Tikz?

Is it possible to draw this shape in Tikz? It is an integrator block in a block diagram.
1
vote
0answers
89 views

How can I customize this chapter heading like so?

I want to add the word chapitre (french for chapter) on top of the grey rectangle, as in the image below. How can I do that?
16
votes
1answer
268 views

How can I draw arrows within a listing to explain positional association?

I need nice drawing in lstlisting C/C++ code. I'm trying to make something like this This is what i have made so far \documentclass[11pt]{article} \usepackage{listingsutf8} \usepackage{tikz} ...
3
votes
1answer
39 views

Tikz coordinates scaled to image size

Is there anyway to specify coordinates relative to the image size ? Consider for example the following code : \begin{tikzpicture} \node [inner sep=0pt,above right] ...
13
votes
4answers
398 views

How to plot a graph from its adjacency matrix and coordinates of vertices?

A similar question is here. If we give all the data of the vertices's coordinates and the graph's adjacency matrix, how to plot it with tikz, pstrick or other tool in tex? here are the data of ...
5
votes
1answer
74 views

decorating with tkz-berge

In my continuing quest to draw circles and lines willy-nilly, I've made the following use of tkz-berge: \documentclass[11pt]{standalone} \usepackage{tkz-berge} \usetikzlibrary{shapes,snakes,mindmap} ...
3
votes
2answers
60 views

problems with ellipse TikZ

I'm working on a mac, I use the package TikZ and it works. But I have problems when I want use ellipse or diamond ex : \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} ...
3
votes
1answer
61 views

How can a style applied to a given node be inherited by all descendants of that node?

I'm using the graphs TikZ library to draw directed acyclic graphs. When I apply a particular style to a given node, I would like that style to be inherited by all descendants of the node in question. ...
2
votes
1answer
57 views

Nodes inside nodes and connect them

I am trying to draw multiple nodes inside nodes and connect the outer ones to create a flowchart. Since Im new to Tikz I used examples and tried to manipulate them for my issue. If there is a way to ...
3
votes
1answer
175 views

How to draw a system architecture with databases and shadows?

My goal is to draw a complex system architecture. Some approaches to do it are here How to draw a layered architecture using Latex? This approach http://tex.stackexchange.com/a/102669/44348 seems to ...
2
votes
0answers
48 views

braces marks with \framed & \tikz

I'm trying to mark some paragraphs with boxes, braces, brackets or parentheses coupled with notes in margin… My first test was using \makebox & minipage according to this discussion as you can see ...
4
votes
2answers
132 views

Nested rectangles with different widths

The following code \documentclass[a4paper,10pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \path [style={draw}] (0,0) rectangle (4,1); \path [style={draw}] (0,1) rectangle (4,2); ...
8
votes
1answer
134 views

drawing a plane and orthonormal system using tikz

I want to draw the following image and i face problems especially in the plane on the left : \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[thick,->] (52,0) -- ...
1
vote
2answers
346 views

Drawing a figure with concentric circles with text and shading

I am trying to draw the below given figure. Please help me to plot it in Tikz. I am only able to plot concentric circles. . I would like to have different colors in between different circles. Also, ...
3
votes
0answers
76 views

Example from tutorial does not work: problem with edge style in graph

I tried an example from the TikZ tutorial: \documentclass{article} \usepackage{tikz} %\usepackage{pgfsys} \usetikzlibrary{positioning} \usetikzlibrary{graphs} %\usetikzlibrary{arrows} ...
2
votes
1answer
56 views

How can I draw nested shape, one on top another

For example, I want to draw a green rectangle with some black circles along the central horizontal axis of it. My main problem is how to let the circles appear on top of the rectangle.
6
votes
1answer
189 views

defining Style of flowchart tikz

I have been trying to define styles to make a good block flowchart in TikZ package, but I'm not very good at it, could you make one with a combination of blue, cyan and green? I need to describe the ...
2
votes
1answer
105 views

position a label closer to a particular box in a flow chart in tikz

I need to position the label No closer to the box check if flag set. What option should I use. \documentclass{sig-alternate} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} ...
3
votes
0answers
82 views

Node at tip/pinch of brace in Tikz

I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. [Edit]: After being made aware that the main thrust of the question ...
8
votes
1answer
110 views

TikZ Tree Rectangle around nodes

below you can see my code of a tree besides a table. Now I would like to insert some rectangles and ellipses around the nodes. Can someone show me how I can do this. I tried it but it did not work. ...
3
votes
1answer
73 views

Centering / horizontal alignment of text inside tikz boxes

I am facing a problem with centering the text inside the boxes: \documentclass[a4paper,fontsize=12pt,a4paper,DIV=10,BCOR=10mm,twoside,titlepage=false,openany,pagesize]{scrbook} ...
3
votes
1answer
211 views

How can I draw an ellipse with a rainbow color?

I need to draw a rainbow-colored (hue colormap) ellipse in tikz. Something like this but then in an ellipse shape, and in tikz. I've thought about drawing to ellipses, one with rainbox filling, the ...
4
votes
1answer
212 views

Using TikZ to draw array figures

I am new in LaTeX and even more on TikZ. I want to use TikZ to draw the kind of figure described in the below picture. I looked for some tutorial or particular topics that deals with that but never ...
4
votes
1answer
250 views

Theorem Style Design

I'm trying to design a a theorem style using the code below. However, I would like to be able to write the name of the Theorem right after the phrase. I mean I'd like to have Theorem 1 (First ...
2
votes
1answer
80 views

How do you define a command for use in a tikzpicture environment?

I want to define an environment for the tikzpicture environment which defines tikz specific commands. Here's an abbreviated example for a UML environment which defines a \Class command): ...
3
votes
1answer
71 views

How can I start newpage after using tikz to create page border line?

I have created front page of paper with border line around the paper. But the problem is like the image below. I hope any one can help me. Thank you! \documentclass{exam} \usepackage{fullpage} ...
2
votes
1answer
181 views

Axis tick options, ticks and labels inside axis area

I know the title can be misleading, but I don't know how to put it better. I will correct it when I get better proposals. I try drawing plots from external tables with pgfplots. Alas, the template I ...
7
votes
2answers
294 views

Pgfplots - ugly marks when using dotted or dashed line [duplicate]

Recently I spotted that applying the option dashed or dotted to a plot results in having ugly / distorted marks or marks with dots (when applying dotted) around them. Here is a MWE: ...
15
votes
1answer
671 views

TikZ, arrow, looking for ++++++> style

I'm wondering if it's possible to draw, by \tikzstyle, this style of arrow : +++++>. Thanks, Simon
5
votes
1answer
290 views

tikz: Better raised text effect

If you look carefully at the raised text in this image, you can see that it has two drop shadows: as well as the black one to the southeast of the text, there is a white one to the northwest. I know ...
6
votes
1answer
163 views

Scale dash pattern with line width

I would like to have dash patterns which scale proportionally to the active line width like shown in the following example: \documentclass[tikz]{standalone} \newdimen\gpdashlength \begin{document} ...
3
votes
1answer
200 views

Beamer with Tikz graphs

Following this question of mine, I now need to make a presentation using Beamer. If you look at the plot below, it has some values on the arrows namely p1, 1-p1, ... I want to put the graph structure ...
2
votes
2answers
111 views

Problem formula with \usepackage{marvosym} \usepackage{tikzsymbols} \usepackage{MnSymbol,wasysym}

I have the following code: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
5
votes
1answer
92 views

setting tikz styles

How do I set labeling styles associated with each style type? For example: (source below) I have an "input" style (medium circle) and a "junction" style (small dot) which I would like to have the ...
1
vote
1answer
319 views

Creating “cylinder with bottom” node shape in TikZ/PGF

How to create custom TikZ node "cylinder with bottom", where hidden line in cylinder bottom is shown using dashed line. Something like the following creation, except node center should be in the ...
7
votes
2answers
147 views

how can I create keys such as “column … to …” for a TikZ matrix

I have a node style I would like to apply to many (but not all) the cells/columns/rows of a matrix of nodes. Currently, for every column or cell that I want the style to apply to, I declare the style ...
4
votes
2answers
57 views

node style is only taking partial effect in a matrix of nodes

This is probably the first of two closely related questions. I have defined a style: my node style/.style={%% minimum width=\dimexpr0.60in+12pt\relax, minimum ...
6
votes
2answers
207 views

TiKZ and color filling with word spacing on multiple lines

I am attempting to make a figure in TikZ which I want to look like this: I have been able to come up with something close in TikZ, but I would really like to have the above figure instead of my ...
1
vote
1answer
78 views

Fault Tree: reducing gap between levels

I am facing problem moving the level of the tree UP. I wanna move the row with yellow boxes and OR gate up, to conserve some space. i tried adding "level distance" in level 3/.style, but that didn't ...
5
votes
2answers
131 views

Fault tree : problem with anchoring gates

I am trying to modify the Fault tree e.g. from Tikz where the nodes are the objects like gates instead of text boxes, and would even elimiate text boxes from few paths if possible. This is my code so ...
5
votes
1answer
89 views

Is it possible to reuse tcolorbox definitions in another tcolorbox definition?

TiKZ allows to define a .style which can be later be used in another one: \tikzset{ first/.style={rectangle, draw}, second/.style={first, inner sep=2mm} } any change in first is ...
7
votes
1answer
327 views

tikz complex mindmap of all disciplines and subdisciplines of knowledge

just started using LaTex yesterday and I am stuck on my very ambitious diagram of all disciplines of knowledge. Problems (some simple, some probably more complicated): change the page size to even ...
6
votes
1answer
239 views

Drawing SQL tables

I'd like to draw SQL tables, some example content and relations between the id's. Output should be something like below, without the contents. Could you help me with a head start here? Is there any ...