Questions tagged [tikz-styles]

{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}.

Filter by
Sorted by
Tagged with
3
votes
1answer
85 views

Problem using \pgfmatrixcurrentrow for labels in matrix of nodes style definition

Following code shows four different ways of adding a label with its column and row value for certain nodes in a matrix or matrix of nodes. The problem is that the fourth way (commented in code) doesn'...
2
votes
2answers
119 views

Get the units of a pgfplot between ticks on both axes (DIN 461)

As in thread Get the auto generated tick distance of a pgfplot (DIN 461) already asked, i am searching for a way to get the units between last two ticks. The solution from the mentioned thread works ...
2
votes
2answers
81 views

how to avoid the transfer of the outside of a node inside [duplicate]

How to avoid that the styles of a node style pass in a schema included in the node thus on the ECM below, the node of right becomes green and is cut in 2 and that of left does not change of color but ...
-2
votes
1answer
101 views

Hi there! I'm looking for a help drawing this diagram. Any ideas? [closed]

ttps://i.stack.imgur.com/RJiXH.png
17
votes
2answers
7k 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 I'...
15
votes
1answer
3k 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, ...
13
votes
3answers
1k views

Straight line in TikZ with 'continued' marking in the middle

I'm looking to get a line drawn in a way that I've often seen in schematics: ---||---, so a line, interrupted by two vertical bars (like a capacitor sign), the two vertical bars very close by, also ...
10
votes
1answer
2k 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 ...
8
votes
1answer
2k 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 I ...
11
votes
1answer
208 views

Draw ribbon with variable bending points

I refer to the following answer of Gonzalo Medina about creating a ribbon with text. I want to modify the existing code such that the points where the ribbon bends are quite large compared to the ends ...
14
votes
1answer
1k 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 within,...
13
votes
2answers
469 views

TikZ or symbol eyes for difficulty of examples/exercises

In this time, very busy from June, I'm creating my book of Physics and I'm using some options of the structure.tex of The Legrand Orange Book. I have occurred of your precious help if possible. Into ...
8
votes
3answers
642 views

How to create a tabbed box using TikZ?

I'd like to create a new style in TikZ for nodes with transparent background, rounded corners, with labels oriented vertically on their left on a opaque fill (similar to a tabbed paper). A sample ...
7
votes
3answers
546 views

Blurred tikz picture (Hermite-Gaussian modes)

I want to draw Hermite-Gaussian modes using tikz, all that is really needed is a blurred circle and blurred lines that overlay splitting it into different sections as shown in this picture: I am not ...
6
votes
3answers
1k views

How to draw architecture with tikz

I'm learning tiKz packages for the drawing of charts etc in LaTex but I have to draw an architecture that is quite difficult for me. I need to draw the architecture in the figure below and, in ...
6
votes
1answer
2k views

How to make a full equation with tikz?

I am using this solution here to make long dashes within a matrix, and it is working well. The code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} % possible to customize here ...
4
votes
2answers
1k views

Draw inside nodes to get BPMN gateway shapes

This question is a follow up to How to draw inside a TikZ node, using node style? I am trying to get the AND and XOR gateway from BPMN as seen here http://www.omg.org/bpmn/Samples/Elements/Gateways....
4
votes
5answers
8k views

How to plot a simple circle in LaTeX

I want to plot one simple circle, but this code is giving me the most grief. Here is what I have written: \begin{figure} \centering \begin{tikzpicture} \pgfplotsset{ticks=none} \begin{axis}[ ...
20
votes
3answers
4k 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, decorations.pathreplacing}...
12
votes
1answer
682 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] {...
11
votes
1answer
20k views

Different arrow line styes and different row sizes in tikzpicture

I am using tikzpicture environment, together with \matrix command to draw a diagram. I have two questions: Can I use different arrow line styles in the same matrix? For instance, the matrix called m, ...
8
votes
1answer
389 views

Tikz: How to use multiple parameters in pic?

How is it possible to use multiple parameters in a single pic? It works nicely with just 1 parameter, but always results in errors in case of more than 1 parameter. I found this post, which didn't ...
7
votes
4answers
2k views

Label intersection of 3 sets

I want to make venn diagram using latex, here i already made : \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{positioning,backgrounds} \begin{document} \def\firstcircle{(0,0) circle (...
7
votes
1answer
2k 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 ...
7
votes
3answers
1k views

Creating stacked shapes for tikzstyle with

I'm working on a diagram, and I'm exploring TikZ for doing it. I searched, and looks like there is no easy way of doing diagrams, like pgfplots for plotting. So, I need to create some special node ...
6
votes
1answer
1k views

What is the correct way to pass array elements to TikZ styles?

I'm trying to use styles to generate TikZ figures that have repeated, regularly spaced elements by looping through an array, but am perplexed by the results I'm getting. For example, if I define the ...
6
votes
1answer
5k 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 ...
6
votes
2answers
726 views

How does the angle key from arrows.meta TikZ library work?

The title says it all. How does angle=<angle>:<first dimen> <second dimen> works. More exactly, what do the first length and the second length mean? \usetikzlibrary{arrows.meta} \...
5
votes
1answer
434 views

How can I label forest nodes automatically, adding labels as prefixes to nodes' content exactly once?

I was trying to figure out how you might get forest to label the nodes in a diagram such as the one featured in this question automatically. So, the idea is that: level 0: content of node should be ...
4
votes
1answer
1k 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 ...
4
votes
2answers
3k views

How can I draw a tree structure graph?

I already draw the directed graph but it shows some error. MWE: \begin{document} \begin{figure} \begin{tikzpicture}[>=stealth',shorten >=1pt,node distance=3cm,% on grid,...
1
vote
1answer
1k views

How to do a style like this

Can anyone help me to do a latex style for my courses like the one in the following Screenshot : thank you.
1
vote
1answer
76 views

How to make this rectangle with an image on the left?

Here are two examples of the formatting I'm trying to recreate: I'm trying to recreate this style as closely as possible (including the slight shadow), but I don't know the font. I'd also like the ...
15
votes
1answer
15k 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 macros:...
10
votes
1answer
654 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) -- (...
10
votes
1answer
2k views

Command to set cycle list position?

Is there a command to (re)set the starting point of a cycle list? What I am using now is the cycle list shift command but I end up doing some time consuming calculations and my code is oftenless ...
9
votes
1answer
947 views

TikZ decoration to draw a winding or twisting ribbon

I enjoy TikZ styles and decorations a lot, but I still dabble with them. I know how to draw ribbons with a style, if they aren't meant to twist. But I'd like to define a style that has a twist of the ...
6
votes
2answers
1k 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
6
votes
2answers
336 views

labels of nodes with drop shadow

in cases, that all nodes in some tikz pictures have shadow. this can be done for example by: every node/.style = {draw, fill=white, drop shadow}, problem arise, if i like to some of this nodes add ...
6
votes
1answer
439 views

tikz library shadows does not accept space

With TikZ library shadows, a space immediately after the curly bracket in drop shadow = { shadow... throws an error. If there is no space after the bracket, there is no error, i.e. drop shadow = {...
6
votes
1answer
251 views

Reproducing picture as shown in the example

\documentclass[landscape,a5paper,11pt]{article} \usepackage[utf8x]{inputenc} % utf8 encoding \usepackage[T1]{fontenc} % use T1 fonts \usepackage{amsmath} % nice math symbols \usepackage{bm} % bold ...
5
votes
1answer
678 views

A nice empty node with nice nodes in forest?

I was wondering if the following specification in 'nice nodes' can make an empty node -- that is the sister to F3 node in the example below -- look symmetric (not hanging down). Everything else (the ...
5
votes
2answers
389 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{} \define@key{...
5
votes
1answer
516 views

How to define a TikZ style for a `matrix of node keys`?

I would like to define a style matrix of node keys such that \input tikz \usetikzlibrary{matrix} \tikzpicture \matrix [matrix of node keys] {red,node contents=a & blue,node contents=b \\}; \...
5
votes
1answer
9k 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 ...
5
votes
3answers
420 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 ...
5
votes
0answers
90 views

How can I get correct spacing when reusing Forest trees and when calign is center (default), last etc.?

Forest allows me to reuse (part of) a tree in another tree. However, when calign has certain values, including the default center, this does strange things to the spacing of some nodes. How can this ...
5
votes
1answer
1k 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 ...
4
votes
3answers
162 views

How to get positions of tikz curve to lines

I am trying to draw the following figure, that is to get the positions of two separate lines (curve to line) and then draw a line between them. My code, \begin{tikzpicture} \def\L{1.5} \...
4
votes
1answer
68 views

How can I share TikZ styles between pictures without making them available globally?

The tikzpicture environment allows to define styles in square brackets that are available within the picture. I would like to share the styles between multiple pictures to edit them in a single place. ...