Skip to main content

Questions tagged [tikz-pic]

{tikz-pic} is about questions concerning “pics” in a Ti*k*Z context. A “pic” is a “short picture” that can be inserted anywhere in TikZ picture where you could also insert a node.

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How to Reproduce a Specific Economic Equilibria Diagram with TikZ

I'm trying to reproduce a figure from a textbook that depicts international trade equilibria with sanctions using TikZ in LaTeX. Despite my efforts, the resulting figure from my code doesn't match the ...
2 votes
2 answers
61 views

Designing a curved grating, i.e. a specific dashed arc?

I am trying to recreate this diagramm on tikz: Until now I have managed this: with this code: \begin{figure} \centering \begin{tikzpicture} % Define the radius \def\R{2} ...
6 votes
1 answer
120 views

Naming tikz pics doesn't work on v.3.1.10

In previous versions of tikz the solution of naming pics using a local bounding box used to work. However, in the version 3.1.10, the previous code produces the error: ! Package pgf Error: No shape ...
1 vote
1 answer
87 views

tikzpicture - How to overlay a matrix of images with text

I want to create an A4 template with 2 columns and 5 rows for name tags, each measuring 105 x 55 mm, with a background image of the same size (105 x 55 mm). I encounter two major issues: I am unable ...
3 votes
1 answer
84 views

Positioning Multiple Fading Titles with Tikzpagenodes

The following code is adapted from the answer posted by hpekristiansen in Giving a Title a Gilded Effect: \documentclass[12pt]{book} %\usepackage[hmargin=0.7in, vmargin=0.75in]{geometry} \usepackage[...
0 votes
1 answer
281 views

How to put series of small graphics on the graph?

I am making plots with y-axis breaks by placing one \nextgroupplot above the second one. These plots have not only curves but also some additional graphics, which are assigned to bottom coordinate ...
0 votes
0 answers
45 views

How to wrap tex around a shape? [duplicate]

I am making this document and want to wrap around this text to the circular arc, but I don't know how to do this. \documentclass{article} \usepackage{parskip} \usepackage{amssymb} \usepackage{...
0 votes
1 answer
57 views

Filling a page with colour [closed]

I'm trying to fill part of one page of my project with some colour. My code is the following: \documentclass{article} \usepackage{tikz-cd} \usepackage{xcolor} \usepackage{tikz} \begin{document} \...
0 votes
2 answers
64 views

Placing Shadowed Titles within a Tikzpicture

I am trying to adapt the excellent answer of Sandy G found in Arching a Shadowed Title to a slightly different problem. Consider the code: \documentclass{book} \usepackage[sfdefault]{cabin} \...
0 votes
0 answers
82 views

Making a Tikz Node/Pic have variable height with SVG border

I am making a character sheet for DnD, and want to have a bit more flair than just a rectangle box. I have SVGs of all the containers I want to use to box out the different sections. For the things ...
4 votes
1 answer
196 views

How do I draw 90 degree angle arrows and background

I am trying to recreate this graph How do I draw axis-aligned arrows and how can I draw a background? \documentclass[9pt, landscape, twocolumn]{extarticle} \usepackage[T1]{fontenc} \usepackage{...
0 votes
1 answer
44 views

Putting labels below each bar in TikzPicture

I'm trying to create a graph like this: But I can only get it to look like this using legend text, but I want to put the text directly below the bar graphs (like 0ms, 50ms, 150ms) My code: \...
3 votes
1 answer
191 views

Tikz: Grouped Plot with Secondary y-axis

I have been working quite some time on a grouped error bar plot, but I've hit a wall: one of the variables (Variable 2) comes from a logistic regression, so its value/coefficient isn't directly ...
0 votes
1 answer
165 views

Chemplants doc example failed

I want to use check valve pic as described on chemplants doc at page 54, but I get an error saying it's not defined. I know it could be an error of the package, but I want to be sure and see if it's ...
0 votes
2 answers
50 views

Parallel Lines arrow indicators not following line direction?

I'm trying to draw a parallelogram in tikz and show that it is made up of two sets of parallel lines. Here is a section of part of my code: \begin{tikzpicture} \coordinate (A) at (0,0); ...
0 votes
3 answers
65 views

Adding angles to triangle and labelling them inside?

I'm trying to draw an equilateral triangle in tikz and want to include the angles inside and label them within the angle showing they are 60 degrees each but am now sure how to do this... here is my ...
1 vote
2 answers
58 views

Box around nodes to account for the label of each nodes tikzpicture

The problem I am drawing boxes outside of labelled nodes and the boxes does not account for the labels above the inner nodes. Here is the MWE of my document: \documentclass[10pt]{article} \ExpandArgs{...
1 vote
1 answer
45 views

Issue with scaling every pic (angles tikzlibrary)

Hi everyone I need to scale a tikzpicture so I did it by \begin{tikzpicture}[scale=<factor>] but pics don't get scaled accordingly (It is reported in the TikzManual section 18.2 The Pic syntax). ...
4 votes
1 answer
74 views

Adding stacked bracket annotation above nodes in tikzpicture

I want to add stacked bracket annotation above nodes of tikzpicture. The following is my tex document: \documentclass[10pt]{article} \ExpandArgs{c}\newcommand{new@fontshape}{anything} \usepackage[...
0 votes
1 answer
72 views

Where is the origin of coordinates in tikz

I am trying to create an equilateral triangle on my paper using LaTeX, but I do not understand how tikz (or tikzpicture) choose where is the origin (0,0) of its coordinates. After writing a text, I ...
2 votes
1 answer
80 views

How to properly set optional boolean parameter for pic in tikz?

I try to draw beam on tikz with the possibility to hide its axis. I created the following: \documentclass{article} \usepackage{tikz} \usetikzlibrary{math, shadings} \usepackage{ifthen} \tikzset{ ...
3 votes
3 answers
194 views

Node in unwanted position using tikzpicture

I am trying to adjust the position of a node in a tikz figure but for some reason the dot that I create doesn't show in the appropriate coordinate (0,8/3) that is imposed. @codeR suggested me to put ...
0 votes
1 answer
40 views

How to set this tikzpicture on the right and texts on left of it using below mentioned preamble

\documentclass[11pt]{book} \usepackage[paperheight=9.5in,paperwidth=7.5in, top=1in, bottom=0.8in]{geometry} \setlength{\columnseprule}{0.4pt} \usepackage{amssymb,amsfonts} \usepackage{mathrsfs} \...
0 votes
1 answer
34 views

Plotting a log graph with pgfplots

I've just found that we can draw plots from existing data directly with pgfplots : which is amazing. By curioisty, I tried to plot a series of data in a log scale and I keep having an error that I don'...
1 vote
1 answer
52 views

TikZ and Tabular - Connect Cells with Lines

I would like to connect the cells with the same color using diagonal lines. How can I do that with TikZ? I have tried using overlay and remember picture, but it somehow shifts the entire table. \begin{...
2 votes
1 answer
144 views

tikz pic: no pgfpointanchor possible inside the pic definition [duplicate]

If I use inside the declaration of a tikz-pic the name of a previously defined coordinate, in \pgfpointanchor{}, I get Package pgf Error: No shape named `COORD` is known. An example of this behavior ...
1 vote
1 answer
118 views

Tikz pic: alias to internal node

How could I define an alias to a node inside a TikZ pic? On this MWE, the black line is the line I'd like to obtain (using alias instead of relative positioning), while the red one is the best I can ...
3 votes
1 answer
100 views

Change \includegraphics to a TikZ \pic in \pgfplotstabletypeset

I would like to change the content of my pgf table column "Image" from using an included graphic to a predefined TikZ \pic based on the information in column "Type". The \pic ...
3 votes
2 answers
243 views

Generate TikZ \pics dynamically

I want to generate TikZ \pics dynamically. All information I need to setup the pic (name, x-coord, y-coord) are given in a tabular. Is there a way to inject these information to the TikZ environment ...
2 votes
1 answer
57 views

Name \pic object using loop variable

What is the good way to name \pic object when \foreach variable is used? I use the variable in \foreach as part of the node name. If I do not using local bounding box, then there is no shape name ...
4 votes
3 answers
348 views

Tikz pic: use internal nodes as anchor name

I'd like to use pics to easily and quickly create new node shapes. Sadly, I can't find how to use internal nodes to define anchors. For instance, I'd like the B to point to the small x in the ground ...
1 vote
1 answer
55 views

How to print a \pic in TiKz aligned to one of its border?

The following MWE shows how to draw a background image with scaling and adding a predefined "PowerSupply" pic to it. This works great but the problem is, that the position where I want to ...
4 votes
2 answers
179 views

wheelchart and danish letter æ ø å

Why can't I get the danish letter æ, ø, å ind the names in my wheelchart I want to write Mængder but it will not work for me. \documentclass[dvipsnames]{standalone} \usepackage[latin1]{inputenc} ...
0 votes
1 answer
57 views

Cross-Referencing Label Affects Vertical Spacing

Consider the code with \label{L} (immediately above the second tikzpicture) commented out: \documentclass[12pt]{book} \usepackage[paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \...
0 votes
1 answer
90 views

Extracting an Interior Portion from a Tikz ClipPicture

Consider the MWE: \documentclass{article} \usepackage{tikz} \usepackage{graphicx} % % COMPILED WITH PDFLATEX \newif\ifdeveloppath \tikzset{/tikz/develop clipping path/.is if=...
4 votes
1 answer
230 views

Split a Tikzpicture Across Two Pages

Often enough, I run into the problem of a tikzpicture being too large to fit on the page where I would like it to be. Consider the MWE (compiled with pdfLatex): \documentclass[a5paper,12pt,openany]{...
3 votes
2 answers
220 views

How to Neutralize TikZpicture Codings without Deleting Them?

I have a document which contains over one hundred tikzpictures similar to the ones seen below. I would like to (easily, if possible) produce two different documents from that set of code---(1) as it ...
0 votes
1 answer
66 views

How to draw the shape shown in the below image using tikz?

\documentclass[12pt]{article} \usepackage{graphics} \usepackage[dvipsnames, xllsnames, svgnames, table]{xcolor} \usepackage{tikz} \usepackage{tikzpagenodes} \usetikzlibrary{arrows, shapes, ...
-2 votes
1 answer
53 views

How to draw the depicted contour in tikz? [closed]

How may I draw the following image as a tikzpicture?
7 votes
2 answers
1k views

How to Sharpen a PDF Drawing

The following Wikipedia image is in the public domain: Using \includegraphics, I incorporated the image into some LaTeX code, edited out the border, and saved the remaining portion as a PDF. Now, ...
0 votes
1 answer
57 views

Problem with tikzpicture and matrix for Flowchart

I have a problem with my generated Flowchart using \matrix and tikzpicture. I want to create a chart like the one which i drew in the attached image. So i was using as a base the Flowchart in: https:/...
1 vote
1 answer
102 views

How to Type a Scaled Greek Letter to Fit an Arched Page of a Tikzpicture

MWE (compiles with XeLaTeX): \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{scalerel,scalefnt} \usepackage[LGR,T1]{...
1 vote
0 answers
87 views

How to Arch an Image to Fit a Tikz Decorations Page

Consider: \documentclass{tufte-book} \usepackage{xcolor} \definecolor{PrussianBlue}{cmyk}{1,.41,0,.67} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{decorations.text} \tikzset{mydecor/.style ...
0 votes
1 answer
76 views

How to make a tetragonal pyramid?

I have the following code for an octahedron. I need to remove the below part of that and write A, B, C, D, E for each vertex. I do not know how to do that. Your help will be appreciated. \[ \begin{...
3 votes
1 answer
102 views

Getting pics to act like a chain

I am taking the code I put together in With TikZ, is it possible to split a node horizontally and vertically?, and make it into a pic. This is doable, but placing successive pics is problematic: pics, ...
1 vote
1 answer
121 views

Draw loop on a torus [duplicate]

How to add loops winding all the way around the torus and simple loops to this torus: \documentclass[tikz,border=1.14mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \begin{document} ...
1 vote
1 answer
78 views

How to uniformly distribute pics on a curve?

I want to create a path in the form of a Bezier curve and place pic figures evenly along the path. In this example, the pics are only placed between the last two points of my curve and they are not ...
2 votes
1 answer
80 views

Why don't pic prefixes in TikZ work with matrix cell names?

When I have a pic whose code includes a matrix, things don't work when I use a name prefix for the pic: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{...
4 votes
3 answers
919 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] (0,...
0 votes
1 answer
60 views

Convex hull of a line and a circle

How to draw the convex hull of a circle and a line in a grid. The picture is attached.

1
2 3 4 5
7