{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

2
votes
1answer
125 views

Tikz How to unset/cancel/disable text width?

I want to style a bunch of nodes using a complex Tikz style generalStyle, defined as \tikzstyle{generalStyle}=[draw,... lots of options here..., text width=50pt] Now, the design of an illustration ...
3
votes
1answer
147 views

tikz includegraphics within style

I searching for a solution to define a node style whish includes a png-picture. \documentclass[10pt]{article} \usepackage{tikz} \begin{tikzpicture} [ PIC/.style n args = {1} ...
1
vote
1answer
153 views

How to define a command that could generate similar environments just as \newtheorem does?

It's well known that the LaTeX built-in command \newtheorem could generate a series of the theorem environments that are similar: they share the same theme of layout style but differ in their name and ...
5
votes
1answer
228 views

How to change the color scheme to make this figure more elegant?

Here different colors means different weight of the edge, and the color of the points is arbitrary. The tex code: \documentclass[aps,prl,superscriptaddress]{revtex4} \usepackage{subfigure} ...
8
votes
1answer
123 views

Why doesn't “double” work in the options list of a scope?

An example document: \documentclass[convert={size=320}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[line width = 2pt, red] \foreach \x in {1, 2, 3, ...
4
votes
1answer
117 views

Distinction between number and dimension in tikz key-value interface

When declaring shapes, I usually define the desired shape width with: minimum width = <number> <measure units> However, sometimes, I calculate calculate the shape's width separately. In ...
5
votes
1answer
178 views

tikz parameterized circle node with t-lines inside within a tree diagram

I would like to draw a tree diagram consisting of circle nodes with three subparts divided by a t-line (see sample below). Instead of separating every tree node by hand I would like to only specify ...
1
vote
1answer
1k views

set textcolor in tikzstyle

How can I set text color inside tikzstyle? I tried as shown below, but surely that is not the correct thing. I can do it seperately in each node, as shown here, but I want to declare it globally. ...
3
votes
1answer
1k views

Tikz diagram with bold text

I'm trying to make a diagram using Tikz, however I have trouble combining; fixed text widths, centered text and font=[\large,\bf , etc]. When the font command is used the text has a slight offset to ...
4
votes
1answer
181 views

Error using tikz/pgf with font=\size (and minimal document class)

I'm having an issue with pgfplots/tikz when trying to change the font size for legends/nodes. Any command that contains "font=\size" fails (for example, "font=\small") with the error "Undefined ...
4
votes
1answer
538 views

Tikz snake arrows

As suggested by the manual, I use the following code the draw snake lines. I defined a snake arrow/.style, it works perfect when I apply it to a single edge'. But it does not work if I apply it to a ...
3
votes
1answer
219 views

How to create a tikzstyle for special edges, like transfer and rest arcs?

I need for petri nets some special edges for arcs: Reset arc which has an cross at Place Transfer arc which has an dashed edge from place to place and an snaked edge from transition to dashed ...
7
votes
1answer
745 views

TikZ Self Loops Style Question

I have a question on how to "style" the self loops in my diagram. Here is my preamble: \documentclass[letterpaper]{tufte-handout} % Additional LaTeX Packages \usepackage{amsmath} ...
8
votes
0answers
139 views

Is there a better way to display this information? [closed]

I have drawn this picture in tikz. Is there a more visually pleasing and intuitively appealing way of displaying this information? I feel what I have drawn is dull and boring. I have to include more ...
3
votes
1answer
1k views

Draw a filled circle at every point of a TikZ plot

Consider the following simple example: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \coordinate (a) at (0,0); \coordinate (b) at (1,1); \coordinate (c) at (2,0); ...
4
votes
3answers
145 views

Tikz arithmetic progression

I'm trying to do something like that to show a arithmetic progression (using TikZ): Thanks! :D
4
votes
1answer
76 views

Preventing argument expansion

TikZ is able to define parametrized styles using arguments like #1. If used in \newcommand or \newenvironment, they mix up with the arguments of the command. The effect is so severe that the following ...
7
votes
1answer
192 views

exam class : question with circles of same size

Using code mentioned below : i'm able to circle question numbers : \documentclass{exam} \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ ...
0
votes
0answers
41 views

PDFLATEX : Cover Page Image with No Margin [duplicate]

I'm creating exam paper using exam class as mentioned below: \documentclass[a4paper,addpoints,answers,10pt]{exam} \usepackage{tikz} \usepackage{graphicx} \usepackage{wallpaper} ...
14
votes
4answers
513 views

How to plot blurred curves with PGFPlots?

I'm trying to replicate the following plot with PGFPlots: In this answer, the author plays with opacity when drawing overlapping ellipses. Is it possible to use similar code with arbitrary curves? ...
5
votes
2answers
338 views

Split circle in tikz unevenly

How can split circle (tikz shape circle) in two parts. However, I would like the split to be uneven i.e. the top part occupy lets say 30% of the area and lower part the rest 70%. Thanks
7
votes
1answer
113 views

Is it possible to derive a new style from an existing style?

Is there a convention in TikZ for defining a new style as an extension of an existing style? As it stands, I can do: a/.style = { black, very thin } Then I could extend this style locally ...
3
votes
1answer
252 views

tick mark separation

My graphs have two ticks on the x-axis. I'd like to have 3 graphs across a page and include y-axis labels. Right now that wont fit. Is it possible to move the x-tick marks closer together so the ...
4
votes
2answers
338 views

Tikz-timing table dashed vertlines

I'm in a tikztimingtable environment and want to include dashed vertical lines after every period width (the default number/spacing). What I currently have (code below) gives me solid gray lines, but ...
6
votes
1answer
180 views

Change filling of TikZ nodes in repeated picture

A diagram drawn with TikZ is used a couple of times and I defined a command for it. In the first picture I want to mark a subset of the nodes by filling them with light gray, and another subset of ...
5
votes
1answer
140 views

Set a tikz node's contents from a style

In tikz, how can I set a node's contents from a style ? For example, instead of writing this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} ...
7
votes
3answers
187 views

In tikz is there a way to set a node style to center the center of each node within a given scope

In the following MWE, I know that the commented line works. What I want to know is why the every node/.style approach is not working. \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
1answer
85 views

unexpected tikz style behaviour

I was doing a figure based on drawing some rectangles which the area represents the relative amount of such element and I encounter two unexpected situations: (1) I decided to go with rectangles to ...
5
votes
1answer
821 views

Use math font for TikZ arrow labels

I am trying to make arrow labels look like they are written in math mode. This is what I have: This is what I want , I tried to use different fonts but without success. This is my code: ...
25
votes
2answers
825 views

Arguments for TikZ style

Motivation To put arrows inside of a TikZ path I have defined myself a TikZ style arrow inside. To make it even more portable I want it to take arguments like this \draw[arrow inside={pos = 0.1, end ...
9
votes
2answers
270 views

Notes on Sentences

I have a sentence like this "पठ् + अ + ति" and I want to add some notes like shown in the attached image. Is there a package for such things or I need to work with Tikz. Any reference material or ...
2
votes
2answers
255 views

Style inheritance in TikZ trees

As I read the rule for style inheritance in a tree (pgfmanual 18.4, page 215), the naked [rect] below should mean that the node labeled "empty" be rectangular. But it's not. What am I doing wrong? ...
5
votes
3answers
277 views

How can I complete this graph?

I am trying to draw a histogram graph using simple tikz codes. Here is my code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots, pgfplotstable} ...
4
votes
1answer
850 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 ...
4
votes
0answers
175 views

Latex - picture color and minted color

I'm using minted package. If logo (top-picture) contains green, code color change. \definecolor{codecolor}{RGB}{108,247,10} ...
2
votes
1answer
258 views

Subnodes in a vector in TikzEdt

I am trying to display two vectors in two differnt nodes, and then, link some elements using arrows. \tikzstyle{line} = [draw, -latex'] \begin{tikzpicture}[node distance = ...
3
votes
1answer
894 views

Display Database Instance Relationship with TikZ

I'm trying to display all of my corporate database instances and their relationship to each other, so to speak the database links. I found the geometry shape cylinder using TikZ ...
19
votes
2answers
612 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} ...
7
votes
1answer
164 views

Create a coordinate node at each point of a path

How can I create a TikZ/pgf-style that will put a coordinate, which should be named automatically, at each point of a path? So the following code \draw[put coordinates](0,0)--(3,2)--(4,7)--(-2,1); ...
1
vote
1answer
179 views

concave curve in tikz

How can we draw a concave curve like the following one without having any numeric data?
4
votes
1answer
292 views

Changing the format to a plot ticks (using pgfplots)

Dera all: I'm using pgfplots to plot the data from the table below (forst vs. fourth column), 3000 1.2970e+00 0.198956 0.258046 3100 8.6050e-01 0.18747 0.161318 3200 ...
5
votes
1answer
291 views

Box around several but different items in an itemize environment

I am trying to highlight, at the end of my slide, several items in a list with a box in something similar as in the method shown in Box around a few items in an itemize environment. The difference ...
3
votes
1answer
267 views

ChangingTikz Node Style works only once in Beamer

I am trying to change the node style of a Tikz-node twice in Beamer but the second time the change is not done. What needs to be fixed in my MWE to make it work? \documentclass{beamer} ...
4
votes
1answer
720 views

Arguments of tikzset inside a beamer document

I am trying to use tikzset with an argument in a beamer document, and I am having an error I do not understand. \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}{My try} ...
4
votes
2answers
331 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?
2
votes
0answers
151 views

Preserve node and font size when scaling [closed]

I am using tikz for many pictures in my thesis, but I am not really clear on how to scale the pictures to fit my needs... I generally use "\node"s which I connect with line segments. I draw and fill ...
4
votes
1answer
280 views

How to set a default parameter for all edges

Question How do you set all edges in an automaton to have the additional parameter double? This should be easy, but I can't find the solution here or in the tikz/pgf manual or anywhere else. ...
1
vote
1answer
730 views

How to write above a line in a tikzpicture

How could I write just above the blue lines of this tikzpicture? \begin{tikzpicture}[ scale=5, IS/.style={blue, thick}, LM/.style={red, thick}, axis/.style={very thick, ->, ...
3
votes
1answer
258 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
1k views

How to create following block diagram structure in LaTeX

How can i create this kind of connected and cascading block diagram in Latex?