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

89 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
0 answers
3k 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\...
6 votes
0 answers
271 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 \...
6 votes
0 answers
121 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 ...
  • 184k
5 votes
0 answers
660 views

Node at tip/pinch of brace in Tikz

I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. [Edit]: After being made aware that the main thrust of the question (...
  • 761
2 votes
0 answers
50 views

TikZ environment style options don't work inside `\ExplSyntaxOn`

I want to use a TikZ environment inside an \ExplSyntaxOn... \ExplSyntaxOff block. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xparse} \usepackage{tikz} \usetikzlibrary{...
  • 187
2 votes
0 answers
103 views

Improving Rightarrow in tikz-cd

Update 2 The discussion continues on Github where the latest work in progress (and possible future updates) can be found. As I was able to fix all of the problems in the code below, I consider this ...
2 votes
0 answers
237 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 ...
2 votes
0 answers
58 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 ...
2 votes
0 answers
291 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 ...
  • 593
2 votes
0 answers
1k views

LaTeX packages for timelines

Are there any LaTeX/TikZ packages that can create timeline as show in figures?
  • 1,418
2 votes
0 answers
136 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_{...
  • 401
2 votes
0 answers
299 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 ...
  • 2,089
2 votes
0 answers
409 views

Input/Output Nodes - Specification and Description Language

I am new to TkiZ. I am trying to create the below Input and Output nodes of Specification and Description Language Is there an existing \node or \tikzstyle to achieve the above in the TIKZ package? ...
2 votes
0 answers
551 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{...
  • 853
2 votes
0 answers
153 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 ...
  • 837
1 vote
0 answers
38 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 ...
  • 339
1 vote
0 answers
19 views

splot not plotting the graph correctly

This equation has to plot the point $(0,0)$ since when $x= 0, y=0$. But however I arrange the equation,it does not plot the point $(0,0)$. Can someone help me with this problem. \pdfpagewidth 85mm ...
1 vote
0 answers
23 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 ...
  • 43
1 vote
0 answers
116 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 ...
  • 6,287
1 vote
0 answers
45 views

How to format the quarter date and make annotations? Latex

I would like to show the date in quarter format on the x axis. So far this is my code. However, not all the dates are shown in the graph. Can anyone help me with this issue? \documentclass{article}%[...
1 vote
0 answers
117 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 ...
  • 1,730
1 vote
0 answers
57 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{...
  • 1,359
1 vote
0 answers
63 views

Label faces and edges in a tikz diagram

Is it possible to label the faces/edges of a drawing without specifying additional invisible nodes at the locations where we want labels? The code I'm currently working with is copied below: \...
  • 237
1 vote
0 answers
71 views

How can the alternate bundle be used with the meter in quantikz?

The quantikz package handles the [alternate] fine when it is placed before a normal gate. \documentclass{standalone} \usepackage{braket,tikz} \usetikzlibrary{quantikz} \begin{document} \begin{...
  • 1,597
1 vote
0 answers
81 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 ...
  • 464
1 vote
0 answers
807 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 ...
  • 1,559
1 vote
0 answers
62 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}; } } \...
1 vote
0 answers
121 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 ...
  • 11
1 vote
0 answers
145 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}...
1 vote
0 answers
770 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 ...
1 vote
0 answers
93 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,...
  • 149
1 vote
0 answers
3k 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 ...
1 vote
0 answers
291 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 ...
  • 295
1 vote
0 answers
227 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 ...
  • 327
1 vote
0 answers
203 views

Coordinates within a TikZ node

I have a document with multiple variations on what is essentially the same image, and using this question and answer, I was able to simplify things a lot. When I draw pictures, I usually use many ...
  • 2,783
1 vote
0 answers
104 views

Where is the ellipse?

I want to draw a Lemoine's ellipse, but I could not determine the focus the coordinates. Here is the codes. \documentclass[10pt]{article} \usepackage[a4paper,margin=2cm]{geometry} \usepackage[...
  • 2,431
1 vote
0 answers
454 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 ...
1 vote
0 answers
591 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 ...
1 vote
0 answers
1k views

How to add text at a particular location in tikz picture

From TikZ Adding Text I try \node[draw,align=left] at (0.5,-6.5) {text}; But I have defined previously that every node/.style = {draw, circle, minimum size = 7mm}. I do not want the circle around the ...
  • 749
1 vote
0 answers
354 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 ...
1 vote
0 answers
146 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)...
1 vote
0 answers
162 views

How to preserve information after exporting Tikz code from Geogebra and compiling it?

I use Geogebra to draw the figures in my book, exporting it to Tikz code to compile. However I found that the information of labeling in Geogebra was lost after exporting or compiling, and it ...
  • 1,767
1 vote
0 answers
365 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 (...
  • 99
1 vote
0 answers
313 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-...
0 votes
1 answer
36 views

tkzpicture how change Arrow and its text color to black

I have drawn a state diagram, the text inside states are drawn in black color but all connecting arrows and their label text are in grey color by default. How can I change it to black?. Here is my ...
0 votes
0 answers
49 views

Extracting the coordinates of a point one receives from \draw with $-- ++$

I am having problems with the coordinates of \draw[->] (.:.)-- ++ (.:.); - I need to extract the coordinates of the second point of the vector. How do I do that? In other words: Is there an option ...
  • 203
0 votes
0 answers
30 views

How to put diffent color in some cells in this matrix using Tikz?

I got this matrix bellow : \begin{tikzpicture} \matrix [nodes={fill=red!20,minimum size=15mm}] { \node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \...
0 votes
1 answer
32 views

Trouble with clip and labels in pgfplot

I would like to add zero to the origin of the axes. I tried with clip = false and \node[anchor=east] (zero) at (axis cs:0,0) {0}; but with disastrous results. This is my graph: \documentclass[tikz]{...
0 votes
0 answers
33 views

Trying to use a Tikz Header and include multiple lines of different text sizes in the same header

See the code below - I have a Tikz package that I've replicated to have two lines of different sizes. The problem is now that my Subheader appears below my Header, and I'm struggling to get them ...
  • 31
0 votes
0 answers
36 views

Layer items in a tikz pic

I am using the following code, but I would like the circle and triangles above the angle marks, is there an easy way to layer items in a tikz pic? \documentclass[tikz,margin=2mm,5pt]{standalone} \...
  • 475