Stack Exchange Network

Stack Exchange network consists of 175 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
34 views

Two side by side flowchart (tikz-flowchart) with box and label for each

I need to draw two flowchart using TikZ with a box around each flowchart and a label. I'm new to Tikz library and I have looked similar questions regarding pictures and tables and figures. They ...
1
vote
1answer
47 views

Caption of tikzpicture and modify vertical space

Caption of tikzpicture placed in wrong postion (see image) My code is: \documentclass[8pt]{article} \usepackage{caption} \usepackage{pgfplots} \usepackage{translator, tikz, array} \usepackage{...
1
vote
1answer
24 views

How to draw a curly brace at a correct location between 2 points with coordinates in a plot?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing} \usepackage{pgfplots} \usepackage{xcolor} \begin{document} \begin{center} \begin{tikzpicture} \begin{...
3
votes
2answers
44 views

Named paths inside a tikz/pic

I am trying to understand the naming behavior of paths inside a pic definition. Consider the following \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \tikzset{% ...
1
vote
1answer
33 views

Illustrate segments along a function in tikz

What is a good way to illustrate certain intervals along a curve? I start a MC-curve. Between SR and LR there should be one additional line-segment. Finally a third line starts at LR on MC. All in ...
3
votes
1answer
81 views

Tikz in xetex - Recreate two ways of presenting/displaying old sources

I would like to present old digitalised sources with tikz picture in LaTeX for private purposes similar to the presentation of Luther's sources by Google, which you can see here: https://...
0
votes
1answer
35 views

Tikzpicture / PGF layers rendering in the margin

Alrightly folks, I have one that has stumped me thoroughly and hopefully one of you beautiful brilliant people can help me out. I am attempting to use tikz/pgf to enable me to use absolute ...
1
vote
1answer
25 views

tikz: left side of line rounded, right side of line faded out

So I'm new to the Tikz-package and I would like to know how I can make following line: Now I don't know how to do that, but I'm able to make this two lines (the color doesn't matter): The two lines ...
2
votes
1answer
43 views

Length of matrix delimiters using TikZ

I'm trying to explain the Sarrus method and to draw the lines between nodes I'm using the tikz and matrix packages. However, when the delimiters are not parentheses but vertical bars (and also ...
3
votes
1answer
76 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 ...
3
votes
1answer
109 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
309 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
365 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
2
votes
1answer
57 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
43 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
84 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
26 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
128 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
237 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
61 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
43 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
63 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
141 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
98 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
165 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
141 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
60 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
88 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
84 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
280 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
66 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
113 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
113 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
67 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
47 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
56 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
78 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
68 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
354 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
115 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
167 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
146 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
85 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
56 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
1k 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
447 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 ...
5
votes
4answers
615 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
226 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
160 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
100 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= ...