Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-pic]

A “pic” is a “short picture” that can be inserted anywhere in TikZ picture where you could also insert a node.

3
votes
1answer
64 views

TikZ: How to pass default option to pic?

Is there a way to pass default options to a pic? In the MWE, the option transform shape is passed to an instance of a pic. Is it possible to make this option the default for all pics square such that ...
2
votes
1answer
99 views

How to pass boolean value to a tikz option key

I have trouble understanding how to properly use tikz keys and pass them. Let's say I want to code two tikz pics with both a "fill" argument. I sometimes end up writing things like the example below. ...
9
votes
3answers
215 views

How to fill a split node with two different colors?

I have that issue when try to fill a split node with two different colors. After using rectangle split part fill={red,blue} as an node argument the drop shadow overlap the node because I don't use the ...
0
votes
2answers
144 views

Triangular Prism in LaTex [duplicate]

How do you draw a triangular prism like this in LaTex? Thank you I also please need help in labeling all the vertices, thank you
0
votes
0answers
28 views

Pull/position the curly braces farther away from tikzpicture

the problem is clear from the visual: code: \usepackage{graphicx,tikz,tkz-berge,tkz-graph} \usetikzlibrary{trees,fit,shapes,arrows,calc, patterns,decorations.pathreplacing}% \begin{document} \...
2
votes
1answer
38 views

Labeling a a tikzpicture vertex in math mode

I'm surprised I cannot find this answer on here yet; I want to label a vertex with math mode, no equals sign, and to clarify, this is not a node, but a vertex, perhaps rewriting a tikzpic might work ...
3
votes
1answer
31 views

How do I draw a bar under a node in tikz?

I have the following tikz template (in the file template.tex), where I define a tikzpicture \def\mysearchtree{ \begin{tikzpicture}[-, >=stealth', level/.style={sibling distance = 4cm/##1, level ...
3
votes
1answer
68 views

How to move tikzpicture with named nodes?

I am trying to position an image with rounded corners to a specific position on screen. However, according to the following post, yshift and xshift do not affect nodes that are named and I am still a ...
2
votes
1answer
22 views

Aligning minipage with a tikz picture vertically simply with tabular and makecell

Why does the top argument of minipage not effect the tikz content of the minipage, when it does effect simple text? Here is my code: \documentclass{article} \usepackage{makecell} \usepackage{tikz} \...
3
votes
4answers
98 views

How to make a flow chart with the arrows across the box?

I want to draw a flow chat like this But I have no idea how to make those arrows across the box, and make the boxes larger. \documentclass{beamer} \usepackage{amsmath} \usepackage{tikz} \usepackage{...
3
votes
2answers
211 views

How to use fit tikzpicture in a LaTeX file

I use tkiz to draw a picture in LaTeX. It works with me with \documentclass[border=5pt,tikz]{standalone}. However, when I try to use the same code in my original LaTeX file \documentclass[english]{...
3
votes
1answer
58 views

How to implement an image as TikZ pic?

In my never ending effort to learn more about Tikz, I tried to visualize a RAID system data flow. ;-) I tried to "convert" at least the cylinders into a pic, but totally failed. Now a have a ...
1
vote
1answer
37 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 ...
2
votes
2answers
60 views

How can I put two bayesnet object in a row?

How can I put two bayesnet object in a row with one caption for the whole? The post about tikzpicture Two tikzpictures side by side does not work in the sense that: picture size is in fact not ...
1
vote
2answers
130 views

Drawing a block diagram in Latex

I am a new user to Latex. Recently I have decided to use latex for preparing my project instead of using MS word. Can any one please help me to draw this block diagram for my project. Thanks in ...
1
vote
0answers
93 views

Placing a tikz under a text [closed]

I drew two tikz pictures and I placed them side by side. The issue I have that that how to make them placed right below the text "The above remarks completes all the steps we need for Green's approch."...
1
vote
0answers
112 views

Best strategy to import and annotate CAD-drawings in Tikz

I would like to import CAD-drawings into TikZ to add some annotations/arrows/... . My CAD-software is able to export drawings as DWG/DXF and PDF. I could of course import the drawing as a picture ...
0
votes
1answer
107 views

how to draw a hollow cylinder using tikzpicture

Can any one please suggest modifications of the following code so that I end up with a pretty hollow cylinder as the hand drawn image below? Tried this for a few minutes but it is a bit of struggle ...
3
votes
2answers
52 views

Currency symbol not working in tikzpicture

I want to create a currency exchange graph as shown with currency symbol instead of wordings in nodes. and this is the original code \documentclass[10pt,a4paper]{article} \usepackage{tikz,tkz-berge} ...
3
votes
1answer
86 views

making a cartoon plot of some grids using tikz

I want to use latex to generate similar figure as following plot using tikzpicture. For instance using the example given here \documentclass{article} \usepackage{tikz} \begin{document} \begin{...
0
votes
2answers
70 views

(easy) How to remove the solid boundary of a shaded region

I would like to remove the solid boundary of this shaded area. How should I do that? Here is my code \begin{tikzpicture} \draw[fill=gray!30] plot[smooth, samples=100, domain=1:3.8] (-\x,\x) -| (0,0) ...
8
votes
2answers
234 views

Tikzpicture scope background image

I copied and modified the code given on http://www.texample.net/tikz/examples/swan-wave-model/ \begin{figure}[H] \begin{tikzpicture}[scale=.5,every node/.style={minimum size=1cm},on grid] \...
0
votes
1answer
58 views

How to fill in node names and node values in pic environment with predefined variables?

I got a graphic with many nodes (~40). I want to add the same type of "sub-nodes" to each of them (view image, one node with a label that contains a name and another node with a label that contains a ...
7
votes
1answer
105 views

How to give a name to \pic (part II)

When I was looking for the solutions of How to give a name to \pic, I discovored that it looks like that the problem is only with the code of \tikztostart in the to path and not with the \tikztotarget....
0
votes
1answer
98 views

tikz pic scaling with line width

How can I scale also the values of line width in this MWE? \documentclass[tikz,border=5mm]{standalone} \begin{document} \tikzset{ mytest/.pic = { \draw[blue, line width=0.5cm](0,0)--(90:1....
2
votes
1answer
62 views

Use of “legend to name” in tikzpicture generates extra pdf pages

I use tikz for a graph and just want to put a legend outside of my plot and convert the picture into a single pdf to include this in my Tex document. (Instead of input the tikz file to my Tex ...
0
votes
2answers
43 views

Positioning nodes is inconsistent with tikzpicture in beamer

Take a look at the following MWE \documentclass[t]{beamer} \usepackage{siunitx,tikz} \usepackage{amsmath} \usepackage{color} \usepackage{flexisym} \usepackage{enumerate} \usetikzlibrary{positioning,...
1
vote
3answers
54 views

looking for Efficient alternative to my tikzpic code

I have a tikzpicture that has repeated elements. Right now I am defining them individually. But I would like to have a code that defines one template-triangle whose dimensions I control (like I do in ...
1
vote
1answer
69 views

Creating pattern from tikzpic

I have a tile.tex (a separate file) that I call in my main document. I want to do two things Create a pattern of 3x5 by stitching together tile.tex. This means I will be calling tile.tex 15 times. I ...
3
votes
1answer
64 views

How to draw a shadow on a pic

I have the following example and I'm wondering why this is not working: \documentclass[tikz]{standalone} \usetikzlibrary{positioning} \usetikzlibrary{calc} \usetikzlibrary{quotes} \usetikzlibrary{...
4
votes
1answer
317 views

tikz - Curved cloud shape

So here is my code that produces a circle with text inside and three clouds, also with text, around it. I would like the clouds to curve in an arc around the circle, if that is possible. There is this ...
1
vote
0answers
103 views

Border-to-border placement of a tikz-pic

The placement of a tikz-pic is related to its relative (0,0) coordinate, however I'd like to think about the overall structure of the tikz-pic instead, where the distance between a tikz-pic and a node ...
3
votes
4answers
157 views

Triangle. Changing vertices. Draw the height of the triangle

1) I'm a drawing triangles in latex, but I want the vertices A and B to be horizontal. In the code below vertices A and C are horizontal. I have problem changing the code. 2) I want to add a ...
3
votes
1answer
144 views

Designing this graph with tikz

How can I design this diagram with tikz? \documentclass[a4paper]{book} \usepackage{tikz} \usepackage{tkz-berge} \usetikzlibrary{matrix,positioning,arrows,calc,patterns,automata} \begin{document} \...
-3
votes
1answer
81 views

how to draw the following picture quickly and curly brace?

I know that this picture contains only line but I want to ask how to draw it quickly with tikzpicture? Moreover, how I can draw the curly brace (}) in the figure? Many thanks for your help!
1
vote
0answers
49 views

Superimpose content to a movie in beamer [duplicate]

When using the command \movie in beamer, from the package multimedia, it appears that the movie itself appears on top of every other content, so that it seems impossible to display any content over it....
5
votes
1answer
913 views

Understanding TikZ anchors using pics

With the MWE below, I get the following figure: Could someone explain me why in the right figure, the red circle is not "inside" the square? I guess it has to do with the square being a node, and not ...
1
vote
2answers
394 views

Does captionsetup command works for subcaption?

I am trying to place three subfigures side by side using the minipage environment. The problem is that I cannot control the width of subcaption inside the minipage environment. I tried both ...
4
votes
4answers
522 views

Arrow Between Equations

Is there a better way to put arrows between equations? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node at (-4,0)...
3
votes
2answers
219 views

Section of sine / clipped sine

I want to draw a limited sine curve. My problem is, that I know how to draw 1/4 sin but not how to get only a section of it. \setlength{\unitlength}{1mm} \begin{minipage}{\linewidth} \begin {...
5
votes
1answer
151 views

How to add fill in a \pic?

I wrote a TikZ pic for a simple database icon (first picture below). What I want is to hide the two edges that are behind overlaying boxes, similar to the second picture. I thought I could add a white ...
2
votes
1answer
93 views

Compilation error when attempting to define text in a `pic` command

The following MWE is an excerpt from the signature picture heading Part III of Tantau's TikZ & PGF Manual Version 3.0.1a, page 118. For unknown reasons, if the line pic [draw, fill=yellow]{angle= ...
2
votes
2answers
371 views

How to rotate a framed image?

How to rotate a framed image? the following code rotate the image without the frame? Thanks \documentclass[a4paper]{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \usepackage{tikz} \...
0
votes
1answer
80 views

How to draw this block in tikz enviroment?

I am looking for a way to draw these two blocks. Can someone help me here. For first block I was thinking of drawing a rectangle adding a scope to it but I have no idea on how to draw this stair ...
0
votes
2answers
59 views

Position a node with a variable-length sentence always at the same distance from the right margin

I'm using tikzpicture to write some text over an image. Does anyone of you know how to position a text node so that the last letter of a possible variable-length sentence (of that text node) is ...
3
votes
2answers
200 views

How to draw an arrow between this figure?

I have used the \tikzset{pics ... environment to define a tikz image so that I can repeat and change just a few arguments. However, I would like to have an arrow that connects the two images. I am ...
0
votes
1answer
419 views

how to make vertical box plot to horizontal box plot

I have code that draws vertical box plot. I need to change it into horizontal box plot. Can you please tell me how to do it? \documentclass{article} \usepackage{pgf} \usepackage{pgfplots} \...
0
votes
2answers
56 views

How to make the following picture in the same vertical distance between $\alpha_1,\alpha_2,\alpha_3$

It seems that the vertical distance between $\alpha_1,\alpha_2$ is larger than $\alpha_2,\alpha_3$. I post my code in the following \tikzset{% mypoint/.style={circle, fill=black}, middlearrow/...
3
votes
1answer
124 views

Question about drawing semicircles around a circle on tikz

I've been looking at this question: Creating gears in TikZ What I would like to do is convert the gears into semicricles that are touching, so far i have this: \documentclass{article} \usepackage{...
1
vote
1answer
89 views

Problem with pic name

When I compile the following code \documentclass[tikz]{standalone} \usepackage{luatex85} \usetikzlibrary{positioning} \usetikzlibrary{calc} \usetikzlibrary{quotes} \usetikzlibrary{shadows} \begin{...