Questions tagged [tikzset]
The tikzset tag has no usage guidance.
35
questions
4
votes
1
answer
80
views
Using \tikzset to replace options for tikzpicture without a named style
I am trying to concentrate often used options for a tikzpicture under a tikzset command in the preamble, to share among different pictures. My MWE is:
\documentclass[crop,tikz]{standalone}
\usepackage{...
4
votes
1
answer
100
views
Custom edge in TikZ graph
Goal
I'm trying to connect the nodes of my graph using a horizontal-vertical-horizontal line.
MWE
Consider the following example:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs, ...
0
votes
0
answers
73
views
"Overfull \hbox (11.58838pt too wide) in paragraph" but the line is empty
I get the message: "Overfull \hbox (11.58838pt too wide) in paragraph at lines 362--362"
It refers to the empty line between the newpage command and the example below, so I'm confused. Also, ...
0
votes
1
answer
21
views
Tikzset node with centered custom text
Alright I'm giving up. I want a custom node that looks like a common PI&D turbine or compressor symbol:
\tikzset{TC/.style={
minimum height=2cm,
minimum width=2cm,
path picture={
\...
0
votes
1
answer
79
views
How to search for an element in array in Tikz?
I am trying to pass a value (first input argument) and an array (second input argument) to Tikzset and I want to check if the value is in the array. Each time I am running the code, the array is read ...
0
votes
1
answer
85
views
Add properties instead replacing them in tikzset
I am working on a project involving several files and i would like to have the possibility to add properties to styles using tikzset and pgfplotsset.
I reduced my code to a MWE :
\documentclass[border=...
1
vote
2
answers
122
views
Beamer and diagram
I have a very long diagram and I want it to be displayed in one frame
\begin{frame}
\newcommand{\rect}[4]{\node[draw,minimum height=1cm,minimum width=4cm] (#3) at (#1,#2) {\begin{minipage}{3.8cm}\...
4
votes
1
answer
84
views
Declare TikZ Style (JUST ONCE!)
In this link I found a very beautiful \tikzset. In a book that I'm writing I use several times this tikzset. Does exist a way to create a \begin...\end{tikzpicture} with this tikzset? For example I ...
2
votes
2
answers
139
views
Parameterize the node texts in tikzset
I have the following code which draws a linked list
Initially it printed the node texts as leaning against the right edges of the nodes. Putting \hspace*{-3pt} in front each text solves this ...
0
votes
1
answer
34
views
A tikzset+code error message
I'm compiling the following code
\documentclass[tikz]{standalone}
\usepackage[rgb]{xcolor}
\usepgflibrary {shadings}
\begin{document}
\begin{tikzpicture}
\tikzset{%
vertex/....
1
vote
2
answers
116
views
Tikzset multiple pic
Trying to draw two pictures within one tikzset. Why won't it draw myBalance?
\documentclass[a4paper]{article}
\usepackage[margin=10mm]{geometry}
\usepackage {array, tikz, amssymb}
\def \myScale {0.3}...
3
votes
1
answer
99
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 ...
1
vote
0
answers
54
views
Tikzset modifying pics without cause
For some reason, tikzset seems to draw pics differently the first and second time. In the following example, I expect the two neural networks I draw to be identical, with one directly right of the ...
0
votes
1
answer
70
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 ...
0
votes
0
answers
84
views
Placing a fully defined picture absolutely at any point inside a path picture
The following example generates a rack switch with a single port.
The front oft the rack switch is defined by a path picture.
I add the port to path picture by using \node and i am placing the node ...
3
votes
1
answer
63
views
Radius-Property doesn't work in \tikzset (Tikz)
Why doesn't the radius-property work in these case:
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{calc, shadings, shadows, shapes.arrows}
\tikzset{my style/.style={fill=black!60,circle,...
0
votes
1
answer
113
views
How to set default decorator options in e.g. a tikzset?
I am putting labels on top of photos. Some labels are curved, to follow features in the image. I am calling the labels from a tikzset, as I am using the same photo multiple times.
The example below ...
0
votes
0
answers
34
views
Modifying a tikzset to accepts more macros
I found the below tikzset on StackExchange and I want to modify it to accept more parameters than just the pipe width, I want to be able to change this pipe width={(\pipewidth)*4/3} and the color as ...
2
votes
1
answer
79
views
Problem with \tikzdeclarecoordinatesystem
I create a new coordinate system with \tikzdeclarecoordinatesystem.
Compiles true when scale=1 and false otherwise. Why? Can you help me? Thanks alot.
This is my code.
\documentclass[tikz, border=2mm]{...
2
votes
2
answers
46
views
How do I use pgfkeys .try handler for selecting a choice that could not exist?
The problem is the following:
\documentclass{article}
\usepackage{tikz}
\def\cmd{0}
\tikzset{/test/.is choice,
/test/one/.code={\def\cmd{A}},
/test/two/.code={\def\cmd{B}},
}
\begin{document}
\...
1
vote
1
answer
134
views
Spider web effect in a frame
Starting from a old my question with the code of the user @Ignasi,
\documentclass{article}
\usepackage[most]{tcolorbox}
\usepackage{pifont}
\newtcolorbox{mybox}[2][]{%
colback=teal!10,
...
2
votes
1
answer
305
views
Increase the thickness of an arrow in xy and tikz-cd package
We start from these simples MWE. The first is done with xy package, with your tips:
\documentclass[a4paper,12pt]{article}
\usepackage[all]{xy}
\begin{document}
\xymatrix{A \ar[r]& B}
\end{document}...
0
votes
1
answer
68
views
''pgfkeysvalueof" in "append after command"
With the following code, I was trying to override the default bcol=red with bcol=green, but that apparently does not work (the initial value is used in both cases). Is there a reasonable fix to make ...
2
votes
1
answer
131
views
Using pics/port/.style n args = {3} doesn't work correctly in \tikzset environment
In TikZ i use the pics/ command inside the \tikzset enviroment to define the picture port, which is a element of a network switch. As you can see, the call of picture port in line 34 an 38 requires ...
1
vote
1
answer
98
views
How can I have a figure or a table in tikzset?
Here is the code for Convolutional neural network.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage[table]{xcolor}
\usepackage{pifont}
\usepackage{booktabs}
\...
1
vote
1
answer
150
views
Combine nodes and arrows in a tikzset
I was wondering whether it's possible to combine nodes and arrows (which are defined only in relation to the positioning of the "parent node") in a shared tikzset?
A minimum working example ...
2
votes
1
answer
465
views
How can I set a default background for all TikZ pictures?
Individually setting the background for each TikZ picture works:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows.meta,fit,calc,backgrounds,shapes.geometric}
\tikzset{%
...
0
votes
1
answer
383
views
How to make a defined \tikzset label centered above?
I managed to get some code from another question on this forum (I forgot where, but here is the code):
\tikzstyle{block} = [draw, rectangle,
minimum height=3em, minimum width=3em]
\tikzstyle{...
1
vote
3
answers
699
views
Connecting boxes with the lines drawn from the centre with tikz
I drew the following flow chart using a matrix in tikz (the code has been taken from this question):
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\...
2
votes
1
answer
650
views
There's any way to create a tikzset function with more than 9 arguments?
I can create a \tikzset function with 9 parameters by writing a code like the one below:
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
%---&...
3
votes
1
answer
1k
views
Different settings for figures in Tikz
I have a beamer with many figures. The problem is that now I want something that requires settings that are in contradiction with what was defined beforehand.
I have :
- A main file where all the ...
3
votes
1
answer
230
views
\foreach loop for \tikzset
I have the following code for drawing circles whose different radius. As seen in code there are two different pic statement (d1 and d2).
\documentclass[margin=3mm]{standalone}
\usepackage{tikz,pgf}
\...
1
vote
1
answer
161
views
Coordinate problem with \tikzset
When using \tikzset the coordinates there are not working as I expected. Why does the red line not start inside the rectangle?
I tried "\tikz \pic at (1,1) {mypic};" instead which does not seem to ...
2
votes
1
answer
3k
views
Using tikzset to set Arrow style and line width
I'm using a tikzset command to set a global style
\tikzset{FARROW/.tip={Latex[angle=40:2.5mm]},
FARROW/.style={line width=3mm}
}
When I use it for an arrow, the arrow head style conforms to the ...
2
votes
1
answer
114
views
Combining two Tikzsets
I have the following MWE:
\documentclass[]{article}
\usepackage{comment}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{color}
\usepackage{xcolor}
% tikz-related packages
\usepackage{tikz}
\...