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
42 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
35 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
69 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
31 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
62 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
105 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
57 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
47 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
33 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
43 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
22 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
48 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
47 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
69 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
52 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
35 views

how I can draw this using tikz [duplicate]

Please help me. How can I draw this using tikzpicture. Thank you.
2
votes
2answers
202 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 ...
0
votes
0answers
26 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
53 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
43 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
29 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
21 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
107 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
35 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
90 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
84 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\...
0
votes
1answer
43 views

In tikz, how to pass named coordinates to a named pic?

I have found problems when passing a named argument to a pic, but only when the pic is also named. Follows the illustrative code and the problem occurs in the line tagged with %NOT OK. That line gives ...
2
votes
2answers
47 views

horizontal alignment of multiple \pic objects

I want to group some tikz drawings together, and am using a pic for this. I further wish to use the pics as though they're ordinary nodes, and draw some connecting arrows. How can I horizontally align ...
0
votes
2answers
135 views

Nested TikZ pics (double angle symbol) [duplicate]

Edit: @js bibra pointed me to How do I mark an angle with multiple arcs? It seems like my question is kind of a duplicate, but there is still the matter of whether it makes sense and how to nest pics, ...
0
votes
1answer
43 views

Graph a function with \frac

I need to graph the function f(s)=\frac{s^3+7s^2+9s-128} {s^2+15s+24} ,where s greater than zero, please help me...
0
votes
1answer
41 views

How to remove coordinate axes in tikzpicture?

I created this tikzpicture in geogebra. I just want the vector instead of coordinate axes shown in picture after running. I do not how to set the code given so that axes are removed and get just the $\...
1
vote
1answer
37 views

TikZ: `behind path` Key Inoperative With Angles Library

I am using the angles library to label angles in my diagrams. I'm noticing, however, that the arc created by the angles package rests on a layer above the rest of the diagram by default, i.e., the ...
2
votes
2answers
156 views

Printing an element of a non-numeric array as the node label

I want to retrieve a member of a non-numeric array passed to a TikZ pic as an argument, to use it as a node label. \foreach easily does it while iterating over the array, but I cannot do it for the ...
0
votes
0answers
15 views

Caption “Missing number, treated as zero”

Following code gives the error at 'caption' and I don't know what is the problem.. \begin{example} There are exactly $4$ root systems in two dimensional vector space: \begin{figure}[h] \...
1
vote
0answers
25 views

TikZ find out current rotation angle in definition of TikZ pic

Is there any way to find out what the current rotation angle is inside the definition of a TikZ pic? I need to define a pic with one component whose positioning is independent of the coordinate ...
2
votes
2answers
55 views

Arrows mess up bounding box of pics

I use pics to reuse more sophisticates images multiple times in a drawing. To easily connected them with lines/arrows I name the bounding box of each pic, so they get a bit a node-like behavior. Now I ...
0
votes
1answer
27 views

Insert content next to node in a tree

I created a Binary Tree. This is my code: \begin{tikzpicture}[level/.style={sibling distance=80mm/#1}] \node[circle,draw](z){$50$} child {node [circle,draw] {$30$} child {node [circle,draw]...
0
votes
1answer
31 views

Problems in adaption of a blueprint column chart with TikZ

I use the following working code as a blueprint for my wishes. \begin{tikzpicture} \begin{axis}[ ybar, bar width=20pt, % nodes near coords, nodes near ...
1
vote
1answer
20 views

color in block hides text

I have the following code, wicth I need to modify to include backgroud color, however when I do that the text is hidden. Could you help me soolve this issue? \documentclass{article} \usepackage{tikz} \...
0
votes
1answer
136 views

How to draw a complicated tikzpicture in LaTeX

Recently, I am learning to use LaTeX to draw a tikzpicture, and found there was a attractive figure in the IEEE paper. May I ask how to draw the figure like this? I know there is the /node structure ...
0
votes
0answers
34 views

Ellipse tikzpicture as tabular cline

My purpose is to use a tikzpicture as tabular cline. Moreover, the tikzpicture should contain some small text. My tikzpicture is the following : \begin{tikzpicture} \draw (0,0) ellipse (4em and ...
0
votes
2answers
126 views

Setting background color in flowchart

I've a flowchart created in the following manner \tikzstyle{steps} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=gray!50] \...
0
votes
1answer
57 views

How to get this graphics using tikz

How to use this code, to get something like in the picture ? \documentclass[10pt]{article} \usepackage{mathtools,relsize,tikz} \usetikzlibrary{calc,intersections,through} \begin{figure}[h] \def\...
1
vote
1answer
53 views

Equal boxes in tikzpicture

I have written below latex script to make a table, but the size of boxes depends on the amount of text inside them and it makes everything messy. My questions are: 1- Is there any way of making the ...
1
vote
1answer
35 views

/.store in, with default value in brackets

I would expect the following code to draw a red line, but it doesn't. \tikzset{ ls/.store in = \ls,ls={draw,red}, myline/.pic = {\path[\ls] (0,0)--(1,0);} } \begin{tikzpicture} \pic (0) at (0,0) {...
0
votes
1answer
26 views

problem with y label and x label

I have a problem with the axis labels. When I scale down the graph it changes my location and they don't look like they should. If I set the scale to 1 it looks good but I change the scale and mess up ...
5
votes
2answers
270 views

Tikz and lines with the Q letter

I do have a tex, that always show me a twolines, in a tikzfigure when letter Q is in the line. Let me share the TEX with you \documentclass[parskip]{scrartcl} \usepackage[margin=10mm]{geometry} \...
0
votes
1answer
49 views

How can I reproduce this image in a simple way?

I need to draw this simple scheme in latex, how would you do it in a simple way ?
0
votes
1answer
115 views

labeling points on the circle with the same symbol

I am trying to draw a circle centered at A(1,1) and radius 1. I also want to draw 2 dashed lines from center to the points B(1,0) and C(0,1). here is my progress \begin{tikzpicture} \tkzInit[...
1
vote
1answer
33 views

Why does rotate option not rotate all objects (except labels) of my pic?

I've a pic including a spacecraft and a local frame attached to it as below. pics/spacecraft/.style n args={2}{ code={ \node [shape=rectangle, draw, fill=gray!30, inner sep=0pt, ...

1
2 3 4 5