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
2
votes
1answer
100 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]{...
-1
votes
1answer
85 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
2
votes
1answer
327 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} \...
3
votes
2answers
546 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/...
2
votes
1answer
67 views

draw box with cells in tikz

I want to draw a diagram like the attached image. can i get some advice
2
votes
1answer
238 views

Use curved voltage arrows for voltage source in circuitikz

I would like to use curved arrows for the voltage source when using the circuitikz package. For example, using \begin{circuitikz}[european voltages] \draw (0,0) to[R, v^=$v_1$] (2,0); \...
2
votes
1answer
55 views

Dashed mdfframetitlerule

I'm trying to get a dashed line for frametitlerule under mdframed, but the setting appears to be ineffective. I'm basing this code on the documentation (Tikz example 5), but this question is also ...
1
vote
2answers
69 views

Troubles with tikzset

I tried to do a box with round corners and a title with tikz to do some definitions, properties,... I tried this \tikzset{mybox/.style={draw=black, thick,rectangle, rounded corners, inner sep=10pt, ...
2
votes
2answers
384 views

help to create these environments (tcolorbox or tikz)?

I'm trying to create these environments but without much success ... I wonder if it will be better to create it with tikz or if it is easier to customize the title of a tcolorbox and rotate it a bit ? ...
0
votes
1answer
47 views

How to rescale, displace and combine two graphics with tikz?

I need to create to graphics with TiKZ, on inside the other. The first bigger graphic, is made by plotting some data points. The smaller graphic is some semi-circle with some vectors, which I want to ...
1
vote
1answer
251 views

Three-sets Venn diagram using TikZ with comments/labels inside and outside the circles

I am trying to produce a three-sets Venn diagram illustrating my research agenda and my published work. I am having a hard time including the comments inside the circles, particularly regarding the ...
3
votes
1answer
181 views

Tikz fit polygon to text

Hey I have this tikz picture: \begin{tikzpicture} \tikzstyle{interface} = [draw,regular polygon,regular polygon sides=8]; \node[draw] (ec) {Erasure correction}; \node[interface, below of=ec] (...
3
votes
1answer
87 views

How to put Tikz code in preamble

I have the following MWE, building on answers found on this site for drawing a tangent line and then extending the tangent line till the axes: \documentclass{article} \usepackage{tikz} \...
4
votes
1answer
144 views

I want to draw the image attached. Which TikZ packages could I use for this?

I am not sure which tools were used to draw this image. I am assuming TikZ is to be used. Any guidance on which TikZ packages, I could use to draw this?
3
votes
2answers
647 views

Move whole flowchart diagram left of the page when using Tikz

I am creating a flowchart using Tikz. Where under the main block, three blocks will share the equal space. I have tried with this \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{...
4
votes
1answer
68 views

labeling the nodes in the tree diagram

I am trying to labeling the nodes in the below diagram such that I just define the red(as x) and blue(as y) and the child node are named according to their path (e.g $-x^{2}y$ is two times moving to ...
7
votes
1answer
279 views

Optional args for TikZ style

I have a defined a TikZ style "midcircle" that decorates a path with, say, a small circle in the middle (with the decorations.markings library, setting "pos=0.5"). E.g. \draw (0,0)edge[midcircle](1,0)...
7
votes
2answers
604 views

Tree edges different coloring

I want to make tree with each node has valency of three. I got the below code online somewhere. The first level has valency three however second and third level has valency four, and I also want to ...
4
votes
1answer
62 views

How can I share TikZ styles between pictures without making them available globally?

The tikzpicture environment allows to define styles in square brackets that are available within the picture. I would like to share the styles between multiple pictures to edit them in a single place. ...
1
vote
0answers
60 views

How can I include styles in multiple TikZ pictures? [duplicate]

Let's consider this simple example of a TikZ picture that defines the node distance and a style called mynode within the square brackets: \begin{tikzpicture}[ node distance=2.5em, auto, mynode/....
2
votes
1answer
38 views

Color a semiplane, but in the background

See the following code which plots a "staircase" line: \begin{tikzpicture} \draw[help lines, color=gray!30, dashed] (-4.9,-4.9) grid (4.9,4.9); \draw[->,ultra thick] (-5,0)--(5,0) node[right]{$j$};...
11
votes
2answers
321 views

How to do a planar/multiview/first-angle projection in Tikz?

I need to make quite a few "first-angle projection" in Tikz (see Wikipedia ) for an exercise sheet, so I was wondering if there is a routine to make them? By this I mean that I could give a certain ...
1
vote
1answer
189 views

Tikz: Style which only scale the text inside a node

I am looking for some possibility to only scale the text inside a node without using the commands like \tiny or \scriptsize. In my styleset I am using the line every node/.style={font=\scriptsize, ...
4
votes
2answers
277 views

Improve or simplify this TikZ code for southern hemisphere?

The code below is based upon the answer by @Max to the question Draw lower (southern) hemisphere and great semicircle with "mathematician's" axes orientation. Question 1. Can the code ...
1
vote
3answers
86 views

How to make my graph stand on the right side like this one?

\documentclass[a4paper , 12pt]{article} \usepackage{color} \usepackage{array} \usepackage{floatrow} \usepackage{graphicx} \usepackage[utf8]{inputenc} \usepackage[utf8]{vietnam} \usepackage{tikz,tkz-...
3
votes
1answer
80 views

Graph: Create root with more than 5 children and different sizes and colours

I have the following dataset: dataset = ["A": 5, "B": 10, "C": 25: "D" 3, ..., "Z": 36] I am trying to create a graph that looks like a mind map in which each data ("A", ..., "Z") in dataset is a ...
5
votes
1answer
568 views

How to draw circles in an arbitrary plane

I would like to generate the following image of TikZ: The closest resemblance on the examples is this post. However, I am not sure how to add the circles in the plane of the cubes. Any help is ...
1
vote
1answer
51 views

Change global tikz style from inside a tikz pic

OK, guys. I had a strange idea and wanted to check with you if there is a way to do it. I couldn't get any insight from the pgfmanual, and I couldn't find similar questions either. I wanted to use a ...
3
votes
1answer
46 views

Problems with style definition for nodes

I created some node styles which are inspired by the presentation of Malte Schmitz. As you can see in the MWE, many things are hard coded – especially the node positioning of the tex,pdf etc. nodes. ...
2
votes
0answers
57 views

What unit-of-measure for distances or other aspects (width, height,..) should be used inside Tikz? [closed]

I was wondering if it is just a question of someones own opionion or is there a clear superior way of using unit-of-measure such as pt, px, cm, ex, ... when drawing a picture or setting the ...
2
votes
1answer
115 views

Can tikzcd nodes be placed automatically in displaystyle?

I've been converting from xy-pic over to tikz-cd. One thing I liked about xy-pic is that if I include in my file \let\objectstyle=\displaystyle then all of the nodes in my xymatrix diagrams are ...
5
votes
1answer
119 views

Curved line with varying style

Following this question, I was wondering if it is possible to draw (with a single \draw call) a curved line that is partially of one style then of another etc ... A solution proposed in the linked ...
8
votes
2answers
290 views

“every path” style affects \node “path” when decorating

Here's a MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture} \draw[decorate, decoration=random steps] (0,0) -- (10,0); ...
7
votes
2answers
356 views

Fill area between two parabolas using tikzpicture environment

I was asked to find the integral between x = -4 and x = 4 of the intersection of y_1 = x^2 and y_2 = -x^2. So I recreated it using LaTeX. Please consider the following MWE: \documentclass{article} \...
2
votes
0answers
290 views

How to install the package \usetikzlibrary{positioning,fit,arrows.meta,backgrounds}?

I used the line \usetikzlibrary{positioning,fit,arrows.meta,backgrounds} in my latex code to generate architecture diagram with arrows. But it shows error as Can't find file \usetikzlibrary{...
2
votes
1answer
821 views

How to draw Architecture diagram with boxes using simple TikZ code?

I want to draw architecture diagram in latex as in image below So I tried with simple TikZ code as below \documentclass[border=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,matrix,...
4
votes
3answers
359 views

How to add text in different position on multiple circle?

I drawn multiple circle in latex using the following code \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,calc} \begin{document} \begin{tikzpicture} \draw (0,0)...
4
votes
1answer
173 views

Tikzpicture blur show up incorrectly

In the code given below, the tikzpicture blur show up with an incomplete shadow: Is there a way to show the shadow just like in the first box where the shadow encompasses the entire box like this: ...
11
votes
1answer
980 views

How to plot this cascaded/waterfall python-type plot using TikZ

I would like to make a plot of this equation P_n = \frac{n^a}{a!}\exp[-n] for different n. How can I use this cascaded style from the TikZ/PGF examples, to plot P_n (y-axis) with a (x-axis), for ...
2
votes
0answers
86 views

Some modification of the rubik's cube post [closed]

I read the question concerning the rubiks cube and that seems fine for my intention. However, i have no real cube shape, but 4 "columns" and 3 "rows" and 3 "steps" in the depth. Can this Code posted ...
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 ...
3
votes
1answer
198 views

How to plot cascaded/waterfall barchart using TikZ

I would like to make a plot of this equation P_n = \frac{n^a}{a!}\exp[-n] for different n. How can I use this cascaded style from the TikZ/PGF examples, to plot P_n (y-axis) with a (x-axis), for ...
5
votes
2answers
351 views

Encircle a formula with arrow pointing from the circle

Is there perhaps a package that already does something like this? In THIS topic encircling a formula is given, but I don't understand the syntax to modify the 'circle' to have an arrow point outward ...
2
votes
1answer
53 views

Magnify image in side-by-side images

I need to magnify an image which I managed to do it using TikZ \begin{tikzpicture}[spy using outlines={circle,black,magnification=5,size=1.5cm, connect spies}] \node {\includegraphics[height=6.85cm, ...
3
votes
2answers
120 views

How to draw non-straight arrow in tikz and reduce a shape's width?

I have the following chart in tikz. I need to draw an arrow that starts horizontal then goes vertical from the decision shape to the end with label no. I have tried using -| instead of -- but this ...
2
votes
1answer
176 views

S-curve in latex

\documentclass[final,5p,times,twocolumn]{elsarticle} \bibliographystyle{elsarticle-num} \usepackage{lineno,hyperref} \modulolinenumbers[5] \usepackage{amsthm} \usepackage{tikz} \usepackage{verbatim} \...
4
votes
1answer
92 views

tikz : Specify a percent parameter in a path

I am trying to define a style to draw a bend line from one shape's south to another shape's west \documentclass[border=5mm, convert, usenames, dvipsnames]{standalone} \usepackage{tikz, pifont, xcolor}...
2
votes
1answer
95 views

Set column or row style for more than one row tikzset

I am using Tikzset to set the attributes of rows and columns in a matrix of nodes. I can figure out how to effect either "every column" or "column 1" but I cant figure out how to with one command ...
1
vote
2answers
491 views

How to split latex page horizontally, and have a different colour background to the two halves?

I am writing a book and would like each page to be cut in half with red at the top and blue at the bottom (not including front page of initial front book matter). and then add separate text to each of ...
2
votes
1answer
76 views

Follow-up to: Figure with table, text, background colors, and outside figure annotations [tikz][library matrix]

This is a follow-up question to Figure with table (using tikz with library matrix). Although I received a great answer and good feedbacks for my previous question (see above link), I am having a ...