{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

7
votes
2answers
494 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
708 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
329 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
190 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} ...
19
votes
2answers
668 views

TikZ -The pretty boxes to frame the theorems-lemma-proposition-etc

I came across a website which provides examples of pretty boxes to frame theorems in LaTeX with extension bioboite and not with TikZ. Here is code with: \documentclass{article} ...
3
votes
1answer
257 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
118 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
94 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 ...
2
votes
1answer
421 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 ...
2
votes
2answers
664 views

Making the TikZ drawing(ER Diagram) looking nicer

My ER Diagram is finally complete. But I need help in making it look complete. I need changes in, i) Making the diagram centered to the page ii)Adjusting the node distances (need very badly, not able ...
6
votes
2answers
211 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 ...
4
votes
2answers
58 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 ...
7
votes
2answers
157 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 ...
1
vote
1answer
94 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
148 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
101 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
376 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
263 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 ...
3
votes
1answer
273 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 ...
5
votes
1answer
126 views

how to wrap text in arrow with tikzset

I refer to web and found some good examples to add fancy arrow, I show my code \documentclass[a4paper,11pt]{book} \usepackage{color} \usepackage{xcolor,colortbl} \definecolor{ForestGreen}{rgb}{0.13, ...
4
votes
1answer
144 views

Define “edge types” for graphs and inheritance?

I'm really new to TikZ (but not to LaTeX) because currently I write an important work in which I want to use some nice scalable graphics. My current state is that I can define node types with ...
7
votes
1answer
208 views

Snake line with an arrowhead in the middle

in my code i need to draw some Feynmann diagrams with several lines like this one: To draw this image, i usually use this code: \tikzset{White/.style={ draw=white, postaction={decorate}, ...
4
votes
2answers
343 views

dodecahedron calendar specific weeks colors

I've seen this calendar : http://www.texample.net/tikz/examples/feature/paper-folding/ and I would like to add colors for specific lines (weeks) but I don't know how to do that. Any ideas?
11
votes
1answer
453 views

TikZ: nodes with text, scale = or \large, \Large, \Huge?

If one needs to slightly increase the size of the text in a TikZ node. What are the pros and cons of using scale= in the style options instead of changing the font size with the usual LaTeX\TeX ...
8
votes
1answer
156 views

Double style and double colour line in tikz

in my document i have a lot of lines like this: I usually do this with a code like this: \begin{tikzpicture}[node distance = 5cm] \node (a) {}; \node (b) [right of=a] {}; \draw[red] (a) -- (b); ...
3
votes
1answer
218 views

Tikz positioning inside matrix node

I have created a figure for tikz that looks like this: But when I add it inside a matrix node it became like this: Why does this happen? My code for the first is: \begin{tikzpicture} ...
5
votes
1answer
192 views

How can I make Beamer overlays with TikZ node attributes?

As a follow-up question to Tikz animated figure in Beamer, how can I animate a particular attribute of a node? MWE \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{graphs} \tikzset{ node ...
0
votes
0answers
108 views

How do i create this graph on latex?

So…i made this graph using paint(!)…and it looks horrible. I have used tikz to create similar graphs but this one seems to be more difficult.
6
votes
1answer
141 views

Can't find the documentation for \tikzstyle or `+=` operator in tikz

I've noticed in a number of examples that the following is occasionally used when working with tikz: \tikzstyle{every picture}+=[remember picture] When I search the documentation I can't find ...
0
votes
2answers
1k views

Drawing Flow Chart with LaTeX

TikZ can draw flow chart but I want some sort of a graphical tool where I can create flowchart in an interactive way and then somehow export to LaTeX. Any advice? I am not a geek and the interface ...
5
votes
1answer
63 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} ...
27
votes
1answer
11k views

How to set default style for arrow tips in TikZ?

I am creating multiple TikZ pictures within one document and would like to set the default style of arrow heads for all the pictures to the latex style, i.e. like -latex does, so that I don't have to ...
6
votes
1answer
92 views

Cross-reference of custom environments created with environ and TikZ package

Problem: I want to create an environment named Example, and the environment has a counter (number within chapter). I want to refer to the counter for illustration just as the table, figure and ...
5
votes
1answer
197 views

Still some of the flows missing in the flowchart

I have posted this question few days back but still I can't complete the algortihm. This is the uncompleted work done so far \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
264 views

Reuse tikz picture in another tikz picture [duplicate]

I have a TikZ picture \begin{tikzpicture}[scale=0.5] \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw (0,1) arc (90:270:0.5cm and 1cm); \draw[dashed] ...
3
votes
1answer
297 views

flow chart page size issue

I have been doing this since from last month. I want to draw this flow chart using \documentclass[a4paper,11pt]{report} but if I use above configuration (which I want to use) the flow chart does ...
4
votes
1answer
978 views

ylabel style when axis y line=right

When I'm using axis y line=right, it appears ylabel style is not applied, as illustrated by this MWE: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.8} \begin{document} \Large ...
3
votes
1answer
123 views

TikZ - I do not know the key … despite correct code (can't define a new style anymore)

I just wanted to define a new style, a very very simple one with align left, text width=6cm but I found out even simpler code won't work. Basically I assume my installation is broken or I run the code ...
2
votes
1answer
112 views

\xleftrightarrows command in TikZ with arrows matching the LaTeX font

There is the command \xrightarrow that inserts an arrow that extends with the text you put above and/or under it. There is also the command \rightleftarrows (notice the "s" at the end) that display ...
3
votes
1answer
355 views

Commutative diagram using TeX Writer

I bought an ipad app TeX writer and I am wondering if I can draw a commutative diagram. It includes the packages amslatex revtex4-1 IEEEtran babel cyrillic graphicx color xcolr geometry algorithm2e ...
2
votes
1answer
2k views

Tikz: increase arrow head size

Given the Tikz example here http://www.texample.net/tikz/examples/double-arrows/ how do I increase the size of the arrow head? I'd like to make it way bigger but, after manipulating the code, I was ...
2
votes
0answers
104 views

Tikzpicture highlight on matrix in different slides

I am new to latex but I have to make a presentation in university with it (or more I want to do the presentation in LaTeX). But I am struggling with the package tikz. So my first question is ...
3
votes
1answer
86 views

How to give simple label to each connected component of graph

I have a disconnected graph, with six components. I would like to give some name at the bottom for each component. I would like to represent them with $D_1, D_2 . . .D_6$. Can some one help me out. ...
4
votes
1answer
117 views

TikZ: Create a downward chain of nodes with different heights

I want to create a downward chain of TikZ nodes. Some nodes are rotated and they may differ in height. Consider the output of the MWE below: The horizontal chain adapts to the different widths of ...
3
votes
1answer
148 views

How to get edges after vertices in a graph using TikZ?

The following code is giving me a graph, how to display edges one after the other instead of displaying total graph at a time. \begin{figure} \begin{tikzpicture} [scale=.8,auto=left,every ...
7
votes
2answers
225 views

comma in node name [TikZ]

In my database some objects have name in A,B format, i.e there is comma in between. I wanted to do something like this \node (A,B) {Comma}; \node (x) {normal}; \draw (A,B) -- (x); However, this is ...
2
votes
1answer
204 views

Breakable boxes with Tikz and right and leftmargin

I've found a method to obtain breakable boxes, using polyglossia for arabic, and the Tikz package and I have two problems... 1) the commands leftmargin and rightmargin of Tikz have no effect on the ...
3
votes
1answer
86 views

How can I style tkz-euclide points?

The tkz-euclide package lets you do things like \begin{tikzpicture} \tkzDefPoint(0,0){A} \tkzDefPoint(4,0){B} \tkzDefPoint(2,3){C} \tkzDrawPoints(A,B,C) \tkzDrawSegments(A,B B,C C,A) ...
7
votes
3answers
207 views

To make one environment flow into another without empty space

I have this design at the moment. However, when you have many of those, they distract much. I propose to have Answer just on the same line with Question like Question 41 Lorem ipsun. Answer 38 ...
1
vote
0answers
102 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is ...