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
0
votes
2answers
86 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
51 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
124 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
46 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
148 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
127 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
292 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
54 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
107 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{...
0
votes
1answer
43 views

two links between nodes in tikzpicture

I'd like to draw two links between nodes with directions of arrowheads being opposite. Please see the picture below. I tried something like: \draw[->] ([yshift=0.1cm]1.east) -- ([yshift=0.1cm]2....
5
votes
2answers
232 views

Cross over of arrows in a complex diagram

I have drawn a diagram using tikzpicture, but it has arrows crossing over each other. How do I keep the Horizontal arrows in each level intact and break the other arrows at the point of intersection? ...
3
votes
1answer
55 views

Regular triangles in a row

How can I properly align these triangles? My MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes} \begin{document} \begin{tikzpicture}[border rotated/.style = {...
0
votes
1answer
33 views

Is it possible to auto adjust line's width between text in Tikz?

I want to draw line between text and adjust line's width so that it does not overflow to next line. \begin{document} AAAAAAAAAAA\tikz\draw[blue] (0,0) -- (4,0);BBBBBBBBBBBBBBBBBBBBBBBBBBBBB \tikz\...
2
votes
1answer
35 views

How to change the arrow size in the flowchart given below? Also, you can give suggestions to improve this flowchart

\documentclass[a4paper, 12pt]{report} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, positioning, shapes.geometric, shapes.multipart } \tikzstyle{rect} = [rectangle, rounded corners, minimum ...
0
votes
1answer
62 views

Tikz graph for sine function of y=sin(2x+pi/3)

I am looking to create the sine graph for function y=sin(2x+pi/3), but it looks straight line. \begin{tikzpicture} \begin{axis}[axis lines=middle,axis on top,xlabel=$x$,ylabel=$y$, xmin=-4,xmax=4,...
1
vote
2answers
53 views

Custom section style like this one

i see this cool section style in this question: Question I would like to reproduce it but i don't understand how to pass section number and name to a custom tikz function. Any suggestion?
0
votes
1answer
50 views

Draw with Tikz an image where two convexes are separated

I am looking for a way to draw both these two pictures, which describes the separation of convexes. and I looked in some posts, but with no results. Given my ignorance of the Tikz package, I can'...
1
vote
1answer
94 views

How to draw a pyramid with arrows in TikZ?

I need help with a diagram for my thesis. I want to recreate this diagram This is my Code \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \usetikzlibrary{calc,trees,...
1
vote
0answers
33 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
1answer
62 views

How to display axes labels to two decimal places

How would you display vertical axis label numbers up to two decimal places? When I try, latex gives the numbers in multiples of 10^{-2}. \documentclass[]{article} \usepackage[margin=0.5in]{geometry} \...
6
votes
1answer
98 views

CircuiTikZ: How to create professional wiring diagram borders?

Assumed we have this Minimum Working Example (MWE): \documentclass{article} \usepackage{tikz} \usetikzlibrary{circuits.ee.IEC} \begin{document} \begin{tikzpicture}[circuit ee IEC] \draw (...
0
votes
1answer
22 views

pgfplots: x label at sixth decimal number [duplicate]

As suggested by similar topics on this site, I followed the procedure to write the x labels in decimal form. However, they continue to appear in scientific form. These are decimal numbers of the order ...
1
vote
1answer
29 views

Error while displaying items in tikz with itemize

I have my code below: \documentclass[8pt]{beamer} \setbeamertemplate{navigation symbols}{} \usetheme{Madrid} \usecolortheme[named=magenta]{structure} \date{} % TYPING PACKAGES \usepackage{hyperref} \...
5
votes
2answers
202 views

CircuiTikZ: How to draw contactor coil?

It seems the amazing package CircuiTikZ is mainly focussed on electronics or circuit boards. However, sometimes it is necessary to draw some contactor coils for relais, contactors etc. what is not ...
-1
votes
1answer
90 views

How to create a graph with shaded region in Tikz

I am looking to create the graph for the function y = 1/x for x > 0. The area under the curve between x = a and x = 1 is A1. The area under the curve between x = 1 and x = b is A2. I don't know ...
1
vote
1answer
48 views

How to fix the inconsistent line spacing in TikZ box?

The spacing between the lines looks inconsistent in the TikZ box. How can I fix it? \documentclass[20pt]{extarticle} \usepackage[utf8]{inputenc} \usepackage{geometry} \usepackage{graphicx} \...
0
votes
1answer
26 views

Prevent local line spacing in command to be overwritten

I want to change line spacing locally inside a custom command. However, the final renewcommand overwrites line spacing in the custom command. How can I locally set line spacing and prevent it to be ...
1
vote
1answer
35 views

How to edit the arrow in TIKZ?

How to edit the arrow on the WME to be like the attached image (to have an inclined angle at the corner)? \documentclass[border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \...
1
vote
1answer
34 views

Tikz adapting arrows

I would like to adapt the arrows in the graphic below in three ways. First, I would like them all to be thicker. Second, I would like that the arrow connecting "2nd essay" and "3rd Essay" is not ...
2
votes
2answers
200 views

Title page in book class using tikz

I am trying to design a title page in book class. I want the title page exactly to look like the image attached. It is easily possible to create an array of rectangles in tikz. However I am having ...
0
votes
1answer
150 views

Notes in Tikzposter

Does anyone know how to change body and frame color of just one (among a few) note in tikzposter document? Also, I'm having trouble with justifying text in notes. Cheers.
2
votes
1answer
45 views

Fixing two histograms style

I need to make my histograms look like these two: I would like to keep my percentages on the bars, though. This is my actual layout: I now need to get rid of those little lines above the boxes and ...
0
votes
1answer
68 views

The curvature of a simple curve with two tangents

I have searched aimlessly for a prototype of my work but to no avail. Please, I would need help in plotting this. Can anyone please, help me out? Thanks. Remark: There would be a thick line between M ...
2
votes
1answer
73 views

Syllogisms in LateX, syllogism package alignment issues?

Does anyone have a solution to author line by line syllogisms in LateX? Preferably with comments to the side? I tried the Syllogism Package, however alignment under the premises if off. ...
0
votes
1answer
25 views

How to set a value of a key of a user-defined (not global or default) style through /utils/exec (or similar means that allow for code execution)?

I need to change the value of the color key of changeStyleColor style through that style's /utils/exec. I can set a value of a global key through /utils/exec by \tikzset{/tikz/myKey=myValue}, or can ...
2
votes
1answer
45 views

How to draw a kraft paper bag with a zigzag side? [duplicate]

I need to draw a rectangle with a zigzag side as a kraft paper bag. How can I fill it properly with the color? \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{...
3
votes
1answer
89 views

How to use \ExplSyntaxOn and \ExplSyntaxOff inside tikzset?

If you place ExplSyntax on/off inside tikzset, code (that is expected to work) within ExplSyntax would generate errors. But if you bring ExplSyntax outside of tikzset (enclosing the tikzset), it makes ...
3
votes
1answer
50 views

How to plot a dashed line for some data predictions followed from a solid line from historical data

Problem I have a set of data from a .dat file, which every value could be "historical" or "prediction". year emision data_type 2008 9.24309 hist 2010 8.50724 hist 2012 8.06490 ...
3
votes
1answer
58 views

tcolorbox styles deriving from each other [duplicate]

The listing package allow to easily define styles and environment that derives from each other, which is very practical to avoid to copy and paste a lot of code. I am trying to see how to do the same ...
2
votes
2answers
52 views

Aligning 2 Minipages to the top of a figure and scaling nodes

Below is my MWE and an example how it should look like. I asked a kind of similar question yesterday, see here. Now the problem is, I need both graphs to be vertically the same height, so equally ...
3
votes
1answer
181 views

Complicated arrows in flowcharts

I have done most of the flowchart except for some complicated arrows. The code that I am using is \tikzstyle{io} = [rectangle, rounded corners, minimum width = 3cm, minimum height = 1cm, text ...
1
vote
1answer
22 views

Error when refactoring Tikz, scope argument gives error when given via a command

When I do \begin{scope}[every node/.style={minimum size=1cm,draw,rectangle}] \node (v1) at (2,0) {$\#1 \cdot \#2$}; \end{scope} it works. But when I do \newcommand{\operatorNode}...
2
votes
3answers
219 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, % ...
0
votes
3answers
165 views

2d Grid with Tikz and Nodes

I'd like to create the following graph: But I can't figure it out. I'm pretty new to Tikz and nodes in general, so a simple solution is appreciated. Here is another grid but I can't figure out how ...
2
votes
1answer
48 views

Why assignment of path aliases and names through `every path` fails?

every node test-run: \documentclass[border=5mm,varwidth=100mm]{standalone} \usepackage{tikz} \newcounter{myCounter} % following properly creates aliases and names in "every NODE" \tikzset { ...