Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn 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}.

87 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10 votes
0 answers
4k views

Dotted/Dashed text

is there a way to write dashed or dotted letters such that they appear like normal but dotted or dashed? i mean no word art or such things which i get when i use \pdfliteral{q 1 Tr [0.1 .8]0 d}#1\...
Ahmed Sokar's user avatar
6 votes
0 answers
197 views

How is It possible to draw 2 merging spherical caps with tikz?

I am trying to reproduce a figure using only tikz. I have produced the figure using Inkscape but I am wondering if I can do it fully in Latex. This is the aimed figure : And with the help of some ...
Waxler's user avatar
  • 776
6 votes
0 answers
481 views

zoombox array with adjustable width ratio

I've become an avid user of the zoomboxarray library created by Jake. Soon, one becomes aware that a fixed ratio (1:1) between the width of the subcaptionboxes containing the full image and the \...
Alessandro Cuttin's user avatar
6 votes
0 answers
138 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 ...
cfr's user avatar
  • 201k
3 votes
0 answers
81 views

How to customize the height highlightings with tikzmark package?

How to customize the height of highlightings with tikzmark package?. In the documentation, page 17-18, you can see the explanation (at lower part in this message) https://ctan.javinator9889.com/...
Mika Ike's user avatar
  • 3,781
3 votes
0 answers
2k views

LaTeX packages for timelines

Are there any LaTeX/TikZ packages that can create timeline as show in figures?
nxkryptor's user avatar
  • 1,498
2 votes
0 answers
38 views

Use another parameter for tikzset

I want to define a new Tikz style that uses the same parameters as the object you used. I managed to get the line width, but I am not able to get line cap, for example. \documentclass{beamer} \tikzset{...
Luca Benatti's user avatar
2 votes
0 answers
171 views

Is it possible to access and modify SVG paths with PGF/TikZ?

I have drawn a diagram in Inkscape (with a little help from Blender) and saved it as a SVG file. I want my labels on the diagram to match my document's (both typeface and size) and my labels also ...
sigsegv's user avatar
  • 625
2 votes
1 answer
712 views

Pie chart with legend position south

I tried the legend to the south code from this question (see code below): Pie chart with joined legend position but it unfortunately does not work. If i change yshift to a fixed value it work. BUT ...
Jessica Walther's user avatar
2 votes
0 answers
141 views

repositioning tikz-pins in pie chart

I only want to know if anyone has an idea on how to reposition the tikz-pin in a way that they look like the pins in the example picture without creating extra nodes? this is my code so far: P.S.: if ...
kakadu22's user avatar
2 votes
0 answers
356 views

Apply polar transformation to a shaded rectangle

Update How can I get the shade to vary in the theta direction of the transformed figure rather than left to right? I was hoping the left to right shading in the original rectangle would become a ...
Dipole's user avatar
  • 613
2 votes
0 answers
151 views

Create tikz image of restricted map of a plane using

Can anyone help me to produce the following in Latex (or beamer)?. It is a linear isomorphism $g$ in $R^{3}$ restricted to a plane generated by $v_{1},v_{2}$, and its image is a plane generated by $v_{...
Mal JA's user avatar
  • 401
2 votes
0 answers
327 views

Variable dash spacing on a line in tikz/pgfplots

I would like to have a variant on the tikz dashed line style that begins with dashes spread far apart, and as the line continues to plot, the spacing between dashes reduces, perhaps to zero at the ...
alex.jordan's user avatar
  • 2,179
2 votes
0 answers
632 views

Creating a First Derivative and Second Derivative test

recently I've been trying to create a first and second derivative test showing critical points and increase/decrease/concavity. I've gone this far: \usepackage{tkz-tab} \begin{document} \begin{...
bru1987's user avatar
  • 903
2 votes
0 answers
158 views

braces marks with \framed & \tikz

I'm trying to mark some paragraphs with boxes, braces, brackets or parentheses coupled with notes in margin… My first test was using \makebox & minipage according to this discussion as you can see ...
Zouib's user avatar
  • 857
1 vote
0 answers
50 views

A 3D shape and text inside a TikZ box

I have made this so far but I m not able to add those spheres or cubes under that TikZ box and write inside of them. Also I couldn't create the arrows. \documentclass[ border=1cm]{standalone} \...
BROK's user avatar
  • 119
1 vote
1 answer
240 views

How to draw a fancy box with an overlay rectangle enclosing the title box

I kindly request to be helped to achieve my target of recreating the fancy box below. I attempted with the codes below: \documentclass[openany]{book} \usepackage[many]{tcolorbox} \usepackage{tikz} \...
Kidegalize's user avatar
1 vote
1 answer
100 views

tkz-fct: How to set line style of a tkzGrid

I'm using the tkz-fct package and I'd like to change the appereance of the grid issued with the command \tkzGrid , for example switch from solid to dotted lines. So far I managed only to change the ...
Antonio's user avatar
  • 107
1 vote
0 answers
69 views

3D Plot - Step Function

I would like to generate a 3D picture for a step function, something like this: but I got stuck. Below, I tried something. \documentclass{article} \usepackage{tikz} \usetikzlibrary{3d} \begin{...
Iuli's user avatar
  • 471
1 vote
0 answers
33 views

Why does setting a tikzfading style from within a tikzpicture increase the boundary box?

I am using tikz with the tikz library "fadings". I am drawing a tikzpicture that involves looping through a sequence, and performing an action for each term of the sequence. One such action ...
Adam Higgins's user avatar
1 vote
0 answers
24 views

Why does \tikzset{every picture/.style={x=1pc, y=1pc}} break pgfplots scaling?

I have run into a weird problem with TikZ and pgfplots. For regular TikZ drawings I set the scale with \tikzset{every picture/.style={x=1pc, y=1pc}}, but when after that I try to make a plot with a ...
Sascha's user avatar
  • 11
1 vote
0 answers
46 views

Why isn't the transform applied to both nodes?

I'm attempting to draw some 3d projections to help explain a concept. I thought I'd use tikz transforms for that, but after a long time trying, I found that transforms don't really work when I use \...
Felipe Balbi's user avatar
1 vote
0 answers
28 views

How to make the part of the rectangle wider than the red part in tikz?

I have a figure where there is a train-test split visible. However, I would like to make the red part 'wider' than the blue part, but I cannot find an option in shapes.multipart that allows me to do ...
intStdu's user avatar
  • 143
1 vote
0 answers
228 views

Template to write cheque

I would like to use latex to write cheques as perfect word placement is only possible with it. For this, I would require to do following things Set page size to cheque size Write current date in ...
Vaibhav's user avatar
  • 6,675
1 vote
0 answers
906 views

Change font size in legend

I have the following tikz plot figure. I want the legend to have a smaller text. I would prefer to just scale it by 0.5. Is there any easy way to do that? Thanks in advance! \documentclass[10pt,...
paupau's user avatar
  • 11
1 vote
0 answers
235 views

Automate transition on slides using Beamer

I have multiple images that I would like to show on a single slide in beamer. These images are in fact related and I would like to simulate a GIF by transitioning between these images. Currently, I am ...
Sid's user avatar
  • 1,806
1 vote
0 answers
82 views

Conditional line style when plotting curve with PGFPlots

I want to plot a function with different styles according to the domain. For example: \documentclass[tikz]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{...
mathbekunkus's user avatar
  • 1,389
1 vote
0 answers
88 views

What is the assign operator in tikz

I'd like to know if there is a separate assign operator like "=" in tikz for assigning results from certain operations. I know \pgfmathparse can do it through \pgfmathresult, but it seems ...
Eugene Zhang's user avatar
1 vote
0 answers
1k views

Custom font with TikZ

I am trying to use Amatic SC with TikZ. Though I have partially succeeded in getting the results, it is not scaling with the use of tikzset. I have defined a new fontfamily for this purpose and it ...
Damitr's user avatar
  • 1,961
1 vote
0 answers
207 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 ...
Anima's user avatar
  • 111
1 vote
0 answers
216 views

Change the pattern density of bar

I want to change the pattern density of the bar. Here is my code \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{patterns} \definecolor{ref}...
Amit Karmaker's user avatar
1 vote
0 answers
1k views

Can the command \minted and \mintinline have rounded corners without depending on the package listings? Are tcolorbox and tikz needed?

I use XeLaTeX, but I can not use both or similar or duplicate packages, because someone said it is bad idea in XeLaTeX. I would like to use only minted. Here are two answers which offer inline code ...
Oo'-'s user avatar
  • 269
1 vote
0 answers
116 views

Reduce spacing inside cell, vertical and horizontal positioning of figure & defining some text in preamble

I want to make a template document (with custom margins, font sizes, header, footer etc...). I have specified only footer on first page and header on all other pages, margins, text width, text height,...
Beginner's user avatar
  • 149
1 vote
0 answers
4k views

CircuiTikZ code generator with OmniGraffle

I just read a thread on here about generating CircuiTikz code with OmniGraffle. I downloaded OmniGraffle and followed the instructions, but was not able to generate the tex-code. My question is: Can ...
Johnny Doe's user avatar
1 vote
0 answers
355 views

How to draw the Hyde chart of chemical elements?

In chemistry, it is very common to use the periodic table of chemical elements to predict reactions. This is a wonderful tool that most students learn to use in school early on. However, as a ...
GaRyu's user avatar
  • 295
1 vote
0 answers
288 views

how to adapt legend in combination with \pgfuseplotmark

I'm trying to plot several results with \addplot table, for the color and style of the lines I created a "colorlist" with \pgfplotscreateplotcyclelist. I also scattered my results to use different ...
Björn's user avatar
  • 327
1 vote
0 answers
500 views

Cut off graphs using dot2texi with TikZ

I am creating concept maps using dot2texi and TiKz. However, with more complex maps the current style sometimes causes the map to be cut off. This despite the fact that in theory there is actually ...
Singulaere Entitaet's user avatar
1 vote
0 answers
929 views

Draw regular pentagon in tikz

I am trying to draw unfolding regular pentagon. I have got a really great example her: Regular pentagon. And the code is: \newcommand{\downpent}[2][blue!50!gray,draw=white,thick]% [options], list of ...
Mohammad Saifullah's user avatar
1 vote
0 answers
415 views

Tikz draw lines on Triangle

I was wondering if any of you know how to draw the lines there is in this picture? I don't have any problems with drawing the triangles and angels itself, it is just the lines there are going through ...
Daniel Guldberg Aaes's user avatar
1 vote
0 answers
147 views

curves with Tikz

I have 5 curves of functions that I want to put in the same TikZ graphic. The functions are: $$f(x)= 1.5e6(s^(-1/0.06)-1)^(1-0.06)$$ $$g(x)= 10^7(s^(-1/0.412)-1)^(1-0.412)$$ $$h(x)= (1-s^2)*(1-s^(5/3)...
Mathema Manoula Ens Tica's user avatar
1 vote
0 answers
434 views

Möbius transform Tikz - special request

I would need some picture in Tikz but I don't know how could I achieve them. ( I don't know if exsist some code of it). There is a youtube video which shows the Möbius transforms in two dimension (...
Alíz's user avatar
  • 119
1 vote
0 answers
326 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is right-to-...
Faouzi Bellalouna's user avatar
0 votes
0 answers
72 views

completely in red instead of shattered style

i want to mark the area under my graph. I want to have it hatched, but it is completely red. does anybody know how to fix it? thanks! \begin{tikzpicture} \begin{axis}[ width=\figurewidth, ...
Andre's user avatar
  • 1
0 votes
0 answers
31 views

Tikz patterns rendering incorrectly when viewing in adobe

When viewing my output in Tex studio the 45 deg line pattern renders as it should as shown here: When viewing in Adobe or Sumatra I get the following: Zooming out doesnt make it any better, only ...
vali.b's user avatar
  • 63
0 votes
0 answers
47 views

TikZ text node and edge position in TikZit

I am using the TikZit application to construct a diagram containing nodes that "contain" or "consist of" only text (formatted with color, etc.) and that are connected by various ...
Qohelet's user avatar
  • 119
0 votes
0 answers
33 views

quantikz/tikz, I can't remove the borders from some operators without obscuring letters

Depending on the definition of parameters I can remove or keep the boarders of an operation. For example, this code \begin{quantikz} &\gate[style={red!10}]{X} & \measure[style={fill=gray!...
Daniele Cuomo's user avatar
0 votes
0 answers
112 views

GRU unit cell - Changing from LSTM to GRU

I draw an LSTM unit cell in LaTeX this way: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning, fit, arrows.meta, shapes} % Command \empt{var1}{var2} to avoid repetition \...
bdzh's user avatar
  • 31
0 votes
0 answers
39 views

Changing node color after declaration

I am trying to change the fill setting of my node after I have declared the node using \node also, but nothing changes. Any idea how to fix it? BTW, below is my code. \documentclass[a4]{article} % ...
Mostafa's user avatar
  • 57
0 votes
0 answers
80 views

Truncated parabolic cylinder

I would like to know if it is possible to draw an image like this in 3D using tikz? Am not acquainted yet with 3D diagrams in TikZ and I would like to draw something like the picture attached. Does ...
Alisson's user avatar
0 votes
1 answer
92 views

Invoke PGF/FPU inside \pgfplotsset

I am facing a problem when trying to get the maximum value of a table with large numbers. Here are two small MWE: With this simple comparison, I get the larger of two numbers: \documentclass[tikz]{...
ValenStein's user avatar