We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
1answer
88 views

Tikz/pgfplots Reduce distance between Tick labels line break

I'm pretty desperate with a problem I have right now. I'm trying to create a lollipop plot that has different categories on the y-axis and occurrences on the x-axis. According to the below code. Note ...
3
votes
1answer
76 views

How to make this TikZ picture more idiomatic? (environment diagram)

I am re-typesetting a picture (Figure 3.9) from "Structure and Interpretation of Computer Programs": The result of my TikZ musings is the following: Please, ignore the white-ish main colour, I want ...
0
votes
1answer
32 views

Change the edge style

I want to make the attached tikzpicture. First, how do I change the arrows to ankled arrows? Second, how do I align a node below a node that's at the top to skip the one between them? Code \begin{...
1
vote
1answer
52 views

How can I draw antenna beam-like diagram with latex

I would like to draw beams pointing towards any angle of my choice as shown in the picture. Can anyone help with the latex code please?
0
votes
1answer
18 views

add a plus sign for the last tick mark along the x axis

Here is a MWE. \begin{tikzpicture}[scale=0.92] \begin{axis}[ xmax=100,xmin=0, ymin=0,ymax=1, xlabel=\emph{x axis},ylabel=\emph{y axis}, xtick={0,10,20,...,100}, ytick={0,0.1,0....
1
vote
2answers
33 views

draw a specific part

how can i color a specific part like the one in white? here the code: \documentclass[headsepline,BCOR=10mm,11pt,twoside,openright,cleardoublepage=empty,bibliography=totoc,numbers=noenddot]{scrbook} ...
1
vote
0answers
43 views

Kinematics CAD package for LaTeX

Do any good libraries exist for drawing kinematics diagram in LaTeX. I am looking for something similar to the following image. Duplicate
2
votes
1answer
40 views

TikZ: How can text in a node be increased?

I'd like to draw some circles with text inside. I can increase the radius, but the text naturally always stays the same. I know \Huge, which I tried to use, but it seems not to work in math-mode. How ...
3
votes
1answer
100 views

How to I set “rounded corners” inside a style in TikZ?

I have the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} [karl/.style ={help lines,color=blue!50}] \filldraw[step=.5cm,karl] (-1.4,-1.4) grid (1.4,1.4)...
1
vote
1answer
34 views

Defining node style when label is different in each node

Is there a way to reduce the amount of TikZ-Code I have to write for this collowing graphic? Every node has the same parameteres except for the specific label text and its positioning so I thought of ...
2
votes
2answers
49 views

Changing shapes and colors of blocks also redirecting arrows properly

I would like to have a flow chart as shown below. I have my initial latex code below but I am having trouble changing shapes, colors of blocks and redirecting arrows properly. Someone, please help. ...
1
vote
0answers
37 views

Is \tikzpictextoptions not supposed to contain the text after the quotes only?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes} \begin{document} \tikzset{ thing/.pic={ \node {\tikzpictext}; \node at (0,1) {\tikzpictextoptions}; } } \...
6
votes
1answer
117 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 ...
0
votes
2answers
58 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 ...
2
votes
2answers
49 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
48 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 ...
0
votes
2answers
95 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
2
votes
1answer
45 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{...
0
votes
0answers
37 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 ...
1
vote
1answer
30 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{...
2
votes
1answer
51 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 ...
4
votes
2answers
86 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
71 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 ...
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
67 views

Filetree with pagebreak works but just with one Filetree

I found a latex code (file tree with page break, the owner/creator of this code (pagebreak+filetree) is Sašo Živanović). I want to use this code for a documentation. I want to have several different ...
0
votes
1answer
28 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 ...
3
votes
2answers
62 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 ...
2
votes
2answers
75 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};...
4
votes
2answers
68 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
2answers
577 views

TikZ path with rounded corners and decorations.markings not working as expected (pos=0.0 at wrong location)

I want to put small round markings at fixed distances on a six-pointed star. There are two problems though: pos=0.0 is not at the expected location, but slightly shifted possibly due to the rounded ...
5
votes
1answer
103 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
336 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
87 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
43 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
33 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
32 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
100 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
56 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 ...
0
votes
1answer
68 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
31 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 ...
8
votes
1answer
212 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{...
2
votes
1answer
105 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{...
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
108 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 ...
9
votes
2answers
337 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
66 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. ...
1
vote
1answer
49 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
98 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
422 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 ...
36
votes
2answers
3k views

Playing around with a Rubik's Cube in TikZ

My questions are: Is there a possibility to get a view of a Rubik's Cube in TikZ such as in pgfplots; like view={NUMBER1}{NUMBER2}? How can be the Rubik's Cube be scrambled with a number a, such that ...