Label on a bended arrowBounding box is larger than expected when drawing a curved pathRotate a node but not its content: the case of the ellipse decorationTikz: midway label on a bended lineNumerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideArrow label on Chemfig image?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLabel following arrow in TikZFiner control over bended edgesCentered bended arrow on tikz edge
Changing a TGV booking
90s(?) book series about two people transported to a parallel medieval world, she joins city watch, he becomes wizard
Can a Beast Master ranger choose a swarm as an animal companion?
Label on a bended arrow
Is there any road between the CA State Route 120 and Sherman Pass Road (Forest Route 22S0) that crosses Yosemite/Serria/Sequoia National Park/Forest?
Vacuum collapse -- why do strong metals implode but glass doesn't?
Is a butterfly one or two animals?
How to dismiss intrusive questions from a colleague with whom I don't work?
How much code would a codegolf golf if a codegolf could golf code?
What can I do to keep a threaded bolt from falling out of it’s slot
Is it allowable to use an organization's name to publish a paper in a conference, even after I graduate from it?
How do slats reduce stall speed?
Infinite loop in CURSOR
How could China have extradited people for political reason under the extradition law it wanted to pass in Hong Kong?
Sous vide chicken without an internal temperature of 165
Is "stainless" a bulk or a surface property of stainless steel?
Church Booleans
Does the Symbiotic Entity damage apply to a creature hit by the secondary damage of Green Flame Blade?
How can I pack my food so it doesn't smell?
Do living authors still get paid royalties for their old work?
Use of vor in this sentence
Don't teach Dhamma to those who can't appreciate it or aren't interested
"Silverware", "Tableware", and "Dishes"
Is this kind of description not recommended?
Label on a bended arrow
Bounding box is larger than expected when drawing a curved pathRotate a node but not its content: the case of the ellipse decorationTikz: midway label on a bended lineNumerical conditional within tikz keys?TikZ/ERD: node (=Entity) label on the insideArrow label on Chemfig image?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLabel following arrow in TikZFiner control over bended edgesCentered bended arrow on tikz edge
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am having some issues with the following code:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
begindocument
begintikzpicture [>=latex]
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6) node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
endtikzpicture
enddocument
No matter what I choose for pos
I always get the row vector to be positioned as the figure below (fixed location and not below the arrow). My intent is to have the vector placed towards the end of the arrow and below it.
Any suggestion? Thx!
tikz-pgf
add a comment |
I am having some issues with the following code:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
begindocument
begintikzpicture [>=latex]
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6) node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
endtikzpicture
enddocument
No matter what I choose for pos
I always get the row vector to be positioned as the figure below (fixed location and not below the arrow). My intent is to have the vector placed towards the end of the arrow and below it.
Any suggestion? Thx!
tikz-pgf
Try something like:node [pos=0.8,below left,shift=(-0.8,-0.5)]
in the options...
– koleygr
10 hours ago
Or try,draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6)coordinate(end) ; node at (end)[below=2mm] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
– ferahfeza
10 hours ago
1
The correct syntax is to put the node immediately afterto
:draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
. This works withoutquotes
, which sometimes can have side effects. The correct bounding box can be obtained employing thebezier bounding box
key from thebox
library from here.
– Schrödinger's cat
6 hours ago
add a comment |
I am having some issues with the following code:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
begindocument
begintikzpicture [>=latex]
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6) node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
endtikzpicture
enddocument
No matter what I choose for pos
I always get the row vector to be positioned as the figure below (fixed location and not below the arrow). My intent is to have the vector placed towards the end of the arrow and below it.
Any suggestion? Thx!
tikz-pgf
I am having some issues with the following code:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
begindocument
begintikzpicture [>=latex]
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6) node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
endtikzpicture
enddocument
No matter what I choose for pos
I always get the row vector to be positioned as the figure below (fixed location and not below the arrow). My intent is to have the vector placed towards the end of the arrow and below it.
Any suggestion? Thx!
tikz-pgf
tikz-pgf
asked 11 hours ago
geguzegeguze
1516 bronze badges
1516 bronze badges
Try something like:node [pos=0.8,below left,shift=(-0.8,-0.5)]
in the options...
– koleygr
10 hours ago
Or try,draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6)coordinate(end) ; node at (end)[below=2mm] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
– ferahfeza
10 hours ago
1
The correct syntax is to put the node immediately afterto
:draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
. This works withoutquotes
, which sometimes can have side effects. The correct bounding box can be obtained employing thebezier bounding box
key from thebox
library from here.
– Schrödinger's cat
6 hours ago
add a comment |
Try something like:node [pos=0.8,below left,shift=(-0.8,-0.5)]
in the options...
– koleygr
10 hours ago
Or try,draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6)coordinate(end) ; node at (end)[below=2mm] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
– ferahfeza
10 hours ago
1
The correct syntax is to put the node immediately afterto
:draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
. This works withoutquotes
, which sometimes can have side effects. The correct bounding box can be obtained employing thebezier bounding box
key from thebox
library from here.
– Schrödinger's cat
6 hours ago
Try something like:
node [pos=0.8,below left,shift=(-0.8,-0.5)]
in the options...– koleygr
10 hours ago
Try something like:
node [pos=0.8,below left,shift=(-0.8,-0.5)]
in the options...– koleygr
10 hours ago
Or try,
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6)coordinate(end) ; node at (end)[below=2mm] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
– ferahfeza
10 hours ago
Or try,
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6)coordinate(end) ; node at (end)[below=2mm] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
– ferahfeza
10 hours ago
1
1
The correct syntax is to put the node immediately after
to
: draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
. This works without quotes
, which sometimes can have side effects. The correct bounding box can be obtained employing the bezier bounding box
key from the box
library from here.– Schrödinger's cat
6 hours ago
The correct syntax is to put the node immediately after
to
: draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
. This works without quotes
, which sometimes can have side effects. The correct bounding box can be obtained employing the bezier bounding box
key from the box
library from here.– Schrödinger's cat
6 hours ago
add a comment |
2 Answers
2
active
oldest
votes
The correct syntax is to put the node immediately after to
:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibrarybbox
begindocument
begintikzpicture [>=latex,bezier bounding box]
draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize
$beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
endtikzpicture
enddocument
The bbox
library, which was used to get the right bounding box, can be found here.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had thenode
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!
– geguze
2 hours ago
add a comment |
Try the following:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex, auto=right
]
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (12-0.5,-1.6);
endtikzpicture
enddocument
Addendum
You my consider to add clip (-1.2,1.2) rectangle (11.5,-3);
before drawing curve. With it you will cut-out white space on the left side of picture (caused by bending anchors). For smaller font of edge labels you can define its style as it is in the next MWE:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex,
every edge quotes/.style = font=scriptsize, auto=right
]
clip (-1.2,1.2) rectangle (11.5,-3);
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (11.5,-1.6);
endtikzpicture
enddocument
This works! Question: I tried to put this code without the[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to addbelow
but it did not work till I added those options. Thx!
– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would beout=315, in=340
. Suggestion?
– geguze
10 hours ago
@geguze, option>=latex
has nothing with position of edge label, withauto=right
is required that label had to be on the right side of arrow.
– Zarko
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning ofauto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add'
to the label like"here it is"'
then I get to shift side. Thx!
– geguze
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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%2f504837%2flabel-on-a-bended-arrow%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The correct syntax is to put the node immediately after to
:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibrarybbox
begindocument
begintikzpicture [>=latex,bezier bounding box]
draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize
$beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
endtikzpicture
enddocument
The bbox
library, which was used to get the right bounding box, can be found here.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had thenode
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!
– geguze
2 hours ago
add a comment |
The correct syntax is to put the node immediately after to
:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibrarybbox
begindocument
begintikzpicture [>=latex,bezier bounding box]
draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize
$beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
endtikzpicture
enddocument
The bbox
library, which was used to get the right bounding box, can be found here.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had thenode
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!
– geguze
2 hours ago
add a comment |
The correct syntax is to put the node immediately after to
:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibrarybbox
begindocument
begintikzpicture [>=latex,bezier bounding box]
draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize
$beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
endtikzpicture
enddocument
The bbox
library, which was used to get the right bounding box, can be found here.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The correct syntax is to put the node immediately after to
:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibrarybbox
begindocument
begintikzpicture [>=latex,bezier bounding box]
draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize
$beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
endtikzpicture
enddocument
The bbox
library, which was used to get the right bounding box, can be found here.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 6 hours ago


Schrödinger's catSchrödinger's cat
9463 silver badges9 bronze badges
9463 silver badges9 bronze badges
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Schrödinger's cat is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had thenode
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!
– geguze
2 hours ago
add a comment |
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had thenode
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!
– geguze
2 hours ago
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had the
node
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!– geguze
2 hours ago
@schrödingers-cat - Nice clear way. The arrow in my diagram is part of a larger one, where I do have also straight arrows. It turns our that I was doing things wrongly there too, namely I had the
node
specifications (position and location) and the label after the coordinates of the node. Somehow there it worked fine. That's the source of the mistake. Thx!– geguze
2 hours ago
add a comment |
Try the following:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex, auto=right
]
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (12-0.5,-1.6);
endtikzpicture
enddocument
Addendum
You my consider to add clip (-1.2,1.2) rectangle (11.5,-3);
before drawing curve. With it you will cut-out white space on the left side of picture (caused by bending anchors). For smaller font of edge labels you can define its style as it is in the next MWE:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex,
every edge quotes/.style = font=scriptsize, auto=right
]
clip (-1.2,1.2) rectangle (11.5,-3);
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (11.5,-1.6);
endtikzpicture
enddocument
This works! Question: I tried to put this code without the[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to addbelow
but it did not work till I added those options. Thx!
– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would beout=315, in=340
. Suggestion?
– geguze
10 hours ago
@geguze, option>=latex
has nothing with position of edge label, withauto=right
is required that label had to be on the right side of arrow.
– Zarko
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning ofauto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add'
to the label like"here it is"'
then I get to shift side. Thx!
– geguze
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
add a comment |
Try the following:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex, auto=right
]
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (12-0.5,-1.6);
endtikzpicture
enddocument
Addendum
You my consider to add clip (-1.2,1.2) rectangle (11.5,-3);
before drawing curve. With it you will cut-out white space on the left side of picture (caused by bending anchors). For smaller font of edge labels you can define its style as it is in the next MWE:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex,
every edge quotes/.style = font=scriptsize, auto=right
]
clip (-1.2,1.2) rectangle (11.5,-3);
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (11.5,-1.6);
endtikzpicture
enddocument
This works! Question: I tried to put this code without the[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to addbelow
but it did not work till I added those options. Thx!
– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would beout=315, in=340
. Suggestion?
– geguze
10 hours ago
@geguze, option>=latex
has nothing with position of edge label, withauto=right
is required that label had to be on the right side of arrow.
– Zarko
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning ofauto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add'
to the label like"here it is"'
then I get to shift side. Thx!
– geguze
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
add a comment |
Try the following:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex, auto=right
]
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (12-0.5,-1.6);
endtikzpicture
enddocument
Addendum
You my consider to add clip (-1.2,1.2) rectangle (11.5,-3);
before drawing curve. With it you will cut-out white space on the left side of picture (caused by bending anchors). For smaller font of edge labels you can define its style as it is in the next MWE:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex,
every edge quotes/.style = font=scriptsize, auto=right
]
clip (-1.2,1.2) rectangle (11.5,-3);
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (11.5,-1.6);
endtikzpicture
enddocument
Try the following:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex, auto=right
]
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (12-0.5,-1.6);
endtikzpicture
enddocument
Addendum
You my consider to add clip (-1.2,1.2) rectangle (11.5,-3);
before drawing curve. With it you will cut-out white space on the left side of picture (caused by bending anchors). For smaller font of edge labels you can define its style as it is in the next MWE:
documentclass[crop,border=0]standalone
usepackageamsmath
usepackagetikz
usetikzlibraryquotes
begindocument
begintikzpicture [>=latex,
every edge quotes/.style = font=scriptsize, auto=right
]
clip (-1.2,1.2) rectangle (11.5,-3);
draw[->] (-0.5,1.2) to [out=225, in=200, "$beginpmatrix1 & 0 & 0 & 0 endpmatrix$", pos=0.7] (11.5,-1.6);
endtikzpicture
enddocument
edited 10 hours ago
answered 10 hours ago
ZarkoZarko
144k8 gold badges81 silver badges193 bronze badges
144k8 gold badges81 silver badges193 bronze badges
This works! Question: I tried to put this code without the[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to addbelow
but it did not work till I added those options. Thx!
– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would beout=315, in=340
. Suggestion?
– geguze
10 hours ago
@geguze, option>=latex
has nothing with position of edge label, withauto=right
is required that label had to be on the right side of arrow.
– Zarko
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning ofauto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add'
to the label like"here it is"'
then I get to shift side. Thx!
– geguze
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
add a comment |
This works! Question: I tried to put this code without the[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to addbelow
but it did not work till I added those options. Thx!
– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would beout=315, in=340
. Suggestion?
– geguze
10 hours ago
@geguze, option>=latex
has nothing with position of edge label, withauto=right
is required that label had to be on the right side of arrow.
– Zarko
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning ofauto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add'
to the label like"here it is"'
then I get to shift side. Thx!
– geguze
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
This works! Question: I tried to put this code without the
[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to add below
but it did not work till I added those options. Thx!– geguze
10 hours ago
This works! Question: I tried to put this code without the
[>=latex, auto=right]
, as I did not notice it. I did not get the label to be below. Can you explain what those options do? I tried to add below
but it did not work till I added those options. Thx!– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would be
out=315, in=340
. Suggestion?– geguze
10 hours ago
Turns out that I have a similar arrow going right to left. In this case the code above puts the label on top of the arrow. Only change would be
out=315, in=340
. Suggestion?– geguze
10 hours ago
@geguze, option
>=latex
has nothing with position of edge label, with auto=right
is required that label had to be on the right side of arrow.– Zarko
10 hours ago
@geguze, option
>=latex
has nothing with position of edge label, with auto=right
is required that label had to be on the right side of arrow.– Zarko
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning of
auto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add '
to the label like "here it is"'
then I get to shift side. Thx!– geguze
10 hours ago
Ok, I figured how to change the side of the label and thus the meaning of
auto=right
. It is the same as in tikz-cd: the option forces all the labels to be on the "right" of arrows and if I add '
to the label like "here it is"'
then I get to shift side. Thx!– geguze
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
@geguze, see addendum in my answer.
– Zarko
10 hours ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f504837%2flabel-on-a-bended-arrow%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
Try something like:
node [pos=0.8,below left,shift=(-0.8,-0.5)]
in the options...– koleygr
10 hours ago
Or try,
draw[->, out=225, in=200] (-0.5,1.2) to (12-0.5,-1.6)coordinate(end) ; node at (end)[below=2mm] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$;
– ferahfeza
10 hours ago
1
The correct syntax is to put the node immediately after
to
:draw[->, out=225, in=200] (-0.5,1.2) to node [pos=0.8, below] scriptsize $beginpmatrix1 & 0 & 0 & 0 endpmatrix$ (12-0.5,-1.6) ;
. This works withoutquotes
, which sometimes can have side effects. The correct bounding box can be obtained employing thebezier bounding box
key from thebox
library from here.– Schrödinger's cat
6 hours ago