Equation with vertical arrow
Clash Royale CLAN TAG#URR8PPP
up vote
8
down vote
favorite
How I get this equation with vertical arrows that help describe some of its terms?
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- 2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
equations arrows
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
8
down vote
favorite
How I get this equation with vertical arrows that help describe some of its terms?
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- 2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
equations arrows
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
welcome to tex.se! please make your code snippet complete and than extend it to small document with your equation.
– Zarko
Sep 4 at 19:38
add a comment |Â
up vote
8
down vote
favorite
up vote
8
down vote
favorite
How I get this equation with vertical arrows that help describe some of its terms?
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- 2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
equations arrows
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
How I get this equation with vertical arrows that help describe some of its terms?
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- 2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
equations arrows
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Sep 4 at 20:01
Al-Motasem Aldaoudeyeh
1,165211
1,165211
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Sep 4 at 19:32
Mehmet
433
433
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Mehmet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3
welcome to tex.se! please make your code snippet complete and than extend it to small document with your equation.
– Zarko
Sep 4 at 19:38
add a comment |Â
3
welcome to tex.se! please make your code snippet complete and than extend it to small document with your equation.
– Zarko
Sep 4 at 19:38
3
3
welcome to tex.se! please make your code snippet complete and than extend it to small document with your equation.
– Zarko
Sep 4 at 19:38
welcome to tex.se! please make your code snippet complete and than extend it to small document with your equation.
– Zarko
Sep 4 at 19:38
add a comment |Â
4 Answers
4
active
oldest
votes
up vote
14
down vote
accepted
The command uparrow
makes an extensible arrow.
documentclassarticle
usepackagemathtools
newcommandvertarrowbox[3][6ex]%
beginarray[t]@c@ #2 \
leftuparrowvcenterhrule height #1right.kern-nulldelimiterspace\
makebox[0pt]scriptsize#3
endarray%
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2_(n-1)s_x^2
endequation*
beginequation*
0 leq F =
sum_i=1^n(y_i-bary)^2
-2b
sum_i=1^n(x_i-barx)(y_i-bary)
+b^2
sum_i=1^n(x_i-barx)^2
endequation*
enddocument
The strange braces can be easily explained: underbrace
makes an Op atom, which conflicts with the spacing of binary operations, so it's best to brace it. However, if sum
is preceded by an ordinary symbol, a thin space should appear, which is produced by the empty subformula inside
underbrace
when necessary.
The second display shows the standard spacing without underbrace
and the arrows, just for checking the spaces are the same.
The vertarrowbox
has an optional argument for the desired height of the arrow, default 6ex. Call it as vertarrowbox[12ex]<symbol><text>
if you want to double the height (its size should depend on context).
I didn't aware, until I saw your solution, of the fact thatuparrow
is extensible and thus can be resized using theleft
andright
machinery. Good stuff!
– Mico
Sep 5 at 14:06
add a comment |Â
up vote
7
down vote
Something like this? Observe that the solution sets a macro called vertarrowbox
, which takes two arguments: (a) the stuff to be placed on the main line of the equation, and (b) the text to be placed below the long vertical arrow.
documentclassarticle
usepackagemathtools,graphicx
newcommandvertarrowbox[2]%
beginarray[t]@c@ #1 \
rotatebox90$xrightarrowhphantomabcdefgh$ \[-1ex]
mathclapscriptstyletext#2%
endarray
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2%
_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)%
_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2%
_(n-1)s_x^2
endequation*
enddocument
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
To the OP: Note that I've also replaced all instances ofoverline
withbar
.
– Mico
Sep 4 at 20:09
1
phantomsmash...
? Why nothphantom
? But rotating is just wrong.;-)
– egreg
Sep 4 at 20:43
@egreg - Good observation about replacingphantomsmash...
withhphantom...
;-)
– Mico
Sep 4 at 20:56
add a comment |Â
up vote
6
down vote
one possibilities is use of the package tikz
and its tikzmark
library:
documentclassarticle
usepackagetikz
usetikzlibrarytikzmark
usepackagelipsum% for dummy text
begindocument
lipsum*[11]
[
0 leq F = underbracesum_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- tikzmarkA2b
underbracesum_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+ tikzmarkBb^2
underbracesum_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
begintikzpicture[overlay, remember picture,shorten <=1mm,font=footnotesize]
draw[<-] ([xshift=1.0ex] pic cs:A) -- ++ (0,-1.2) node[below] text;
draw[<-] ([xshift=0.5ex] pic cs:B) -- ++ (0,-1.2) node[below] text;
endtikzpicture
bigskip
]
lipsum*[12]
enddocument
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks withfootnotesize
or evenscriptsize
.
– Mico
Sep 4 at 20:00
1
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
add a comment |Â
up vote
5
down vote
A short code with pstricks
and auto-pst-pdf
:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
beginpostscript
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
-rnodeB2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+rnodeb2b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
pssetarrowinset=0.12, arrows=->, nodesep=4pt
uput12ex[d](B)rnode[t]T1textsfTextnclineT1B
uput12ex[d](b2)rnode[t]T2textsfTextnclineT2b2
endpostscript
enddocument
+1. To make the-
and+
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as-
and+
, resp. Also, the threelimits
directives aren't needed.
– Mico
Sep 4 at 20:06
1
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from theunderbrace
s.
– Bernard
Sep 4 at 20:18
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence ofunderbrace
directives....
– Mico
Sep 4 at 20:24
add a comment |Â
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
14
down vote
accepted
The command uparrow
makes an extensible arrow.
documentclassarticle
usepackagemathtools
newcommandvertarrowbox[3][6ex]%
beginarray[t]@c@ #2 \
leftuparrowvcenterhrule height #1right.kern-nulldelimiterspace\
makebox[0pt]scriptsize#3
endarray%
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2_(n-1)s_x^2
endequation*
beginequation*
0 leq F =
sum_i=1^n(y_i-bary)^2
-2b
sum_i=1^n(x_i-barx)(y_i-bary)
+b^2
sum_i=1^n(x_i-barx)^2
endequation*
enddocument
The strange braces can be easily explained: underbrace
makes an Op atom, which conflicts with the spacing of binary operations, so it's best to brace it. However, if sum
is preceded by an ordinary symbol, a thin space should appear, which is produced by the empty subformula inside
underbrace
when necessary.
The second display shows the standard spacing without underbrace
and the arrows, just for checking the spaces are the same.
The vertarrowbox
has an optional argument for the desired height of the arrow, default 6ex. Call it as vertarrowbox[12ex]<symbol><text>
if you want to double the height (its size should depend on context).
I didn't aware, until I saw your solution, of the fact thatuparrow
is extensible and thus can be resized using theleft
andright
machinery. Good stuff!
– Mico
Sep 5 at 14:06
add a comment |Â
up vote
14
down vote
accepted
The command uparrow
makes an extensible arrow.
documentclassarticle
usepackagemathtools
newcommandvertarrowbox[3][6ex]%
beginarray[t]@c@ #2 \
leftuparrowvcenterhrule height #1right.kern-nulldelimiterspace\
makebox[0pt]scriptsize#3
endarray%
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2_(n-1)s_x^2
endequation*
beginequation*
0 leq F =
sum_i=1^n(y_i-bary)^2
-2b
sum_i=1^n(x_i-barx)(y_i-bary)
+b^2
sum_i=1^n(x_i-barx)^2
endequation*
enddocument
The strange braces can be easily explained: underbrace
makes an Op atom, which conflicts with the spacing of binary operations, so it's best to brace it. However, if sum
is preceded by an ordinary symbol, a thin space should appear, which is produced by the empty subformula inside
underbrace
when necessary.
The second display shows the standard spacing without underbrace
and the arrows, just for checking the spaces are the same.
The vertarrowbox
has an optional argument for the desired height of the arrow, default 6ex. Call it as vertarrowbox[12ex]<symbol><text>
if you want to double the height (its size should depend on context).
I didn't aware, until I saw your solution, of the fact thatuparrow
is extensible and thus can be resized using theleft
andright
machinery. Good stuff!
– Mico
Sep 5 at 14:06
add a comment |Â
up vote
14
down vote
accepted
up vote
14
down vote
accepted
The command uparrow
makes an extensible arrow.
documentclassarticle
usepackagemathtools
newcommandvertarrowbox[3][6ex]%
beginarray[t]@c@ #2 \
leftuparrowvcenterhrule height #1right.kern-nulldelimiterspace\
makebox[0pt]scriptsize#3
endarray%
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2_(n-1)s_x^2
endequation*
beginequation*
0 leq F =
sum_i=1^n(y_i-bary)^2
-2b
sum_i=1^n(x_i-barx)(y_i-bary)
+b^2
sum_i=1^n(x_i-barx)^2
endequation*
enddocument
The strange braces can be easily explained: underbrace
makes an Op atom, which conflicts with the spacing of binary operations, so it's best to brace it. However, if sum
is preceded by an ordinary symbol, a thin space should appear, which is produced by the empty subformula inside
underbrace
when necessary.
The second display shows the standard spacing without underbrace
and the arrows, just for checking the spaces are the same.
The vertarrowbox
has an optional argument for the desired height of the arrow, default 6ex. Call it as vertarrowbox[12ex]<symbol><text>
if you want to double the height (its size should depend on context).
The command uparrow
makes an extensible arrow.
documentclassarticle
usepackagemathtools
newcommandvertarrowbox[3][6ex]%
beginarray[t]@c@ #2 \
leftuparrowvcenterhrule height #1right.kern-nulldelimiterspace\
makebox[0pt]scriptsize#3
endarray%
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2_(n-1)s_x^2
endequation*
beginequation*
0 leq F =
sum_i=1^n(y_i-bary)^2
-2b
sum_i=1^n(x_i-barx)(y_i-bary)
+b^2
sum_i=1^n(x_i-barx)^2
endequation*
enddocument
The strange braces can be easily explained: underbrace
makes an Op atom, which conflicts with the spacing of binary operations, so it's best to brace it. However, if sum
is preceded by an ordinary symbol, a thin space should appear, which is produced by the empty subformula inside
underbrace
when necessary.
The second display shows the standard spacing without underbrace
and the arrows, just for checking the spaces are the same.
The vertarrowbox
has an optional argument for the desired height of the arrow, default 6ex. Call it as vertarrowbox[12ex]<symbol><text>
if you want to double the height (its size should depend on context).
answered Sep 4 at 20:42


egreg
681k8318093058
681k8318093058
I didn't aware, until I saw your solution, of the fact thatuparrow
is extensible and thus can be resized using theleft
andright
machinery. Good stuff!
– Mico
Sep 5 at 14:06
add a comment |Â
I didn't aware, until I saw your solution, of the fact thatuparrow
is extensible and thus can be resized using theleft
andright
machinery. Good stuff!
– Mico
Sep 5 at 14:06
I didn't aware, until I saw your solution, of the fact that
uparrow
is extensible and thus can be resized using the left
and right
machinery. Good stuff!– Mico
Sep 5 at 14:06
I didn't aware, until I saw your solution, of the fact that
uparrow
is extensible and thus can be resized using the left
and right
machinery. Good stuff!– Mico
Sep 5 at 14:06
add a comment |Â
up vote
7
down vote
Something like this? Observe that the solution sets a macro called vertarrowbox
, which takes two arguments: (a) the stuff to be placed on the main line of the equation, and (b) the text to be placed below the long vertical arrow.
documentclassarticle
usepackagemathtools,graphicx
newcommandvertarrowbox[2]%
beginarray[t]@c@ #1 \
rotatebox90$xrightarrowhphantomabcdefgh$ \[-1ex]
mathclapscriptstyletext#2%
endarray
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2%
_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)%
_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2%
_(n-1)s_x^2
endequation*
enddocument
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
To the OP: Note that I've also replaced all instances ofoverline
withbar
.
– Mico
Sep 4 at 20:09
1
phantomsmash...
? Why nothphantom
? But rotating is just wrong.;-)
– egreg
Sep 4 at 20:43
@egreg - Good observation about replacingphantomsmash...
withhphantom...
;-)
– Mico
Sep 4 at 20:56
add a comment |Â
up vote
7
down vote
Something like this? Observe that the solution sets a macro called vertarrowbox
, which takes two arguments: (a) the stuff to be placed on the main line of the equation, and (b) the text to be placed below the long vertical arrow.
documentclassarticle
usepackagemathtools,graphicx
newcommandvertarrowbox[2]%
beginarray[t]@c@ #1 \
rotatebox90$xrightarrowhphantomabcdefgh$ \[-1ex]
mathclapscriptstyletext#2%
endarray
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2%
_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)%
_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2%
_(n-1)s_x^2
endequation*
enddocument
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
To the OP: Note that I've also replaced all instances ofoverline
withbar
.
– Mico
Sep 4 at 20:09
1
phantomsmash...
? Why nothphantom
? But rotating is just wrong.;-)
– egreg
Sep 4 at 20:43
@egreg - Good observation about replacingphantomsmash...
withhphantom...
;-)
– Mico
Sep 4 at 20:56
add a comment |Â
up vote
7
down vote
up vote
7
down vote
Something like this? Observe that the solution sets a macro called vertarrowbox
, which takes two arguments: (a) the stuff to be placed on the main line of the equation, and (b) the text to be placed below the long vertical arrow.
documentclassarticle
usepackagemathtools,graphicx
newcommandvertarrowbox[2]%
beginarray[t]@c@ #1 \
rotatebox90$xrightarrowhphantomabcdefgh$ \[-1ex]
mathclapscriptstyletext#2%
endarray
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2%
_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)%
_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2%
_(n-1)s_x^2
endequation*
enddocument
Something like this? Observe that the solution sets a macro called vertarrowbox
, which takes two arguments: (a) the stuff to be placed on the main line of the equation, and (b) the text to be placed below the long vertical arrow.
documentclassarticle
usepackagemathtools,graphicx
newcommandvertarrowbox[2]%
beginarray[t]@c@ #1 \
rotatebox90$xrightarrowhphantomabcdefgh$ \[-1ex]
mathclapscriptstyletext#2%
endarray
begindocument
beginequation*
0 leq F =
underbracesum_i=1^n(y_i-bary)^2%
_(n-1)s_y^2
-vertarrowbox2btext
underbracesum_i=1^n(x_i-barx)(y_i-bary)%
_(n-1)s_xy = (n-1)rs_xs_y
+vertarrowboxb^2More text
underbracesum_i=1^n(x_i-barx)^2%
_(n-1)s_x^2
endequation*
enddocument
edited Sep 4 at 20:55
answered Sep 4 at 19:55


Mico
262k30354729
262k30354729
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
To the OP: Note that I've also replaced all instances ofoverline
withbar
.
– Mico
Sep 4 at 20:09
1
phantomsmash...
? Why nothphantom
? But rotating is just wrong.;-)
– egreg
Sep 4 at 20:43
@egreg - Good observation about replacingphantomsmash...
withhphantom...
;-)
– Mico
Sep 4 at 20:56
add a comment |Â
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
To the OP: Note that I've also replaced all instances ofoverline
withbar
.
– Mico
Sep 4 at 20:09
1
phantomsmash...
? Why nothphantom
? But rotating is just wrong.;-)
– egreg
Sep 4 at 20:43
@egreg - Good observation about replacingphantomsmash...
withhphantom...
;-)
– Mico
Sep 4 at 20:56
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
what a competition! you overtook me for 12 seconds. i obviously need a new, faster PC :-). +1 for nice answer
– Zarko
Sep 4 at 19:59
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
@Zarko - Thanks!! I've upvoted your answer in the meantime too. :-)
– Mico
Sep 4 at 20:01
To the OP: Note that I've also replaced all instances of
overline
with bar
.– Mico
Sep 4 at 20:09
To the OP: Note that I've also replaced all instances of
overline
with bar
.– Mico
Sep 4 at 20:09
1
1
phantomsmash...
? Why not hphantom
? But rotating is just wrong. ;-)
– egreg
Sep 4 at 20:43
phantomsmash...
? Why not hphantom
? But rotating is just wrong. ;-)
– egreg
Sep 4 at 20:43
@egreg - Good observation about replacing
phantomsmash...
with hphantom...
;-)
– Mico
Sep 4 at 20:56
@egreg - Good observation about replacing
phantomsmash...
with hphantom...
;-)
– Mico
Sep 4 at 20:56
add a comment |Â
up vote
6
down vote
one possibilities is use of the package tikz
and its tikzmark
library:
documentclassarticle
usepackagetikz
usetikzlibrarytikzmark
usepackagelipsum% for dummy text
begindocument
lipsum*[11]
[
0 leq F = underbracesum_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- tikzmarkA2b
underbracesum_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+ tikzmarkBb^2
underbracesum_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
begintikzpicture[overlay, remember picture,shorten <=1mm,font=footnotesize]
draw[<-] ([xshift=1.0ex] pic cs:A) -- ++ (0,-1.2) node[below] text;
draw[<-] ([xshift=0.5ex] pic cs:B) -- ++ (0,-1.2) node[below] text;
endtikzpicture
bigskip
]
lipsum*[12]
enddocument
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks withfootnotesize
or evenscriptsize
.
– Mico
Sep 4 at 20:00
1
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
add a comment |Â
up vote
6
down vote
one possibilities is use of the package tikz
and its tikzmark
library:
documentclassarticle
usepackagetikz
usetikzlibrarytikzmark
usepackagelipsum% for dummy text
begindocument
lipsum*[11]
[
0 leq F = underbracesum_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- tikzmarkA2b
underbracesum_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+ tikzmarkBb^2
underbracesum_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
begintikzpicture[overlay, remember picture,shorten <=1mm,font=footnotesize]
draw[<-] ([xshift=1.0ex] pic cs:A) -- ++ (0,-1.2) node[below] text;
draw[<-] ([xshift=0.5ex] pic cs:B) -- ++ (0,-1.2) node[below] text;
endtikzpicture
bigskip
]
lipsum*[12]
enddocument
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks withfootnotesize
or evenscriptsize
.
– Mico
Sep 4 at 20:00
1
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
add a comment |Â
up vote
6
down vote
up vote
6
down vote
one possibilities is use of the package tikz
and its tikzmark
library:
documentclassarticle
usepackagetikz
usetikzlibrarytikzmark
usepackagelipsum% for dummy text
begindocument
lipsum*[11]
[
0 leq F = underbracesum_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- tikzmarkA2b
underbracesum_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+ tikzmarkBb^2
underbracesum_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
begintikzpicture[overlay, remember picture,shorten <=1mm,font=footnotesize]
draw[<-] ([xshift=1.0ex] pic cs:A) -- ++ (0,-1.2) node[below] text;
draw[<-] ([xshift=0.5ex] pic cs:B) -- ++ (0,-1.2) node[below] text;
endtikzpicture
bigskip
]
lipsum*[12]
enddocument
one possibilities is use of the package tikz
and its tikzmark
library:
documentclassarticle
usepackagetikz
usetikzlibrarytikzmark
usepackagelipsum% for dummy text
begindocument
lipsum*[11]
[
0 leq F = underbracesum_i=1^n(y_i - overliney)^2_(n-1)s_y^2
- tikzmarkA2b
underbracesum_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+ tikzmarkBb^2
underbracesum_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
begintikzpicture[overlay, remember picture,shorten <=1mm,font=footnotesize]
draw[<-] ([xshift=1.0ex] pic cs:A) -- ++ (0,-1.2) node[below] text;
draw[<-] ([xshift=0.5ex] pic cs:B) -- ++ (0,-1.2) node[below] text;
endtikzpicture
bigskip
]
lipsum*[12]
enddocument
edited Sep 4 at 20:35
answered Sep 4 at 19:55
Zarko
112k861150
112k861150
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks withfootnotesize
or evenscriptsize
.
– Mico
Sep 4 at 20:00
1
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
add a comment |Â
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks withfootnotesize
or evenscriptsize
.
– Mico
Sep 4 at 20:00
1
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks with
footnotesize
or even scriptsize
.– Mico
Sep 4 at 20:00
+1. Purely aesthetically, I think it's desirable to typeset the explanatory text blocks with
footnotesize
or even scriptsize
.– Mico
Sep 4 at 20:00
1
1
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
@Mico, thank you for suggestion. corrected now.
– Zarko
Sep 4 at 20:36
add a comment |Â
up vote
5
down vote
A short code with pstricks
and auto-pst-pdf
:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
beginpostscript
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
-rnodeB2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+rnodeb2b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
pssetarrowinset=0.12, arrows=->, nodesep=4pt
uput12ex[d](B)rnode[t]T1textsfTextnclineT1B
uput12ex[d](b2)rnode[t]T2textsfTextnclineT2b2
endpostscript
enddocument
+1. To make the-
and+
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as-
and+
, resp. Also, the threelimits
directives aren't needed.
– Mico
Sep 4 at 20:06
1
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from theunderbrace
s.
– Bernard
Sep 4 at 20:18
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence ofunderbrace
directives....
– Mico
Sep 4 at 20:24
add a comment |Â
up vote
5
down vote
A short code with pstricks
and auto-pst-pdf
:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
beginpostscript
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
-rnodeB2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+rnodeb2b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
pssetarrowinset=0.12, arrows=->, nodesep=4pt
uput12ex[d](B)rnode[t]T1textsfTextnclineT1B
uput12ex[d](b2)rnode[t]T2textsfTextnclineT2b2
endpostscript
enddocument
+1. To make the-
and+
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as-
and+
, resp. Also, the threelimits
directives aren't needed.
– Mico
Sep 4 at 20:06
1
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from theunderbrace
s.
– Bernard
Sep 4 at 20:18
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence ofunderbrace
directives....
– Mico
Sep 4 at 20:24
add a comment |Â
up vote
5
down vote
up vote
5
down vote
A short code with pstricks
and auto-pst-pdf
:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
beginpostscript
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
-rnodeB2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+rnodeb2b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
pssetarrowinset=0.12, arrows=->, nodesep=4pt
uput12ex[d](B)rnode[t]T1textsfTextnclineT1B
uput12ex[d](b2)rnode[t]T2textsfTextnclineT2b2
endpostscript
enddocument
A short code with pstricks
and auto-pst-pdf
:
documentclassarticle
usepackageamsmath
usepackagepst-node, auto-pst-pdf
begindocument
beginpostscript
beginequation*
0 leq F = underbracesumlimits_i=1^n(y_i - overliney)^2_(n-1)s_y^2
-rnodeB2b underbracesumlimits_i=1^n(x_i - overlinex)(y_i - overliney)_(n-1)s_xy = (n-1)rs_xs_y
+rnodeb2b^2 underbracesumlimits_i=1^n(x_i - overlinex)^2_(n-1)s_x^2
endequation*
pssetarrowinset=0.12, arrows=->, nodesep=4pt
uput12ex[d](B)rnode[t]T1textsfTextnclineT1B
uput12ex[d](b2)rnode[t]T2textsfTextnclineT2b2
endpostscript
enddocument
edited Sep 4 at 20:15
answered Sep 4 at 20:03
Bernard
156k763189
156k763189
+1. To make the-
and+
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as-
and+
, resp. Also, the threelimits
directives aren't needed.
– Mico
Sep 4 at 20:06
1
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from theunderbrace
s.
– Bernard
Sep 4 at 20:18
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence ofunderbrace
directives....
– Mico
Sep 4 at 20:24
add a comment |Â
+1. To make the-
and+
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as-
and+
, resp. Also, the threelimits
directives aren't needed.
– Mico
Sep 4 at 20:06
1
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from theunderbrace
s.
– Bernard
Sep 4 at 20:18
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence ofunderbrace
directives....
– Mico
Sep 4 at 20:24
+1. To make the
-
and +
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as -
and +
, resp. Also, the three limits
directives aren't needed.– Mico
Sep 4 at 20:06
+1. To make the
-
and +
terms between the summands act like binary rather than as unary operators, I think it's a good idea to surround them with pairs of curly braces, i.e., to write them as -
and +
, resp. Also, the three limits
directives aren't needed.– Mico
Sep 4 at 20:06
1
1
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from the
underbrace
s.– Bernard
Sep 4 at 20:18
@Mico: One pair of braces for each node will do. Actually, it has nothing to do with the pstricks nodes (never noticed it previously): it seems to come from the
underbrace
s.– Bernard
Sep 4 at 20:18
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence of
underbrace
directives....– Mico
Sep 4 at 20:24
I only ever noticed the spacing issue after coming across a comment by @egreg on this topic, i.e., the presence of
underbrace
directives....– Mico
Sep 4 at 20:24
add a comment |Â
Mehmet is a new contributor. Be nice, and check out our Code of Conduct.
Mehmet is a new contributor. Be nice, and check out our Code of Conduct.
Mehmet is a new contributor. Be nice, and check out our Code of Conduct.
Mehmet 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449324%2fequation-with-vertical-arrow%23new-answer', 'question_page');
);
Post as a guest
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
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
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
3
welcome to tex.se! please make your code snippet complete and than extend it to small document with your equation.
– Zarko
Sep 4 at 19:38