Vertical space before align environment is smaller than before displayed math
up vote
0
down vote
favorite
The result of the following code is strange: vertical space before align
environment is smaller than displayed math. What is the problem with align
environment?
documentclass[14pt]{article}
usepackage{amsmath}
setlength{lineskiplimit}{4pt}
setlength{lineskip}{4pt plus 1pt minus 1pt}
AtBeginDocument{%
setlength{baselineskip}{19pt plus 1pt minus 1pt}%
}
begin{document}
setlength{fboxsep}{0pt}
noindent
fbox{makebox[textwidth]{lazy dog}}
begin{align*}
boxed{f(x) = sin x + 1}
end{align*}
fbox{makebox[textwidth]{lazy dog}}
$$boxed{f(x) = sin x + 1}$$
fbox{makebox[textwidth]{lazy dog}}
end{document}
spacing align amsmath
add a comment |
up vote
0
down vote
favorite
The result of the following code is strange: vertical space before align
environment is smaller than displayed math. What is the problem with align
environment?
documentclass[14pt]{article}
usepackage{amsmath}
setlength{lineskiplimit}{4pt}
setlength{lineskip}{4pt plus 1pt minus 1pt}
AtBeginDocument{%
setlength{baselineskip}{19pt plus 1pt minus 1pt}%
}
begin{document}
setlength{fboxsep}{0pt}
noindent
fbox{makebox[textwidth]{lazy dog}}
begin{align*}
boxed{f(x) = sin x + 1}
end{align*}
fbox{makebox[textwidth]{lazy dog}}
$$boxed{f(x) = sin x + 1}$$
fbox{makebox[textwidth]{lazy dog}}
end{document}
spacing align amsmath
try to useboxed{f(x) = sin y + 1}
. do you now observe difference between space before align and after it?
– Zarko
1 hour ago
There isn't is a problem here, per se.begin{align}
...end{align}
do some things different than does[
...]
(see Why is[
...]
preferable to$$
...$$
?). What are you after? Should they be the same? If so, which one do you prefer?
– Werner
1 hour ago
align
is intended to be used for multi-line, not single line, displays.
– barbara beeton
23 mins ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
The result of the following code is strange: vertical space before align
environment is smaller than displayed math. What is the problem with align
environment?
documentclass[14pt]{article}
usepackage{amsmath}
setlength{lineskiplimit}{4pt}
setlength{lineskip}{4pt plus 1pt minus 1pt}
AtBeginDocument{%
setlength{baselineskip}{19pt plus 1pt minus 1pt}%
}
begin{document}
setlength{fboxsep}{0pt}
noindent
fbox{makebox[textwidth]{lazy dog}}
begin{align*}
boxed{f(x) = sin x + 1}
end{align*}
fbox{makebox[textwidth]{lazy dog}}
$$boxed{f(x) = sin x + 1}$$
fbox{makebox[textwidth]{lazy dog}}
end{document}
spacing align amsmath
The result of the following code is strange: vertical space before align
environment is smaller than displayed math. What is the problem with align
environment?
documentclass[14pt]{article}
usepackage{amsmath}
setlength{lineskiplimit}{4pt}
setlength{lineskip}{4pt plus 1pt minus 1pt}
AtBeginDocument{%
setlength{baselineskip}{19pt plus 1pt minus 1pt}%
}
begin{document}
setlength{fboxsep}{0pt}
noindent
fbox{makebox[textwidth]{lazy dog}}
begin{align*}
boxed{f(x) = sin x + 1}
end{align*}
fbox{makebox[textwidth]{lazy dog}}
$$boxed{f(x) = sin x + 1}$$
fbox{makebox[textwidth]{lazy dog}}
end{document}
spacing align amsmath
spacing align amsmath
edited 1 hour ago
asked 1 hour ago
Z.H.
1,7511326
1,7511326
try to useboxed{f(x) = sin y + 1}
. do you now observe difference between space before align and after it?
– Zarko
1 hour ago
There isn't is a problem here, per se.begin{align}
...end{align}
do some things different than does[
...]
(see Why is[
...]
preferable to$$
...$$
?). What are you after? Should they be the same? If so, which one do you prefer?
– Werner
1 hour ago
align
is intended to be used for multi-line, not single line, displays.
– barbara beeton
23 mins ago
add a comment |
try to useboxed{f(x) = sin y + 1}
. do you now observe difference between space before align and after it?
– Zarko
1 hour ago
There isn't is a problem here, per se.begin{align}
...end{align}
do some things different than does[
...]
(see Why is[
...]
preferable to$$
...$$
?). What are you after? Should they be the same? If so, which one do you prefer?
– Werner
1 hour ago
align
is intended to be used for multi-line, not single line, displays.
– barbara beeton
23 mins ago
try to use
boxed{f(x) = sin y + 1}
. do you now observe difference between space before align and after it?– Zarko
1 hour ago
try to use
boxed{f(x) = sin y + 1}
. do you now observe difference between space before align and after it?– Zarko
1 hour ago
There isn't is a problem here, per se.
begin{align}
...end{align}
do some things different than does [
...]
(see Why is [
... ]
preferable to $$
... $$
?). What are you after? Should they be the same? If so, which one do you prefer?– Werner
1 hour ago
There isn't is a problem here, per se.
begin{align}
...end{align}
do some things different than does [
...]
(see Why is [
... ]
preferable to $$
... $$
?). What are you after? Should they be the same? If so, which one do you prefer?– Werner
1 hour ago
align
is intended to be used for multi-line, not single line, displays.– barbara beeton
23 mins ago
align
is intended to be used for multi-line, not single line, displays.– barbara beeton
23 mins ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f462284%2fvertical-space-before-align-environment-is-smaller-than-before-displayed-math%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 to use
boxed{f(x) = sin y + 1}
. do you now observe difference between space before align and after it?– Zarko
1 hour ago
There isn't is a problem here, per se.
begin{align}
...end{align}
do some things different than does[
...]
(see Why is[
...]
preferable to$$
...$$
?). What are you after? Should they be the same? If so, which one do you prefer?– Werner
1 hour ago
align
is intended to be used for multi-line, not single line, displays.– barbara beeton
23 mins ago