Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
2answers
312 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
2answers
450 views

Perspectives in 3D graphics with tikz: practical application

Objective Below is a plot rendered in Mathematica. The goal is to reproduce this figure using tikz. After perusing many useful posts (such as Tikz: drawing in perspective), the solution is elusive. ...
1
vote
1answer
209 views

Plotting 3d vectors with a light cone in background

I was trying to plot a a couple of 3d vectors with a light cone in background. The code is a fusion of the following two old answers: Cut-off cone in TikZ and 2D and 3D vectors in Tikz. I was not able ...
1
vote
0answers
192 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 ...
0
votes
1answer
80 views

Help in Creating a Legend for a Block Diagram in Tikz

I have a block diagram finished, but I need help in creating a legend for it. I'm trying to create a legend that looks like that picture below. I want to be able to 1st create this type of graphic ...
2
votes
2answers
272 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 ...
4
votes
1answer
133 views

Paragraph with a colored circle

I would like to put a red circle before the beginning of a paragraph. This code does that effect but there are a lot of errors: \paragraph{{\tikz{\draw[red,fill=red] (0,0) circle (.5ex);}} PARAGRAPH}...
2
votes
2answers
119 views

A custom table using TikZ instead of tabular

How could I create a table like below using TikZ? I tried using matrix, but could not get rid of few table lines like below. It might be easier in tabular LaTeX, but I want in TikZ because I could ...
1
vote
0answers
138 views

How to use tikzpicture/tkiz with IEEE access format? [closed]

I have a tikzpicture that works fine in IEEE format. But when I copy the same code to IEEE access format, I got many errors. I googled for how to use TKIZ in IEEE access, but these solutions does not ...
3
votes
1answer
139 views

Space between containers and arrow from block to container

I am trying to build a block diagram and achieved as below so far. MWE: \documentclass{article} \usepackage[utf8]{inputenc} \title{system overview} \author{Paari Vendhan} \date{November 2018} \...
3
votes
2answers
206 views

How do I mark an angle with multiple arcs?

I have been trying to find a good answer to this question (or a question to match it): I'm trying to give an angle a marking with multiple arcs in the interior, as per the pictures below. I'm not ...
1
vote
1answer
86 views

Layout modifing: simple code like this!

I'm new here. I found a code online and I'm working on it to obtain a good layout for my manual. Now I have this code: \documentclass[11pt,a4paper]{book} \usepackage{calc} \usepackage[left=1.5cm, ...
2
votes
1answer
108 views

How to draw a shift of line in tikz?

How to draw the first picture in Figure 1 of the paper on page 2? I want to draw a similar picture for a hexagon. The following are my codes. \begin{tikzpicture} \foreach \a in {1,2,...,5} { %\a is ...
1
vote
1answer
128 views

Draw a figure (cut-off functions) in tikz

Please I need the code tikz for this figure. I have this code but it's not correct : [![\begin{figure} \begin{tikzpicture}\[x=1.5cm,y=1.5cm\] \draw\[thick\] plot\[domain=-100:40,samples=100\] ({3.5*...
10
votes
3answers
361 views

Expanding macro defined by \csdef to define a style via \tikzset

I need to store tikz option in a \csdef{}: \csdef{My Node Option}{draw=red, thick, fill=yellow} How do I use this definition to define a style via \tikzset? I attempted to use .expand once as per ...
6
votes
1answer
344 views

Drawing Hypergraph using TikZ

I want to draw a Hypergraph using TikZ that looks like this What I have so far: \usepackage{tikz} \usetikzlibrary{calc, positioning, fit, shapes.misc} \begin{document} \begin{tikzpicture} [ he/....
2
votes
1answer
48 views

Method to quickly place text at specific locations on figure

I slightly modified the code written for a second order step response found here. I wanted to add extra text around the figure. I have to through many iterations before I get the placement right. I ...
1
vote
1answer
59 views

Append style only to nodes in the graphic area of an axis environment

I am currently using matlab2tikz to export graphical data to latex. Some of the plots I use contain both pgfplots objects such as \addplot and tikz objects such as \node or \draw in potentially ...
1
vote
1answer
42 views

Setting matrix cell styles from within the matrix

I'm programmatically generating a tikz matrix, and sometimes, when I've generated one cell, I learn something from that which is going to affect how I style a later cell. So, I want to be able to call ...
3
votes
1answer
294 views

Tikz mindmap customize nodes color, distance and size

the code below is almost perfect to me but if I chose LateX it is to get the perfection. There is 3 problems with the code below : 1) how can I modify the radius of the nodes (individually) ? 2) ...
2
votes
1answer
117 views

Visually labelling coordinates in tikz

Sometime it is very useful to be able to see where the \coordinates that you are defining really are in a diagram. I am using what I think it's an hack to do it, defining a command and then change the ...
4
votes
2answers
1k views

How to customize this oscilloscope picture?

This is an oscilloscope picture which I copy-pasted from texample.net I modified the code a little bit and now, I am stuck with two things: I would like to draw some probes that are connected to the ...
1
vote
1answer
43 views

Fine tune node text placement in Block Diagram

In the code below, how do I go about fine-tuning the placement of the text: CODE \documentclass{article} \usepackage[landscape]{geometry} \usepackage[table]{xcolor} \usepackage{url} \usepackage{...
1
vote
1answer
75 views

How to make these types of rounded rectangular headings?

I'm stuck on how to format the boxes in code like below: The adding and indented icon and the green upper-right-hand-corner text "Update" are the issues confusing me how to format.
1
vote
1answer
76 views

How to make this rectangle with an image on the left?

Here are two examples of the formatting I'm trying to recreate: I'm trying to recreate this style as closely as possible (including the slight shadow), but I don't know the font. I'd also like the ...
1
vote
1answer
67 views

Tikz Block Diagram dot in wrong location [duplicate]

This code is building off the solution posted here. When I try to implement the dot in the second column block diagram I get this: How do I go about getting the dot to be on the output line? Thanks ...
0
votes
3answers
185 views

Block Diagram drawing with Tikz - misplaced dot and other

I am trying to generate this table: I have two questions regarding the generation: When I position the dot to try to match up row 3 on the block diagram, I get the dot being offset from the line ...
2
votes
2answers
223 views

TikZ: Flow chart errors

I modified the flowchart code given here a bit, to produce this: This is the modified code: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \...
5
votes
2answers
314 views

Positioning of a tikz picture

I have two tikz pictures in a figure. Here is the code: \begin{figure}[H] \begin{tikzpicture} \draw (0,0) node (a1) [draw,circle,fill=white,minimum size=4pt, inner sep=0pt, label=left:$a_1$] {} --...
2
votes
1answer
70 views

Unable to apply multiple decorations

I'm trying to decorate a path with vectors. I've created two different styles: one which creates tangent vectors, and one which creates random ones. I want in each selected point of the path two ...
1
vote
1answer
56 views

Alignment in tikzcd

I want use this options: \arrow[d, start anchor={[xshift=0.35cm]south west}, end anchor={[xshift=0.35cm]north west}] but it is a very long code. Is there a way in order to have a ...
1
vote
1answer
49 views

Different styles for horizontal intermediate lines in mdframed while paginating

I have a multipage frame built with mdframed with method tikz. I need to frame with lines all its parts on every page. \documentclass[11pt]{article} \usepackage[framemethod=tikz]{mdframed} \...
1
vote
2answers
95 views

TikZ Loop through array of arrays

I would like to loop over an array and access each x- and y-coordinate separately, because I want to modify the coordinates before using them on a node. Currently it is only working when inserting ...
0
votes
1answer
599 views

Setting node label's size and color in TiKZ?

I'm drawing AVL trees using the first answer given at AVL Trees in TikZ: draw outside of node as an example. All I want to do is add a style definition which will draw the labels in a small font and ...
16
votes
3answers
1k views

How to make boxes like these?

I'd like to have custom commands for making boxes that look like the Wolfram|Alpha entities in Mathematica notebooks: \LinguisticAssistant{france} \Entity{France}{country} I've done the work of ...
7
votes
1answer
267 views

Globally configure length units in TikZ

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzset{ x = 1cm, y = 1cm, node distance = 2, auto, on grid, ...
3
votes
2answers
112 views

Package for Finite Automata similar to this image

In some beamer slides I found several finite automata similar to this one: How to reproduce that style in Latex? Which package and configuration I should set? TikZ should be the way to go, but ...
3
votes
1answer
69 views

Why does the node style newcommand not work in tikz-qtree?

To reuse the labeled node style in tikz-qtree, I have defined \newcommand{\lnode}[3]{\node [label = {#1} : {$#2$}] {#3};}. However, \lnode does not work as in \Tree [.\lnode{above}{[1,5]}{$x$} .... ...
2
votes
1answer
97 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
84 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
315 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
530 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
229 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
378 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
46 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
247 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
175 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] (...