Trapezoid box width changes beyond bounds
up vote
4
down vote
favorite
I have made a flowchart in Tikz, where for the trapezoid (in/output) box I used the following command:
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
The problem here is, I think, the text width
parameter, because if I remove that the output
box (see pictures) is fine, but the lines on the input
are not wide enough. I call the output
trapezoid as follows:
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result};
Resulting in an overly wide trapezoid, well beyond the required minimum of 3cm.
Changing the command to
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result\~};
i.e. adding a linebreak and a non-breaking space sets the width of the trapezoid correctly, but that now has a pointless empty line, which makes the text no longer vertically centred in the box.
How can I get this second trapezoid to be of the correct (3cm) width, without forcing an empty line into it?
MCVE:
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30]
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered,draw=black, text width=2cm, fill=green!30]
tikzstyle{arrow} = [thick,->,>=stealth]
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
I copied most of the code of this tutorial and tried to adapt it to my needs.
I am using TeXStudio 2.12.4 on Windows 7 with PdfLaTeX.
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2018.3.14)
tikz-pgf pdftex miktex tikz-styles
New contributor
add a comment |
up vote
4
down vote
favorite
I have made a flowchart in Tikz, where for the trapezoid (in/output) box I used the following command:
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
The problem here is, I think, the text width
parameter, because if I remove that the output
box (see pictures) is fine, but the lines on the input
are not wide enough. I call the output
trapezoid as follows:
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result};
Resulting in an overly wide trapezoid, well beyond the required minimum of 3cm.
Changing the command to
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result\~};
i.e. adding a linebreak and a non-breaking space sets the width of the trapezoid correctly, but that now has a pointless empty line, which makes the text no longer vertically centred in the box.
How can I get this second trapezoid to be of the correct (3cm) width, without forcing an empty line into it?
MCVE:
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30]
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered,draw=black, text width=2cm, fill=green!30]
tikzstyle{arrow} = [thick,->,>=stealth]
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
I copied most of the code of this tutorial and tried to adapt it to my needs.
I am using TeXStudio 2.12.4 on Windows 7 with PdfLaTeX.
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2018.3.14)
tikz-pgf pdftex miktex tikz-styles
New contributor
Are you looking fortrapezium stretches=true
?
– marmot
Nov 22 at 13:04
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I have made a flowchart in Tikz, where for the trapezoid (in/output) box I used the following command:
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
The problem here is, I think, the text width
parameter, because if I remove that the output
box (see pictures) is fine, but the lines on the input
are not wide enough. I call the output
trapezoid as follows:
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result};
Resulting in an overly wide trapezoid, well beyond the required minimum of 3cm.
Changing the command to
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result\~};
i.e. adding a linebreak and a non-breaking space sets the width of the trapezoid correctly, but that now has a pointless empty line, which makes the text no longer vertically centred in the box.
How can I get this second trapezoid to be of the correct (3cm) width, without forcing an empty line into it?
MCVE:
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30]
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered,draw=black, text width=2cm, fill=green!30]
tikzstyle{arrow} = [thick,->,>=stealth]
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
I copied most of the code of this tutorial and tried to adapt it to my needs.
I am using TeXStudio 2.12.4 on Windows 7 with PdfLaTeX.
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2018.3.14)
tikz-pgf pdftex miktex tikz-styles
New contributor
I have made a flowchart in Tikz, where for the trapezoid (in/output) box I used the following command:
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
The problem here is, I think, the text width
parameter, because if I remove that the output
box (see pictures) is fine, but the lines on the input
are not wide enough. I call the output
trapezoid as follows:
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result};
Resulting in an overly wide trapezoid, well beyond the required minimum of 3cm.
Changing the command to
node (out1) [io, below of=pro3, yshift=-0.5cm, xshift=0.5] {Output result\~};
i.e. adding a linebreak and a non-breaking space sets the width of the trapezoid correctly, but that now has a pointless empty line, which makes the text no longer vertically centred in the box.
How can I get this second trapezoid to be of the correct (3cm) width, without forcing an empty line into it?
MCVE:
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzstyle{startstop} = [rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30]
tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30]
tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30]
tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered,draw=black, text width=2cm, fill=green!30]
tikzstyle{arrow} = [thick,->,>=stealth]
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
I copied most of the code of this tutorial and tried to adapt it to my needs.
I am using TeXStudio 2.12.4 on Windows 7 with PdfLaTeX.
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2018.3.14)
tikz-pgf pdftex miktex tikz-styles
tikz-pgf pdftex miktex tikz-styles
New contributor
New contributor
edited Nov 22 at 14:29
New contributor
asked Nov 22 at 12:36
Adriaan
1235
1235
New contributor
New contributor
Are you looking fortrapezium stretches=true
?
– marmot
Nov 22 at 13:04
add a comment |
Are you looking fortrapezium stretches=true
?
– marmot
Nov 22 at 13:04
Are you looking for
trapezium stretches=true
?– marmot
Nov 22 at 13:04
Are you looking for
trapezium stretches=true
?– marmot
Nov 22 at 13:04
add a comment |
1 Answer
1
active
oldest
votes
up vote
6
down vote
accepted
Just add trapezium stretches=true
(and use tikzset
instead of tikzstyle
).
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30},
io/.style={trapezium, trapezium left angle=70, trapezium right angle=110,
minimum width=3cm, minimum height=1cm, text centered, text width=3cm,
draw=black, fill=blue!30,trapezium stretches=true}, %<- added
process/.style={rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30},
decision/.style={diamond, minimum width=3cm, minimum height=1cm, text
centered,draw=black, text width=2cm, fill=green!30},
arrow/.style={thick,->,>=stealth}}
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
Thanks! That helped. Out of curiosity, why does this help, and why can't I setstreches
in thetikzstyle
, whereas it works intikzset
? Basically I just followed this tutorial and adapted that to my needs
– Adriaan
Nov 22 at 13:12
1
@Adriaan You can usetikzstyle
, i.e.tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch totikzset
.
– marmot
Nov 22 at 13:14
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
Just add trapezium stretches=true
(and use tikzset
instead of tikzstyle
).
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30},
io/.style={trapezium, trapezium left angle=70, trapezium right angle=110,
minimum width=3cm, minimum height=1cm, text centered, text width=3cm,
draw=black, fill=blue!30,trapezium stretches=true}, %<- added
process/.style={rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30},
decision/.style={diamond, minimum width=3cm, minimum height=1cm, text
centered,draw=black, text width=2cm, fill=green!30},
arrow/.style={thick,->,>=stealth}}
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
Thanks! That helped. Out of curiosity, why does this help, and why can't I setstreches
in thetikzstyle
, whereas it works intikzset
? Basically I just followed this tutorial and adapted that to my needs
– Adriaan
Nov 22 at 13:12
1
@Adriaan You can usetikzstyle
, i.e.tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch totikzset
.
– marmot
Nov 22 at 13:14
add a comment |
up vote
6
down vote
accepted
Just add trapezium stretches=true
(and use tikzset
instead of tikzstyle
).
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30},
io/.style={trapezium, trapezium left angle=70, trapezium right angle=110,
minimum width=3cm, minimum height=1cm, text centered, text width=3cm,
draw=black, fill=blue!30,trapezium stretches=true}, %<- added
process/.style={rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30},
decision/.style={diamond, minimum width=3cm, minimum height=1cm, text
centered,draw=black, text width=2cm, fill=green!30},
arrow/.style={thick,->,>=stealth}}
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
Thanks! That helped. Out of curiosity, why does this help, and why can't I setstreches
in thetikzstyle
, whereas it works intikzset
? Basically I just followed this tutorial and adapted that to my needs
– Adriaan
Nov 22 at 13:12
1
@Adriaan You can usetikzstyle
, i.e.tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch totikzset
.
– marmot
Nov 22 at 13:14
add a comment |
up vote
6
down vote
accepted
up vote
6
down vote
accepted
Just add trapezium stretches=true
(and use tikzset
instead of tikzstyle
).
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30},
io/.style={trapezium, trapezium left angle=70, trapezium right angle=110,
minimum width=3cm, minimum height=1cm, text centered, text width=3cm,
draw=black, fill=blue!30,trapezium stretches=true}, %<- added
process/.style={rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30},
decision/.style={diamond, minimum width=3cm, minimum height=1cm, text
centered,draw=black, text width=2cm, fill=green!30},
arrow/.style={thick,->,>=stealth}}
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
Just add trapezium stretches=true
(and use tikzset
instead of tikzstyle
).
documentclass[twoside]{report}
usepackage{mathrsfs,amsmath}
%%%%%%%%%% TIKZ OPTIONS %%%%%%%%%%%%%%
usepackage{tikz}
usetikzlibrary{shapes.geometric, arrows}
tikzset{startstop/.style={rectangle, rounded corners, minimum width=3cm, minimum height=1cm,text centered, text width=3cm, draw=black, fill=red!30},
io/.style={trapezium, trapezium left angle=70, trapezium right angle=110,
minimum width=3cm, minimum height=1cm, text centered, text width=3cm,
draw=black, fill=blue!30,trapezium stretches=true}, %<- added
process/.style={rectangle, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=orange!30},
decision/.style={diamond, minimum width=3cm, minimum height=1cm, text
centered,draw=black, text width=2cm, fill=green!30},
arrow/.style={thick,->,>=stealth}}
newcommand{vect}[1]{mathbf{#1}}
newcommand{matr}[1]{mathbf{#1}}
begin{document}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result};
end{tikzpicture}
begin{tikzpicture}
node (in1) [io] {Input:\ $dt,nt,nx$ (scalars);\ $vect{x},vect{p}$ (vectors);\ $matr{p}$ (data)};
node (out1) [io, below of=in1, yshift=-0.5cm, xshift=0.5] {Output result\~};
end{tikzpicture}
end{document}
answered Nov 22 at 13:08
marmot
78.3k487166
78.3k487166
Thanks! That helped. Out of curiosity, why does this help, and why can't I setstreches
in thetikzstyle
, whereas it works intikzset
? Basically I just followed this tutorial and adapted that to my needs
– Adriaan
Nov 22 at 13:12
1
@Adriaan You can usetikzstyle
, i.e.tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch totikzset
.
– marmot
Nov 22 at 13:14
add a comment |
Thanks! That helped. Out of curiosity, why does this help, and why can't I setstreches
in thetikzstyle
, whereas it works intikzset
? Basically I just followed this tutorial and adapted that to my needs
– Adriaan
Nov 22 at 13:12
1
@Adriaan You can usetikzstyle
, i.e.tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch totikzset
.
– marmot
Nov 22 at 13:14
Thanks! That helped. Out of curiosity, why does this help, and why can't I set
streches
in the tikzstyle
, whereas it works in tikzset
? Basically I just followed this tutorial and adapted that to my needs– Adriaan
Nov 22 at 13:12
Thanks! That helped. Out of curiosity, why does this help, and why can't I set
streches
in the tikzstyle
, whereas it works in tikzset
? Basically I just followed this tutorial and adapted that to my needs– Adriaan
Nov 22 at 13:12
1
1
@Adriaan You can use
tikzstyle
, i.e. tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch to tikzset
.– marmot
Nov 22 at 13:14
@Adriaan You can use
tikzstyle
, i.e. tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=3cm, minimum height=1cm, text centered, text width=3cm, draw=black, fill=blue!30,trapezium stretches=true]
works. However, it is recommended to switch to tikzset
.– marmot
Nov 22 at 13:14
add a comment |
Adriaan is a new contributor. Be nice, and check out our Code of Conduct.
Adriaan is a new contributor. Be nice, and check out our Code of Conduct.
Adriaan is a new contributor. Be nice, and check out our Code of Conduct.
Adriaan is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461269%2ftrapezoid-box-width-changes-beyond-bounds%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are you looking for
trapezium stretches=true
?– marmot
Nov 22 at 13:04