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.

1
vote
2answers
80 views

creating a square 9x9 grid

I am new to latex. Is there a way to create shogi diagram like this picture using tikzpicture? I have tried tabular with square cell and rotating package for rotating kanji and created some very plain ...
0
votes
0answers
36 views

Drawing piecewise-defined function using TikZ [duplicate]

I have a function f(x):=\hat{f}(x-\lfloor x\rfloor), where \hat{f}(x) = \left\{ \begin{array}{lcl} 2x & \mbox{for} & 0\leq x\leq \frac{1}{5} \\ \frac{1}{2}+\frac{1}{3}(2x-1) & \...
1
vote
1answer
108 views

How can I draw a wavelet system in Latex?

I'm trying to draw a figure to introduce a wavelet transform system as follows. I used tikzpicture to draw a lot of block nodes and connected them using arrow. However, I am struggling in the left-...
1
vote
1answer
46 views

different colours and customizations for individual vertices/nodes for a tikz graph

So I draw my graphs like \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzset{Bullet/.style={fill=black,draw,color=black,circle,minimum size=3pt,...
7
votes
3answers
258 views

Overlapping nodes in a decision tree

I have the following decision tree taken from this example with little modification. When I added two sub-nodes to the second right node, the inner left and inner right nodes have been overlapped. How ...
5
votes
2answers
255 views

Generating adjacency matrices from isomorphic graphs

Here are some isomorphic graphs and their corresponding adjacency matrices. I can draw the graphs with tikz. But I'm not sure the best way to draw the matrices. Is it possible to generate one from ...
3
votes
1answer
47 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
48 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
31 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
51 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
34 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
85 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
36 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
26 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
49 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
83 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
117 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. ...
10
votes
3answers
418 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
539 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
77 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
60 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
97 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
28 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
149 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
261 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
63 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
45 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
72 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
145 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
103 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
196 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
161 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
62 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
93 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
92 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
323 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
70 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
117 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
125 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
78 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
54 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
57 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
91 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
71 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
386 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
129 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
174 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
148 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
89 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
61 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....