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
0 answers
14 views

Flowchat \end{tikzpicture}: Overfull \hbox 74.6pt

I got overfull error (74.6pt) in \end{tikzpicture}. It goes over the page and it cannot be presented in a A4 page. It also start at the center of the page and I want to start it at the left hand side ...
0 votes
1 answer
91 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 ...
0 votes
1 answer
35 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
1 answer
37 views

Problem raising a tikz picture in wrapfigure enviroment

I am doing this paper with the tikz picture tools to draw some diagrams and the wrapfigure enviroment to situate them in the text. The problem is that when I run the code, the picture is placed below ...
1 vote
1 answer
78 views

Positioning relative to page in XeLaTeX with package background and 'nested' tikzpictures 'dimension too large'

Context For a personal project I would like to have a tikzpicture on every page that borders the text and all that is on there. I started with LuaLaTeX and wanted to add only a few Chinese characters, ...
2 votes
3 answers
81 views

Node positions in Tikzpicture for using tikzmark

I wish to create a diagram like this. My attempt is shown below: Output Code \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{tikzmark,shapes.geometric,shapes.symbols} \tikzset{elnode/....
3 votes
2 answers
115 views

Transform working tikzpicture into \newcommand with arguments

I am trying to transform the solution of THIS question \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage{leadsheets} \setchords{ major-seven = \textsuperscript{$\Delta$}...
0 votes
2 answers
96 views

How to Draw Inline Symbol List with Rotation using Tikz?

Let's say I have the following string list of symbol: {a,b,+,9,3}. Is there a way to print each element of this list with the possibility - EDIT 1: to control the space between each symbol and - to ...
1 vote
2 answers
115 views

Plot polynomial function with tikz

I'm trying to plot this function : f(x)=(x^2+3x+9)/(3x). I'm having an error saying that I can't divide 9 by 0, is there any solution please? here is my code : \begin{tikzpicture} \draw[...
0 votes
1 answer
92 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 ...
1 vote
0 answers
59 views

I need help ploting an equation

I am trying to plot a function in terms of another one, but my code is taking too long and at the end i am not getting any plot. The function that i am trying to plot is: i_c(U_c(x)) U_c(x) = 5+exp(-...
0 votes
1 answer
133 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 ...
2 votes
1 answer
56 views

Incorporating Multiple Title Color Shadings into a Document

Consider the following code: \documentclass{book} \usepackage{tikz} \usepackage{xcolor} \usepackage{pgothic} \newcommand\titleshading[3]{ \newcommand\xoffset{0.3} \newcommand\yoffset{-0.25} ...
2 votes
1 answer
51 views

How to Justify the Text in a Minipage Environment within a Tikzpicture

Consider the following code--- \documentclass{book} \usepackage{tikz} \usepackage{mwe} \begin{document} \thispagestyle{empty} \begin{center} \begin{tikzpicture} \node[preaction={fill=black,opacity=1....
1 vote
1 answer
52 views

Cartesian coordinates with rectangles on axes and lines bounded elements

I need help in the pictures below. I can not draw the rounded rectangle upon the two axes, the line like U in the pictures on the left, and the line bounded the elements in the picture on the right. ...
3 votes
1 answer
42 views

TikZ: tikzset to set a macro and pass forward a key-val

I've made a TikZ pic called gen(erator). I would like to establish a TikZ key that passes rotate=90 to this pic, but also sets a macro called \complabelanchor that changes the anchor, so that if I ...
3 votes
1 answer
124 views

TikZ: position a pic with its inner coordinate

In the MWE below, I made a TikZ pic called bus with one argument. The argument creates nodes within the pic that will be used as connection points to other buses. I would like to align these pics by ...
1 vote
1 answer
71 views

\vspace{0pt} \hspace{0pt} Effects a Shift; Is There a Better Way to Produce This Tikzpicture?

Consider the code \documentclass[12pt]{book} \hoffset 10pt \voffset -45pt \oddsidemargin 12pt \evensidemargin 10pt \topmargin 25pt \headheight 25pt \textheight 8.25in \textwidth 6.15in \headsep 45pt \...
0 votes
1 answer
26 views

How to do math with coordinate labels in tikz?

I have a set of TikZ pics defined as \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,positioning} \tikzset{ shape/.pic = { \node [draw] (xx) {}; ...
0 votes
0 answers
32 views

How to use figures in an equation

I have to write an equation(3) that should partially use figures(1)(2) (which display a decision tree). Is this possible, or what other way would you suggest making this work? (1) \begin{figure} \...
1 vote
1 answer
29 views

Can't use tikz-pic together with tikzscale

I am trying to use a tikz-picture containing pic-templates together with tikzscale, but when including the image via \includegraphics[]{} I get a variety of errors. On the other hand, when including ...
2 votes
1 answer
48 views

How to draw lines properly between nested nodes using tikzpicture and chessboard

I am trying to create a states tree for demonstrating the N-Queens problem. I've managed to create a tree and display the chessboards in various states however there there is no gap between the nested ...
2 votes
1 answer
80 views

Making an animation of moving dots between sites

How can I make an animation from this picture with dots moving according to the arrows? In the picture, there are two lattices. The lattice on the bottom is the result of the top lattice after moving ...
0 votes
0 answers
23 views

issues with trend line generation

So I have this issue with my trend line graphs where when I have them on there own file it works, but when I put them into my project is puts this weird text at the bottom, any help is appreciated, ...
2 votes
2 answers
185 views

Reduce the size fo a tikz picture

I have a flowchart created using tikz. Example, \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{backgrounds, fit, positioning} \begin{document} \...
1 vote
1 answer
567 views

Drawing a lattice in latex

Here is the figure I wanna draw: Could anyone show me how to draw this please?
1 vote
1 answer
95 views

How to hatch Boxplot in TikZ

Can you please tell me how to add hatching to a Boxplot in TikZ? Thanks in advance. \documentclass{article} \usepackage{amsmath,amssymb,amsfonts} \usepackage{tikz} \usetikzlibrary{patterns} \...
4 votes
2 answers
219 views

Automatically shift scope of tikz pic

I'm trying to create pics that behave like nodes. Following the instructions of shifting scopes and naming scopes for pics, I managed to manually create pics and move them to behave like nodes. The ...
30 votes
4 answers
4k 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 ...
2 votes
1 answer
64 views

How to Add a Baselineskip at the Beginning of a Paragraph in a Certain Tikzpicture

The question posted here is an extension of the one posed in Looking to Insert a Figure and Wrap It Within a Customized Tikzpicture Consider the following code \documentclass[border=1cm]{book} \...
1 vote
1 answer
48 views

Fontsize (14) Apparently Not Working in a Tikzpicture

Consider the code \documentclass{book} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \definecolor{boysenberry}{rgb}{.529, .196, .376} \begin{document} \thispagestyle{...
0 votes
1 answer
58 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
1 answer
106 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
3 answers
121 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
1 answer
40 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
1 answer
49 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..
1 vote
2 answers
90 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 ...
2 votes
2 answers
102 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
1 answer
72 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
1 answer
317 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
1 answer
51 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
1 answer
69 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
2 answers
82 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=....
3 votes
1 answer
392 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
1 answer
145 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
1 answer
89 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
1 answer
85 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
1 answer
30 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
1 answer
252 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
1 answer
157 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[xmin=-...

1
2 3 4 5 6