2022 Developer Survey is open! Take survey.

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
2 votes
1 answer
46 views

Nonlinear transformation applied on decorations along path with a custom pic

I am having a problem to apply a single nonlinear transformation to a path decorated with custom pics. A minimal example follows: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \...
user avatar
0 votes
0 answers
15 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 103
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, ...
user avatar
  • 137
2 votes
3 answers
82 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/....
user avatar
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$}...
user avatar
  • 185
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 ...
user avatar
1 vote
2 answers
118 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[...
user avatar
  • 73
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} ...
user avatar
  • 4,927
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....
user avatar
  • 4,927
1 vote
1 answer
53 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. ...
user avatar
  • 173
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 ...
user avatar
3 votes
1 answer
126 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 ...
user avatar
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 \...
user avatar
  • 4,927
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(-...
user avatar
  • 83
0 votes
1 answer
27 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) {}; ...
user avatar
  • 216
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} \...
user avatar
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 ...
user avatar
  • 1,657
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 ...
user avatar
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 ...
user avatar
0 votes
0 answers
24 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, ...
user avatar
2 votes
2 answers
195 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} \...
user avatar
  • 427
1 vote
1 answer
576 views

Drawing a lattice in latex

Here is the figure I wanna draw: Could anyone show me how to draw this please?
user avatar
  • 353
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} \...
user avatar
  • 145
4 votes
2 answers
222 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 ...
user avatar
  • 10.7k
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} \...
user avatar
  • 4,927
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{...
user avatar
  • 4,927
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 ...
user avatar
  • 49
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]{...
user avatar
  • 4,927
1 vote
3 answers
124 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 ...
user avatar
  • 25
0 votes
1 answer
41 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 ...
user avatar
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..
user avatar
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 (...
user avatar
  • 377
0 votes
1 answer
73 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.
user avatar
  • 3
0 votes
1 answer
321 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{...
user avatar
  • 13
0 votes
1 answer
52 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} \...
user avatar
  • 333
1 vote
1 answer
70 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 ...
user avatar
0 votes
2 answers
83 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=....
user avatar
  • 333
3 votes
1 answer
397 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} \...
user avatar
  • 333
1 vote
1 answer
148 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 ...
user avatar
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 ...
user avatar
  • 2,654
0 votes
1 answer
86 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 ...
user avatar
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, ...
user avatar
  • 145
3 votes
1 answer
255 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 ...
user avatar
  • 113
0 votes
0 answers
20 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 ...
user avatar
2 votes
0 answers
122 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}...
user avatar
  • 4,927
2 votes
1 answer
66 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 ...
user avatar
  • 113
0 votes
1 answer
124 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} ...
user avatar
  • 113
0 votes
0 answers
41 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: ...
user avatar

1
2 3 4 5 6