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.

Filter by
Sorted by
Tagged with
0
votes
1answer
48 views

Can't connect pics to a node

Unfortunately I am not able to connect node Client1 to port 13. My unsuccessful attempt is shown below. I know that unlike nodes, pics cannot be referenced later. Can someone help me convert port/.pic ...
1
vote
1answer
78 views

Looking to Insert a Figure and Wrap It Within a Customized Tikzpicture

This question inquires as to an extension of Daniel N.'s answer found in How to enhance the background of a Tikzpicture or a Tcolorbox Consider the slightly modified code: \documentclass[border=1cm]{...
1
vote
3answers
78 views

tikzpictures underneath matrices

I'm trying to construct a diagram of how to calculate a 3x3 matrix determinant via the Rule of Sarrus, and I've managed to come this far after lots of research, but I still would like to make the ...
0
votes
1answer
29 views

Ticks on the y axis not working as anticipated

I am trying to have a plot where the ticks on the y axis are 1, 1.004, 1.008, 1.012, 1.016, and 1.02. However, only the ticks 1, 1, 1.01, 1.01, 1.02, 1.02 are shown in the figure (see below). I was ...
3
votes
1answer
40 views

How to draw Y type tree with qtree or tikz-qtree

Is it possible to draw unlabelled tree of the below type with qtree or tikz-qtree? Any suggestion..
3
votes
2answers
94 views

Positioning of multiple `pic` using `below=of` not properly aligned

I've created a template using pic that has 3 cells. Then used fit to created a box I named -perimeter around these 3 cells. Now I want to place and connect multiple pics of this type using a line (...
0
votes
1answer
41 views

Bin packing problem diagram // Latex

I need a diagram/graph like this on a latex document. I don't know neither the library to make this nor a source/example code. Any info will help me! Thaks.
0
votes
1answer
69 views

! LaTeX Error: \caption outside float

I am just getting started with LateX, but i got an due date tomorrow. When i compile my LateX file i get this error: ! LaTeX Error: \caption outside float. You can find my code below. \begin{...
0
votes
1answer
29 views

Tikz scale text together with math text

In the below-simplified Latex code, I'm using scale to change the font size of the math mode. \documentclass[convert={density=300,size=1080x800,outext=.png},tikz]{standalone} \usepackage{xcolor} \...
1
vote
1answer
53 views

Aligning bullet in tikz with some other issues

I want to change a few things in the following picture: (1) Aligning the bullet (d) vertically upwards from where the picture starts. (2) Changing direction of the arrow at q4 from right to left (in ...
0
votes
2answers
49 views

Tikz standalone the border is not working

I'm currently developing an LFSR drawing library that the latex is output from Python code. One main issue that has been left is the border. \documentclass[convert={density=300,size=1080x800,outext=....
2
votes
1answer
82 views

Tikz standalone the background is transparent make it white

I'm using the below Latex code to draw a tikzpicture \documentclass[convert={density=300,size=1080x800,outext=.png},tikz, border=1cm]{standalone} \usepackage{{xcolor}} \usetikzlibrary{arrows.meta} \...
1
vote
1answer
73 views

Is TikZ most appropriate for drawing cartoon for Latex documents? If not, is there any suggestion on which software might be preferable?

For example, I wish to draw simple figures such or and include them as vector graphics in Latex documents Is TikZ the most appropriate tool to use? Meaning, how difficult/time consuming would it be ...
3
votes
1answer
77 views

Tikz: Setting an anchor in a pic for relative positioning

I have created a pic of a simple polygon which I want to use and reuse to create tikzpictures containing copies of it positioned relative to each other. How do I do that? If I did not have the pic, I ...
0
votes
1answer
36 views

graph on latex with too many data points, giving me timeout [closed]

So, I am writing a report which contains graphs, graphs are with a huge amount of data points. one graph only could contain more than 32,000 points, and I am using tikzpicture and adding coordinates ...
2
votes
1answer
28 views

Unexpected capacity exceeded

The following code gives me an unexpected capacity exceeded error, and I don't understand why... \[\begin{tikzpicture}[xscale=5, yscale=5.5] node (1) at (0,0){ $\begin{tikzpicture}[xscale=0.6, ...
3
votes
1answer
170 views

Enhanced animation

I started with a simple animation and tried in the second step to improve it. In the second frame I included a long horizontal rectangle, filled by white squares (foreach loop). Is there a way to save ...
0
votes
0answers
18 views

How to zooming out multiple figures in a single slide? [duplicate]

I'm preparing for a presentation. I have four figures (fig 1, fig 2, fig 3 and fig 4). I want to show the fig 1 in the whole slide and then zooming it out to the top left corner of the slide. Then to ...
3
votes
0answers
103 views

What Causes (and How to Reproduce) a Tikz Pencildraw Anomaly

The code: \documentclass[12pt]{book} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \definecolor{darklavender}{rgb}{0.45, 0.31, 0.59} \begin{document} \thispagestyle{empty} \begin{center}...
2
votes
1answer
53 views

Simple toggle animation won't work

I tried a simple toggleanimation. First i create a bool value If I set it to true, the if path is performed, set it to false results in the else path. So far so good. Within an animateinline i want to ...
0
votes
1answer
64 views

Text and tikz animation in one slide

I found a TikZ animation example here. In the next step I tried to put text beside the animation, doing the following: \documentclass{beamer} \usepackage{tikz} \usepackage{animate} \usepackage{ifthen} ...
0
votes
0answers
29 views

Package pgf Error: No shape named A known

I am trying to draw a 2-coloured graph, but my code does not compile. Interestingly enough, I had no problems with it until I used the babel package to change my document's language. Here is my code: ...
1
vote
0answers
28 views

Combination of babel - czech and tikzpicture

Why does \usepackage[czech]{babel} make problem in this code, please? I obtain an error: Missing number, treated as zero. \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
117 views

How to enhance the background of a Tikzpicture or a Tcolorbox

I would like to produce either a tcolorbox or a tikzpicture that closely resembles the following image: The following code produces as reasonable facsimile, but not great: \documentclass[12pt]{book} \...
0
votes
1answer
98 views

Absolute position of a drawing on the sheet

I would like to correct a little the position of the drawing (it's a very large drawing, but it's a block in itself). The code is really simple (I'm just starting with Tikz): \documentclass{article} \...
1
vote
1answer
44 views

assign a name for pic in tikz

I have a /.pic in tikz, but I can not assign a name for that. I want to draw some block in the right of that pic. I have attached the figure which I want. Could you help me with how to solve that? ...
2
votes
1answer
74 views

LaTeX Produces a Tikzpicture with the Color I Want---but with Error Messages Indicating the Color is Not Defined

I have written some code to produce a tikzpicture with a lavender color that I later want to add some text to. \documentclass[12pt]{book} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \...
0
votes
0answers
35 views

Control text in Tikz picture that is turned a certain degree

I am making a small picture to explain the capacity of a car driving up a slope. I have problem controlling the labels that are next to each arrow. I would like to have them either perpendicular or ...
1
vote
1answer
69 views

How can I draw a line segment from an anchor node inside a pic?

I'm trying to draw a line from an anchor node inside a configurable object constructed as a TikZ pic, but it doesn't work. Is there an explanation and solution for this? \documentclass[10pt]{...
2
votes
1answer
134 views

Positioning rasters using Tikz

I am trying to position a raster which span on multiple pages using tikz, but cannot figure out how to do so. MWE without positioning which works: \documentclass[a4paper,12pt]{article} \usepackage{...
2
votes
1answer
68 views

Blotting Out the Curve Used to Bend Text in a Tikzpicture

This is a follow-up to a question I posted yesterday: How to Bend Words to Conform to the Arching Pages of an Open Book Image After receiving no answer to the above question, I have since been able to ...
0
votes
0answers
63 views

Self Learning (pgfplots, asymptote) in systematic manner from ab initio

Kindly guide in order to self learn in a systematic manner the following Pgfplots Asymptote for 2D and 3D drawings. Thanks
0
votes
0answers
44 views

How to make a path between multiple nodes follow a gradient in TikZ?

I'm trying to show trails on graphs. I thought a good way to display this would be to create a gradient of 2 or 3 colors. Each edge could have a solid coloring throughout, or the color could be a ...
0
votes
1answer
50 views

How to properly position text over full-page image (background) using Tikz?

I would like to be able to position text using coordinates using number of millimeteres from top left corner. Using Tikz, I have the following tex code, which does appear to position the text above ...
0
votes
0answers
29 views

\includegraphics with angle results in loss of quality of pictures

In a tikzpicture, in order to include pictures, I usually use a command like that \includegraphics[origin=c,height=5cm]{pic.png} and everything goes fine. But if I insert an "angle" option ...
0
votes
1answer
67 views

Updating code for everypage from Overleaf document

I have a large document that I've written in Overleaf (pdfLaTex 2020 compiler). Each section compiles fine, but the whole thing takes more than 4 minutes to compile, so I need to download and compile ...
3
votes
2answers
53 views

Referring a \pic by its name that is generated in a for-loop

I use a loop to place a list of pics, each of which has a bounding box. Then I refer to one of these bounding boxes, but tikz does not seem to get names generated by the for-loop. This is the code: \...
2
votes
0answers
73 views

Left-align TikZ pics and issue with TikZ graph

I'm trying to put together a more complex drawing from several TikZ pics. I have constructed a minimal example from which the challenges become visible (see below). After the styles, first the two ...
1
vote
0answers
56 views

Is there an option to simulate the drawing of a TikZ pic without really drawing it?

Currently, I draw a TikZ picture with lots of TikZ elements and subelements. To do this, I use TikZ pic. Sometimes, I need to know the size of a pic prior to its drawing for the correct positioning. ...
0
votes
0answers
37 views

how I can draw this using tikz [duplicate]

Please help me. How can I draw this using tikzpicture. Thank you.
2
votes
2answers
234 views

using Tikz to create a maze

I created this figure with microsoft powerpoint but I'd like to make a similar one using latex because I am writing my document in latex. I already asked how I can make similar maze structure but in ...
1
vote
2answers
68 views

How to mirror and position the analog clock dials

I am trying the create analog clock dial with roman or standard numbers on display and at the same time create another one but the mirror image of it. I managed to do that but for some reason a third ...
1
vote
1answer
61 views

How to create a simple box that contains another box in Beamer?

I would like to create something like, or Does anyone know how to create these simple diagrams? Note: corner need not be rounded. Text need not be Hello World. Edge color need not to be blue.
0
votes
1answer
54 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
0answers
30 views

Problem with TexWork PDF generator in plotting TikzPicture

I have to export a PDF composed of a lot of pages, but OverLeaf can't compile (I use the free license). So I'm using the TeXWork program but among all the TikzPicture images, only one of these fails. ...
0
votes
0answers
22 views

Fill unbounded region between 3 or more lines

How can I fill the unbounded region between (A, B, C) with color red, I'm not talking about the triangle between these 3 lines, I'm talking about the region that is 3 way bounded by (A, B, C) with an ...
1
vote
1answer
112 views

Using tikz to generate some figures

Is it possible to use tikz to make the following figure: \documentclass{article} \usepackage{tikz} \begin{document} % Radius of regular polygons \newdimen\R \R=5cm \begin{tikzpicture} \draw [...
0
votes
0answers
36 views

Vertical graph issues

I have some difficulty creating a vertical graph with text attached. This is what i want to create: The graph allways starts and end with a "oplus" symbol and need to be 15cm at all times (...
2
votes
1answer
119 views

How to draw the the following directed graph with TikZ?

I am new to TikZ. I am trying to realize the photo using the TikZ package. I know how to draw these individual figures using tikzpicture. However I am not sure how I can place them in order and use ...
1
vote
0answers
135 views

Making a fairly general variational autoencoder with tikzpicture

I'm new to the forum due to having recent problems with a picture of the network-architechture of a variational autoencoder. Currently I have this code: \documentclass[tikz]{standalone} \newcommand\...

1
2 3 4 5