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
213 views

tikz label over path flips!

I'm trying to come up with a nice schematic of recursive calls using tikz, but the result is not what I expect as one label is flipped without a reason: The MWE is: \documentclass[xcolor=dvipsnames]{...
3
votes
1answer
842 views

setting a tikzset which has draw inside as style of a \node

I need to get different color edges for my rectangular nodes. I found this question How do I set only one side of a tikz node's border color? The \tikzset mentioned in the answer has input ...
3
votes
2answers
567 views

How to make this free body diagram with a non-straight force line using tikzpicture environment

Please consider the following MWE adapted from this fantastic example of Kjell Magne Fauske's free body diagram: \documentclass{article} \usepackage{tikz} % From http://www.texample.net/...
3
votes
1answer
618 views

Arrow scaling problem. How can I zoom properly a very tiny part of a drawing?

Thanks to this solution, I can draw tangent line to a path. I'd like to zoom a very little part of my drawing. Here it is the code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,...
2
votes
1answer
357 views

Adjust text spacing in tikz box

In the code given below (based off code found on GitHub), how do I go about reducing the distance from the text to the tikz box? CODE \documentclass{article} \usepackage[landscape]{geometry} \...
2
votes
1answer
250 views

Chapter Opener in both Right and Left Side

I would like to get the below chapter opener with back-end Image in my LaTeX file. 1) BackEnd Image 2) Front End Chapter Number and Chapter Title. 3) Yellow Color box is backend and what you will ...
2
votes
2answers
1k views

Nested rectangles

I am trying to get this figure: The figure is generated by the following code: \documentclass[10pt]{article} \usepackage{tikz} \usetikzlibrary{fit,shapes,backgrounds,arrows} \begin{document} \...
2
votes
2answers
300 views

How to add perpendicular symbol at desired location

I am trying to draw perpendicular symbol on point where the perpendicular line from O is meeting the line AB. But I am unable to achieve it. I try via simple draw because I use pgfplots (you can see ...
2
votes
2answers
60 views

Append style for matrix of nodes in a loop doesn't work

Following this question defining-nodes-of-a-matrix-programmatically, I was able to precise more of what I am trying to achieve. Sorry that I was way too general in the first question. Here is the new ...
2
votes
2answers
453 views

Flowchart arrow for loop

I'm trying to make a flowchart for my code using latex using this code, \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \tikzstyle{startstop} = [...
2
votes
2answers
346 views

Drawing logic gate circuit with tikz library

I want to duplicate this circuit in latex. So far I have gotten this. I cannot seem to align the lines. Also how do I make the gates border bold? \documentclass{beamer} \usepackage[utf8]{inputenc} \...
2
votes
2answers
1k views

Tikz-timing: using an arrow for a vertical line like G (glitch) symbol?

I just asked this question: Does the program counter always have to change (upon an instruction tick)? - Stack Overflow, where I used the following code: % min-timing.tex % pdflatex min-timing.tex ...
2
votes
1answer
108 views

Reduce length of arrow from block diagram

In the code below, the arrows going into and out of the block diagram box are too long. How do I go about reducing the length of the arrows? CODE: \documentclass{article} \usepackage[landscape]{...
2
votes
2answers
349 views

PGFplots: Changing style of labels of nodes near coords

Trying to adopt this answer approach, I didn't manage to get what I want of changing the style of the nodes near coords labels. I would like to make this code poles={red, fill = blue, draw} work and ...
2
votes
1answer
143 views

TikZ: Using imported data to customize node and path styles

I would like to automatically adapt the features of a flow diagram depending on my data. Here the example is for line widths, but I would like to use the same principle also for node sizes. I have ...
2
votes
2answers
174 views

Placing a node label in a specific location

I need the \alpha_1 to be a bit close to the corner, it should be placed "nicely". I tried the following code (with various numbers in label distance/angle): \documentclass{article} \usepackage{...
2
votes
1answer
695 views

Breakable boxes with Tikz and right and leftmargin

I've found a method to obtain breakable boxes, using polyglossia for arabic, and the Tikz package and I have two problems... 1) the commands leftmargin and rightmargin of Tikz have no effect on the ...
2
votes
1answer
117 views

TikZ style with two arguments running through a list

How can I define a style, in which two arguments take pairwise values in a list? In my case, the style is \tikzset{ loop/.style 2 args={decoration={markings, mark=at position {#1} with {\...
2
votes
1answer
62 views

Combing multiple pgftable attributes as a single one

This is a follow-up from the question: Large error in errorbar with logscale. The following MWE plots some lines, and provides an expr for when the the error results in a negative value which would ...
2
votes
1answer
196 views

Add ellipse around data point part 2

I would like some help to get two ellipses around two sets of data on my final plot (d) like this: Here is what I have so far: \documentclass{article} \usepackage{tikz,pgfplots} \pgfplotsset{compat=...
2
votes
1answer
325 views

using tikz to draw a flattened polyhedron

I want to create the net of a flattened hexagonal based box. Each side of the box is a slight trapezium (so in 3D the sides will not be perpendicular to the base, but that's not important to the ...
2
votes
0answers
166 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 ...
2
votes
3answers
224 views

Tikzpicture in figure problem

Below is my MWE. My only problem is, I need the tikzpicture to be pagewidth (textwidth) and not overflow to the right. I tried adjustbox, fbox and resizebox. \documentclass[ a4paper, % ...
2
votes
3answers
441 views

Tikz Nodes Order and Shapes with a General Number of Nodes

This is part 2 of Tikz Nodes Positions and Shapes with a General Number of Nodes, a question I was asked to split. Please refer to the code below. In the table below I'd like to: Control the ...
1
vote
1answer
78 views

Is there an efficient way to edit the following UML

I tried to make a UML diagram using I strive in searching to make it looks good. Here is my code, sorry if there are errors (as I am a new learner to TIKZ package) but it should still work if u just ...
1
vote
2answers
157 views

How to adjust dotted line in tikz example

I saw this to add a dotted line below some text. But I'm wondering how to shift it down a little bit and play with its positioning, I don't see how to adjust the layout of it from the example. I ...
1
vote
1answer
207 views

How to add a node style option layer=background for node, draw…?

Is it possible to define a tikz style to access the background layer by adding a style option to the node instead of having to put the entire node inside the environment? Here is an example code: \...
1
vote
1answer
105 views

How to increase font using Tikz for the following dense protocol?

This figure is made with Tikz package, I need suggestions to make font more bigger and more readable. I tried many solutions such as \Large but still not able to increase the font more clear. My ...
1
vote
1answer
616 views

Use gradient or picture as fill in split rectangle?

So I have made a split rectangle using Torbjørn T.'s answer in How to split tikz rectangle by half with different colors and text lines. But could I use gradient (Color gradient in tikzpicture from ...
1
vote
1answer
1k views

concave curve in tikz

How can we draw a concave curve like the following one without having any numeric data?
1
vote
0answers
248 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-...
1
vote
2answers
878 views

How to increase the size of rectangle in TikZ?

I'm drawing something like a linked list, but my rectangles are pretty small, how can I increase their size? \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,shapes.multipart,chains,...
1
vote
0answers
153 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 ...
1
vote
2answers
96 views

How to reference a node's anchor by optional parameter (#2) inside a style when that node is referenced by parameter (#1) itself?

I have a style (POSITION) that references a node by parameter \documentclass{standalone} \usepackage{tikz} \usetikzlibrary {% positioning, shapes.geometric } \tikzset {% ...
1
vote
1answer
366 views

How can I have TikZ automata accepting nodes be the same size as nonaccepting nodes?

I want to use the TikZ automata library to draw finite automata where the size of the state nodes remains the same regardless of whether the state is accepting or not. Here's a MWE demonstrating the ...
0
votes
1answer
62 views

TikZ: Box alignment not inline - wrong anchoring? [duplicate]

I came across the problem of correctly aligning a set of boxes in the following TikZ example: Code \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning, shapes....
0
votes
1answer
44 views

Blinking of a certain section of image in beamer

I have drawn an image in latex using tikz as given by the code below. The image generated via the below code comprises of a rectangular block having a text E(s) written inside it. I want to make this ...
0
votes
1answer
38 views

modify multiple style parameters of a pgfplot scatter with visualization depends on

Using the example page 288 of the pgfplots layers manual, I cannot use another style than mark size. % Preamble: \pgfplotsset{width=7cm,compat=1.5.1} \begin{tikzpicture} \begin{axis} \addplot+[ ...
0
votes
1answer
156 views

Draw special arrow with latex

I searched to find a simple way of drawing something like the figure below using tikz, but I couldn't find. Can someone help me with this?
0
votes
2answers
83 views

option clash geometry with tikz when using for a beamer presentation

\usepackage[hmargin=1.15in,vmargin=1.115in]{geometry} \usepackage{verbatim} \usepackage{graphicx,caption,subcaption} \newcommand{\noi}{\noindent} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{...
0
votes
1answer
219 views

animated proof in latex [closed]

How can I make something like this? I would prefer tikz.
0
votes
1answer
135 views

Is it possible to make such an image with Tikz? How?

I'm wondering what's the best way to render this image width the dashed line and with angles between normal lines and dashed lines. And also Is there a way to quickly rotate the tikz resulting image ...
0
votes
1answer
480 views

Using variables to draw a tikz diagram

I am defind my own command to plat a diagram with tikz. Instead of constant values I rather want to pass numbers to my command which determine the height of the bars in my diagram. Problem: I am ...
0
votes
1answer
58 views

paussing figure of presentation beamer

I want to display the graph in beamer so that at each click of the entry we see the next step but of course in a single graph \begin{figure}[!h] \begin{center} \begin{tikzpicture}[x=1.5cm,>=latex] ...
0
votes
1answer
807 views

How to add arrow to connect between node Tikz?

I have the block nodes as below figure. I want to connect them by arrow, with bold font. Could you help me to look at my code and update them? Thank you so much This is my current result This is my ...
-1
votes
1answer
87 views

How to make this Figure in tikz? [closed]

Could anyone please help me draw this with TikZ ? please notice that there is curved lines I tried to made by hand in office
-1
votes
1answer
894 views

Fractals in TikZ [closed]

How to draw a shape like below using fractals in tikZ?
-4
votes
1answer
259 views

Drawing this picture using TikZ?

I need to draw the follwing picture, is there anyone who can help me with that? I've never used TikZ so I don't really know how to draw this!