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

4
votes
1answer
59 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} ...
5
votes
1answer
67 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
102 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
51 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
34 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
93 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
39 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 ...
1
vote
2answers
195 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
122 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
votes
1answer
176 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 ...
11
votes
2answers
309 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
180 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) ...
11
votes
1answer
375 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 ...