{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

4
votes
2answers
1k views

Fancy Styled Borders in LaTeX

How to draw attractive Borders in LaTeX. A Sample image like this:
8
votes
1answer
235 views

How can I add nodes through a TikZ style?

Consider a small example below. I'd like to automate the addition of the label-node along the edge through the use of styles. I've tried the naïve solution of just adding such a necessary node ...
3
votes
2answers
119 views

How to define edges in tikz

When I use absolute position for the edges, I get almost intersecting arrows. Here is my code. Kindly help. \begin{tikzpicture} [ node distance = 2cm and 0.8cm, >=stealth, ...
1
vote
1answer
193 views

Using variables to draw a tikz diagram

I am defind my own command to plat a diagram with tikz. Instead of constant values I rather want to pass numbers to my command which determine the height of the bars in my diagram. Problem: I am ...
2
votes
3answers
156 views

Tikz Nodes Order and Shapes with a General Number of Nodes

This is part 2 of Tikz Nodes Positions and Shapes with a General Number of Nodes, a question I was asked to split. Please refer to the code below. In the table below I'd like to: Control the ...
6
votes
2answers
434 views

Tikz Nodes Positions and Shapes with a General Number of Nodes

My purpose is rather simple: use tikzpictures to draw tables of numbers, where the numbers are drawn inside colored boxes with fancy shapes, with different shapes and colors for different numbers. ...
4
votes
1answer
114 views

Modifying the look of table of contents

How to modify the table of contents to appear similar to this.Alignments are temporary but it should be similar.How do I do it?
2
votes
0answers
342 views

Designing Magazines in LaTeX [closed]

How to design attractive magazines using LaTeX?Will TikZ be sufficient.What packages to include in the book class
2
votes
1answer
177 views

using tikz to draw a flattened polyhedron

I want to create the net of a flattened hexagonal based box. Each side of the box is a slight trapezium (so in 3D the sides will not be perpendicular to the base, but that's not important to the ...
4
votes
1answer
170 views

Is it possible to define abbreviations for coding?

I am using the tikz-timing package to create a timeline since chronosys and chronology wouldn't cooperate and were too limited and archaic-looking to suit my purposes, and moderntimeline unfortunately ...
9
votes
3answers
232 views

Don't do any fills in TikZ

I have a macro that will draw several things in a TikZ picture using some styles I defined, which include fills: \documentclass{article} \usepackage{tikz} \tikzset{% ...
0
votes
0answers
39 views

Use Case diagrams , UML diagrams and E-R diagrams in LaTeX [duplicate]

Does LaTeX allow to draw Use Case Diagrams, UML Diagrams and E-R Diagrams. How to implement these? What packages to use?
8
votes
2answers
266 views

Correct use of arguments pattern in pgfkeys/append after command in tikz?

I could not find many examples for the correct use of arguments patterns in pgfkes, but I was able to come up with the following: \documentclass{standalone} \usepackage{tikz} ...
2
votes
1answer
46 views

PGF’s \foreach can’t replace in [start chain=\here]?

Here in TikZ/PGF, I need two lines of dots to connect them later. – I make those dots with chains in a \foreach loop. But I can’t get the naming to work in the loop. The code below works, but ...
2
votes
1answer
134 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
163 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
165 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
242 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
125 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
120 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
187 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
206 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
624 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
240 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
944 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
151 views

Tikz arithmetic progression

I'm trying to do something like that to show a arithmetic progression (using TikZ): Thanks! :D
4
votes
1answer
80 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
208 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
43 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
532 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
361 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
8
votes
1answer
119 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
264 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
368 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
190 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
141 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
193 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
87 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
889 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
915 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
280 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
272 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
281 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
976 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
186 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
279 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 = ...