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

learn more… | top users | synonyms

1
vote
0answers
38 views

go to .tex file when clicking on a .pdf in includegraphics

I am trying to figure out a convenient way to do the following: I do my presentations in LaTeX and for the sake of compiling time I usually have my graphics in an extra subfolder. While editing the ...
7
votes
3answers
69 views

TikZ using \tkzMarkAngle in pics

I am trying to draw some Penrose tiling in order to learn more about tikz, and I can now make pics and place them. But I can't label angles: if I use \tkzMarkAngle (which would be ideal) in pics, I ...
0
votes
0answers
90 views

Drawing waterdrop after splashing with tikz

I want to generate figures which represent a water drop after the impact with a liquid surface using TikZ. I would like to sketch a 2D-figure like the scheme attached and a sequential 3D-figure of ...
2
votes
1answer
33 views

Place two flow charts side by side

I've read some of the other posts regarding placing figs side by side and I don't think this is duplicate because flow charts are not figures. Essentially I said my goal in the title, I want to place ...
3
votes
2answers
48 views

Positioning '\pic' in tikz

With the code \documentclass[tikz,convert={size=640}]{standalone} \usetikzlibrary{positioning} \usetikzlibrary{calc} \usetikzlibrary{quotes} \begin{document} \begin{tikzpicture}[ ...
12
votes
1answer
113 views

In tikz, why does a pic with a tree get distorted upon positioning with e.g. `right=of`

I'm trying to connect with edges tikz pics. I thought of using (sub)graphs like subgraph I_n and specifying the nodes with the V key, but I get an error: Undefined control sequence. ...
0
votes
1answer
110 views

Is it possible to make such an image with Tikz? How?

I'm wondering what's the best way to render this image width the dashed line and with angles between normal lines and dashed lines. And also Is there a way to quickly rotate the tikz resulting image ...
1
vote
1answer
46 views

Caption in a tikzpicture drawing

I have this LaTeX: The \caption line at the end breaks the compilation. How could I make this work? Thanks \begin{center} \begin{tikzpicture}[scale=0.2] \tikzstyle{every node}+=[inner sep=0pt] ...
2
votes
1answer
74 views

How can I pass an array as argument to a tikz pic?

I would like to pass an array as the first argument to a pic. However, the naive method doesn't work: \documentclass[border=10pt]{standalone} \usepackage{tikz} \tikzset{ ball/.pic = { ...
2
votes
1answer
88 views

Namespace for options to TikZ pic

I often have to draw cuboids and cubes in TikZ, so I thought I might create a pic for it. For the basics, everything worked fine. Now, I would want to give it some flexibility, e.g. set fill and draw ...
0
votes
3answers
147 views

TikZ draw objects with fields

How can I draw using TikZ (or other libraries) something like this:
3
votes
1answer
197 views

TikZ Pics with optional/default parameters

I am trying to set up a small TikZ library or package with pics I can reuse. Thus, I create a file called "tikzlibraryBES.code.tex" with the following content: \tikzset{ % House ...
2
votes
0answers
96 views

How to specify the projection vector in this code? [closed]

First of all, I must admit I have no knowledge on how to draw in LaTeX, even if I would like to have, but I have had not the opportunity to study. I have the following picture of a projection of a ...
4
votes
1answer
120 views

Crop an image in tikz using 2 points of reference and a height

Consider the following code: % DOCUMENT TYPE \documentclass[12pt,a4paper]{article} % PACKAGES \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
7
votes
1answer
193 views

Anchoring complex tikz pic

In my illustration I need a sketch of clock. For it I use pic capability of TikZ. It works fine with quit annoying exception: positioning of clocks in picture. If I put a clock at some absolute ...
5
votes
1answer
259 views

Node positioning relative to `\pic`

I want to position a node relative to a \pic. I'm able to position a \pic relative to a node, but I want it the other way. \documentclass{standalone} \usepackage{tikz} \tikzset{ pics/mp3/.style ...
1
vote
1answer
84 views

Arrows with curly parenthesis

I do not know how to us tikzpicture very well. I want to draw the picture similar that is attached. My problem is how can I add curly parenthesis between the arrow. Additionally, if you can suggest me ...
0
votes
0answers
42 views

Tikzpicture, tagging labels onto nodes

I would like to tag numbers onto the outside of the nodes of a combinatorial graph. Here's my code for the graph [I want to attach labels 1,2,3,4 to each of the nodes, without having to change the ...
7
votes
1answer
159 views

Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture

I'm having trouble figuring out how I am supposed to combine (or if I am supposed not to combine) pics, clipping and layering when more than one instance of a pic is included in a single tikzpicture ...
3
votes
0answers
44 views

Using node after pic results in error in TikZ [duplicate]

Consider the following code: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[corner/.pic = { \path[pic actions] (0,0) -- (1,0) -- (0,1) --cycle; }] \pic[draw] ...
1
vote
0answers
41 views

Strange behaviour involving nested TikZ pics an the to path [duplicate]

I have become quite fond of using TikZ pics, but sometimes I run into some unexpected behaviour. As far as I know, if you define coordinates like (-A), (-B),... inside a pic and draw the pic later as ...
2
votes
2answers
300 views

Nested pics in TikZ 3.0

TiKz 3.0 introduce pics and I like them, but it seems that they are not as powerfull as I wish. For example I'm not able to use nested pics like this : \tikzset{ one/.pic = {\draw[pic actions] ...
4
votes
1answer
186 views

drawing directed graph

How can I draw an edge from (ab) to ($a^3$$b$)? I tried using \Edge(ab)($a^3$$b$) like I did for drawing an edge from (b) to (e) but the same method didn't work. I think it has something to do with ...
1
vote
1answer
312 views

drawing a 2D-plane

i need to draw this plane, but i don't know how can anyone help me? its important i need it in my master report. i try to use this from an old example to start with but it didn't work ...
12
votes
2answers
673 views

How to give a name to \pic

I read instruction how to use \pic in PGF 3.0.0 manual, but description how to give names to \pic are not clear to me and given example generate error: "No shape named EmmaEmma-left is known." ...
4
votes
1answer
231 views

A nice example with `name prefix ..`

TiKZ pics include a new key called name prefix ... TiKZ documentation defines it with /tikz/name prefix .. This key is available only inside the code of a pic. There, it (locally) ...
15
votes
1answer
649 views

Anchoring TiKZ pics

Is it possible to anchor a TiKZ-pic on an internal anchor? I know (more or less) how to use TiKZ pics and know that they are draw arround their origin. What I would like to be sure is that it's not ...