The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2
votes
2answers
40 views

Negative amplitude signals on tikz-timing (Return To Zero)

I'm trying to do RZ with tikz-timing, like in the following picture. For that I tried using the high impedance timing character Z, like in this MWE : \documentclass{article} \usepackage{tikz-timing}...
0
votes
1answer
44 views

Text of nodes in tikz [duplicate]

I want to create a table in LATEX using tikz and I want to fill text into the table. I tried to do it with nodes, but the nodes overlap and so the text is not displayed correctly. Is it possible to ...
2
votes
1answer
39 views

Rotation of an object like \ddots in Tikz picture

I have the code provided below. The code produces the following picture: I want to rotate \ddots, which are showed in red circle, but can not figure out how to do this. CODE: \documentclass{...
1
vote
1answer
26 views

I have already plotted a function now I would like to delete two coordinates and group the ylabel with his value then put the origine O(0,0)

\documentclass[12pt,a4paper,french]{article} \usepackage[T1]{fontenc} \usepackage{pgf,tikz,pgfplots} \pgfplotsset{compat=1.15} \usepackage{mathrsfs} \usetikzlibrary{shapes.geometric} \usetikzlibrary{...
0
votes
0answers
32 views

Restarting figure numbering

Does anyone know how to start the numeration of figures from the second figure, that is, I would like the first figure, which is illustrative, not to be included in figure counting, so that Fig. 1 ...
2
votes
1answer
48 views

Text in a node in tikz does not seem to be vectorial

I am trying to draw a nuclides chart in tikz. But when I look at the different elements names (C, Be, etc.) I notice that my text does not seem to be vectorial... What is very strange is that some of ...
0
votes
2answers
90 views

Asking tikz code for this diagram

Can someone provide me the tikz code for the following diagram? Any help would be appreciated. Thanks so much
4
votes
2answers
81 views

Arrow styles in TikZ trees

Here's the LaTeX for a figure I'm working on: \documentclass[sigplan,10pt,anonymous,review]{acmart}\settopmatter{printfolios=true,printccs=false,printacmref=false} \usepackage{subcaption} \...
2
votes
1answer
53 views

Tikz node without text

I have a lot of diagrams with shapes where I draw lines between certain points on the boundary of those shapes. With Tikz I can use nodes to draw shapes, and use anchors like "node.west" to draw lines ...
0
votes
2answers
55 views

How do I remove gaps between line segments of tikz's draw?

I have read the related question: Tikz Understand white space between node and draw, and tried the solutions proposed therein. I am trying to draw a phylogenetic tree. I define the leaves and ...
3
votes
1answer
1k views

Can it be improved? Help me to fix this code [closed]

\documentclass{standalone} \usepackage{tikz} \begin{document} \usetikzlibrary{backgrounds} \def\centerarc[#1](#2)(#3:#4:#5);% % Syntax: [draw options] (center) (initial angle:final angle:radius) {...
0
votes
1answer
26 views

Adding an Under-brace Under a Label, `tikz`

I'd like to add add an (under)brace under the labels in the following diagram, indicating the part of the structure labeled "A" and "B", respectively. What I have makes the brace too close to the ...
2
votes
2answers
72 views

Add an icon to a node in tikz

I would like to add an icon on the border of a node. I can do it easily for one node: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[draw] (A) {content};...
3
votes
2answers
63 views

How to perfect the line joins?

I'd like to perfect my linejoins. How can I accomphish this? I tried line join=round in the \begin{tikzpicture} environment, like so \begin{tikzpicture}[line join=round], but it didn't solve the issue....
4
votes
1answer
98 views

Cube around 2 points with correct perspective

I'd like to display a moving rigid body with 2 coordinate frames attached to it. The body should be displayed around every link in the image below, so that the body is parallel to the line connecting ...
8
votes
1answer
281 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 ...
2
votes
1answer
86 views

Stroke a path so that it's rendered half in one color and half in another

This is a question that's been asked twice before, but both of the previous solutions involve clipping; my paths are more complicated and I have a lot of them, the clipping solutions provided here and ...
2
votes
1answer
39 views

How to add animations to presentation made by Latex?

I am using latex template from overleaf to make my own presentation. In Microsoft Power point, it is very easy to do animations. Could you please let me know how to add animations to the following ...
1
vote
0answers
31 views

Tikz Sub/superscripts within a node

I just started using TikZ, and I'm still reaqcuainting myself with LaTex in general. When defining a node in TikZ, how do I apply simple stylistic things like subscripts and superscripts?
1
vote
1answer
30 views

TikZ - Substyle + Relative coordinates

I have two problems to solve withe the following TiKz code. I would like to use relative coordinates such as to have a wider blue rectangle. I have try to play with ++ without success. All my styles ...
4
votes
1answer
86 views

Drawing Keynote Line Style using Tikz

What is a simple way to draw a line in tikz with a style similar to the following line created in Apple Keynote?
0
votes
1answer
66 views

How to draw light scattering by DPC and Photometer using Tikz [closed]

I am currently writing my PhD Thesis using Latex. I was told that it is better to draw a diagram using Tikz. However, I had never used Tikz before. I like to draw a diagram like presented below. ...
0
votes
0answers
30 views

How to enforce lower case in TIKZ with font type \scshape?

I am using Tikz to generate a table. I want to generate a caption of the table similar to a certain journal format. I was able to create the caption with the same font. However, all letters are in ...
0
votes
1answer
52 views

How to add a new color in a plot?

I have a plot where there are multiple legend entries. The colors rotate to different colors for 6 legend entries. After that, I have a repeat color. How do I specify a new color for the 7th entry (in ...
8
votes
1answer
195 views

Connecting points from separate Tikz figures

I have this code to draw an oscilloscope: \documentclass[12pt]{standalone} \usepackage{newtxtext,newtxmath} \usepackage{tikz} \begin{document} \def\scl{1}%scaling factor of the picture \begin{...
1
vote
1answer
45 views

How to start Decision Tree with a split?

I am trying to draw a simple decision tree like in Figure 1 of https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/j.1365-2656.2008.01390.x Unfortunately whatever I try, I cant adjust the ...
3
votes
1answer
91 views

Arrow doesn't touch block

I'm currently drawing the following diagram: For some reason one of the arrows do not touch the block IFOC. How do I fix that? My code: \documentclass[tikz,border=2pt]{standalone} % Inclui ...
1
vote
1answer
58 views

Editing pic TIKZ block

I'm drawing the following diagram: And I'd like to pass "PWM Inverter" as a parameter when creating the block, which I couldn't do... Also, I'd like to increase the size of the text inside the block. ...
9
votes
2answers
330 views

tikz block diagonally divided

I'm trying to draw the following diagram: What I could do so far: The code: \documentclass[tikz,border=20pt]{standalone} \usetikzlibrary{shapes,arrows} \usetikzlibrary{decorations.pathreplacing} \...
1
vote
1answer
42 views

TikZ - Figure depicting the equilibrium structure of a game (with text within two axes)

I am trying to produce the following figure depicting the equilibrium/equilibria structure of a game (game theory) with some text within two axes (X and C, separating them by dashed lines connected to ...
2
votes
1answer
87 views

Pie chart with joined legend position

I'm a LaTeX rookie so I'm hoping someone will be able to help me. I've been stuck with this figure for quite some time and haven't found a solution. Specifically, I have made 2 pie charts next to ...
9
votes
3answers
392 views

Tikzcd pullback square issue

I have a tikzcd diagram \begin{center} \begin{tikzcd} F \arrow[r] \arrow[d] & * \arrow[d] \\ X \arrow[r, "f"] & Y \\ \end{tikzcd} \end{center} which looks like this: I wish to add a symbol ...
5
votes
3answers
77 views

Equidistant nodes with above right =

I'm trying to draw a decision tree. Since the tree branches out to the right, I need to decrease the vertical distance between nodes as I go to the right. However, I want to keep the horizontal ...
3
votes
2answers
58 views

Changing arrows style in tikz-cd

I am working with a lot of diagrams, and I like the font mathabx, at least for the arrows. I managed to have \rightarrow in mathabx style, so when I am using that command (and related, like hook, left ...
3
votes
1answer
77 views

How to use colon (':') as part of tikz syntax while in \ExplSyntaxOn environment?

I want to create a simple tikz style highlight which will draw ellipse around the object and write label at requested position. To avoid providing the font through the text argument, I've placed it ...
1
vote
1answer
79 views

LaTeX formatting with Tikz

I am pretty new to Tikz. I am wondering how one would go about separating their text from a diagram. For example, if I were to write a short geometric proof, and I have a diagram and an explanation, ...
0
votes
2answers
85 views

How can I make a picture like this with tikz? [closed]

I want to make like this picture with tikz thanx
1
vote
0answers
50 views

Asymmetrical margins on tikz drawing

I am working on this picture. It is almost completed, but for some reason I can't trim the left margin so there is some annoying extra space. (If you open the image on a new tab is easier to see). It'...
4
votes
2answers
103 views

Draw parts of a split rectangle in a dashed/dotted style

I try to draw parts of a split rectangle in a dashed or dotted style. Thus I want the following code \node[draw,rectangle split,rectangle split parts=2,rectangle split horizontal] {foo \nodepart[...
2
votes
1answer
61 views

TikZ append does not overwrite – what does?

Main Question I want to change all properties of certain TikZ elements in the style of TikZ’ append. However, unlike its name suggests, append provides only defaults. By contrast, I wish to override ...
0
votes
0answers
46 views

Create the same figure

Can someone please help me with this figure I tried to create the same but I just make things worse...I even had issue with my programm... I am new to LaTeX figure drawing Thank you so much \...
6
votes
1answer
91 views

Where is my understanding of TikZ styles wrong?

I am trying to learn TikZ by reading the manual (p.34). I know my understanding must be completely off the rails, since nothing is working as I think I should; but I'm not sure what I misunderstood. ...
1
vote
0answers
45 views

Tikz-standalone without redefining tikzstyle

I have a tikz standalone, where I make a tikz picture that is using tikzstyles I define in this file. \tikzstyle{block} = [rectangle, thick, minimum width=3cm, minimum height=1cm, text centered, text ...
2
votes
1answer
50 views

tikz scale not congruence in Tex

I have code for a figure below \begin{tikzpicture}[scale=1,font=\footnotesize] \coordinate (A) at (0,0); \coordinate (B) at (0:1.5); \coordinate (C) at ([shift={(B)}]-50:1); \coordinate (D) at ([...
2
votes
2answers
141 views

Numerated Boxed Example Macro with Tikz Arrows

I would like to recreate this image in the form of a macro: So far I have skeleton: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,snakes} \usepackage{amsmath,amssymb} \...
4
votes
3answers
114 views

Tikz, arrow formatting

Consider the following picture: and the code at the bottom. I'm happy with the result on the left; now I've started with digraphs and I need arrows; I'm trying to get the - for me - best possible ...
3
votes
3answers
291 views

Curly braces adjustment in tikz?

I am using help from this answer for my writing without much understanding of Tikz package. I need to do following adjustment in the above diagram: downward movement of curly braces A small gap ...
2
votes
2answers
96 views

How to have a filled pattern

I have the following rectangle: \documentclass[tikz,11pt]{standalone} \usepackage{pgfplots} \usetikzlibrary{shapes,fit,chains,positioning,patterns} \usepackage{xcolor} \usepackage{graphicx} \...
1
vote
1answer
52 views

Multiple loops position in Tikz state diagram

I am trying to make a state diagram with Tikz, my code is below. The problem is I can't figure out how to make the position of the self-loops in a state not 'crowded'. I tried changing the values in ...
2
votes
1answer
83 views

How to pass parameters to \tikzstyle?

I am using multipart shapes to create two-sided nodes and want to change the background color of the left node based on a user-provided (color) parameter. Changing the default parameter at \tikzstyle{...