Shift to left a long expression into an environment
What are the possible alternatives to move within an environment, the second equation all on the left?
Here there is my MWE:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}& notag\
intertext{cioe'}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}&.notag\
end{align*}
end{document}
math-mode equations align flalign
add a comment |
What are the possible alternatives to move within an environment, the second equation all on the left?
Here there is my MWE:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}& notag\
intertext{cioe'}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}&.notag\
end{align*}
end{document}
math-mode equations align flalign
1
You can place the&
after bothF_{x}
i.e.F_{x}&+...\intertext{cioe'}\F_{x}&=...
.
– manooooh
4 hours ago
why are you usingalign
with no alignment points? If there is no alignment then you should usemultline
orgather
etc.
– David Carlisle
3 hours ago
Since you're using the starred form ofalign
, there's no need to addnotag
.
– barbara beeton
2 hours ago
add a comment |
What are the possible alternatives to move within an environment, the second equation all on the left?
Here there is my MWE:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}& notag\
intertext{cioe'}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}&.notag\
end{align*}
end{document}
math-mode equations align flalign
What are the possible alternatives to move within an environment, the second equation all on the left?
Here there is my MWE:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}& notag\
intertext{cioe'}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}&.notag\
end{align*}
end{document}
math-mode equations align flalign
math-mode equations align flalign
asked 4 hours ago
SebastianoSebastiano
11.1k42164
11.1k42164
1
You can place the&
after bothF_{x}
i.e.F_{x}&+...\intertext{cioe'}\F_{x}&=...
.
– manooooh
4 hours ago
why are you usingalign
with no alignment points? If there is no alignment then you should usemultline
orgather
etc.
– David Carlisle
3 hours ago
Since you're using the starred form ofalign
, there's no need to addnotag
.
– barbara beeton
2 hours ago
add a comment |
1
You can place the&
after bothF_{x}
i.e.F_{x}&+...\intertext{cioe'}\F_{x}&=...
.
– manooooh
4 hours ago
why are you usingalign
with no alignment points? If there is no alignment then you should usemultline
orgather
etc.
– David Carlisle
3 hours ago
Since you're using the starred form ofalign
, there's no need to addnotag
.
– barbara beeton
2 hours ago
1
1
You can place the
&
after both F_{x}
i.e. F_{x}&+...\intertext{cioe'}\F_{x}&=...
.– manooooh
4 hours ago
You can place the
&
after both F_{x}
i.e. F_{x}&+...\intertext{cioe'}\F_{x}&=...
.– manooooh
4 hours ago
why are you using
align
with no alignment points? If there is no alignment then you should use multline
or gather
etc.– David Carlisle
3 hours ago
why are you using
align
with no alignment points? If there is no alignment then you should use multline
or gather
etc.– David Carlisle
3 hours ago
Since you're using the starred form of
align
, there's no need to add notag
.– barbara beeton
2 hours ago
Since you're using the starred form of
align
, there's no need to add notag
.– barbara beeton
2 hours ago
add a comment |
2 Answers
2
active
oldest
votes
I would place both &
alignment points at the very beginning of each row.
Two additional remarks: (a) Placing the &
symbols at the very end of each row is equivalent to not providing any alignments points at all which, in turn, means that that the equations will be aligned at the right-hand ends. (b) The notag
directives do nothing but create code clutter when used inside an align*
environment.
documentclass[a4paper,12pt]{article}
usepackage[italian]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable page size parameters
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}
+frac{partial A_{x}}{partial x}frac{dx}{dt}
+frac{partial A_{x}}{partial y}frac{dy}{dt}
+frac{partial A_{x}}{partial z}frac{dz}{dt}right]=
-qfrac{partialvarphi}{partial x}
+q u_{x}frac{partial A_{x}}{partial x}
+q u_{y}frac{partial A_{y}}{partial x}
+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cio`e}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}
+frac{partial A_{x}}{partial t}right]
+u_{y}left[frac{partial A_{y}}{partial x}
-frac{partial A_{x}}{partial y}right]
-u_{z}left[frac{partial A_{x}}{partial z}
-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
1
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
2
You're most welcome!
– Mico
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
add a comment |
There's no reason for using align
without aligning things.
I'd go with a standard
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{equation*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}
end{equation*}
cioè
begin{equation*}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{equation*}
end{document}
If you want to align both F_x
, the way is to fix the alignment point at them:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cioè}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
Note that notag
is superfluous in align*
that does not number equations in the first place. Also remember that there must not be a trailing \
, which would cause unwanted vertical space (and a spurious equation number with align
).
Here's a polished version, with a macro instead of all those partial
commands, and the two options.
documentclass[a4paper]{article}
usepackage{mathtools}
newcommand{der}[2]{%
frac{d#1}{d#2}%
}
newcommand{pder}[2]{%
frac{partial #1}{partial #2}%
}
begin{document}
section{texttt{align}}
begin{align*}
&F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}der{x}{t}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}der{z}{t}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
intertext{cioè}
&F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{align*}
section{texttt{equation}}
begin{equation*}
F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}frac{dx}{dt}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}frac{dz}{dt}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
end{equation*}
cioè
begin{equation*}
F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{equation*}
end{document}
Thank you very much, also to you, dear friend!
– Sebastiano
3 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%2f480583%2fshift-to-left-a-long-expression-into-an-environment%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
I would place both &
alignment points at the very beginning of each row.
Two additional remarks: (a) Placing the &
symbols at the very end of each row is equivalent to not providing any alignments points at all which, in turn, means that that the equations will be aligned at the right-hand ends. (b) The notag
directives do nothing but create code clutter when used inside an align*
environment.
documentclass[a4paper,12pt]{article}
usepackage[italian]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable page size parameters
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}
+frac{partial A_{x}}{partial x}frac{dx}{dt}
+frac{partial A_{x}}{partial y}frac{dy}{dt}
+frac{partial A_{x}}{partial z}frac{dz}{dt}right]=
-qfrac{partialvarphi}{partial x}
+q u_{x}frac{partial A_{x}}{partial x}
+q u_{y}frac{partial A_{y}}{partial x}
+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cio`e}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}
+frac{partial A_{x}}{partial t}right]
+u_{y}left[frac{partial A_{y}}{partial x}
-frac{partial A_{x}}{partial y}right]
-u_{z}left[frac{partial A_{x}}{partial z}
-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
1
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
2
You're most welcome!
– Mico
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
add a comment |
I would place both &
alignment points at the very beginning of each row.
Two additional remarks: (a) Placing the &
symbols at the very end of each row is equivalent to not providing any alignments points at all which, in turn, means that that the equations will be aligned at the right-hand ends. (b) The notag
directives do nothing but create code clutter when used inside an align*
environment.
documentclass[a4paper,12pt]{article}
usepackage[italian]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable page size parameters
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}
+frac{partial A_{x}}{partial x}frac{dx}{dt}
+frac{partial A_{x}}{partial y}frac{dy}{dt}
+frac{partial A_{x}}{partial z}frac{dz}{dt}right]=
-qfrac{partialvarphi}{partial x}
+q u_{x}frac{partial A_{x}}{partial x}
+q u_{y}frac{partial A_{y}}{partial x}
+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cio`e}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}
+frac{partial A_{x}}{partial t}right]
+u_{y}left[frac{partial A_{y}}{partial x}
-frac{partial A_{x}}{partial y}right]
-u_{z}left[frac{partial A_{x}}{partial z}
-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
1
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
2
You're most welcome!
– Mico
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
add a comment |
I would place both &
alignment points at the very beginning of each row.
Two additional remarks: (a) Placing the &
symbols at the very end of each row is equivalent to not providing any alignments points at all which, in turn, means that that the equations will be aligned at the right-hand ends. (b) The notag
directives do nothing but create code clutter when used inside an align*
environment.
documentclass[a4paper,12pt]{article}
usepackage[italian]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable page size parameters
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}
+frac{partial A_{x}}{partial x}frac{dx}{dt}
+frac{partial A_{x}}{partial y}frac{dy}{dt}
+frac{partial A_{x}}{partial z}frac{dz}{dt}right]=
-qfrac{partialvarphi}{partial x}
+q u_{x}frac{partial A_{x}}{partial x}
+q u_{y}frac{partial A_{y}}{partial x}
+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cio`e}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}
+frac{partial A_{x}}{partial t}right]
+u_{y}left[frac{partial A_{y}}{partial x}
-frac{partial A_{x}}{partial y}right]
-u_{z}left[frac{partial A_{x}}{partial z}
-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
I would place both &
alignment points at the very beginning of each row.
Two additional remarks: (a) Placing the &
symbols at the very end of each row is equivalent to not providing any alignments points at all which, in turn, means that that the equations will be aligned at the right-hand ends. (b) The notag
directives do nothing but create code clutter when used inside an align*
environment.
documentclass[a4paper,12pt]{article}
usepackage[italian]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable page size parameters
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}
+frac{partial A_{x}}{partial x}frac{dx}{dt}
+frac{partial A_{x}}{partial y}frac{dy}{dt}
+frac{partial A_{x}}{partial z}frac{dz}{dt}right]=
-qfrac{partialvarphi}{partial x}
+q u_{x}frac{partial A_{x}}{partial x}
+q u_{y}frac{partial A_{y}}{partial x}
+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cio`e}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}
+frac{partial A_{x}}{partial t}right]
+u_{y}left[frac{partial A_{y}}{partial x}
-frac{partial A_{x}}{partial y}right]
-u_{z}left[frac{partial A_{x}}{partial z}
-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
edited 3 hours ago
answered 3 hours ago
MicoMico
283k31388776
283k31388776
1
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
2
You're most welcome!
– Mico
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
add a comment |
1
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
2
You're most welcome!
– Mico
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
1
1
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
Thank you very much with all my heart! Thank you always for your understanding and help, including comments.
– Sebastiano
3 hours ago
2
2
You're most welcome!
– Mico
3 hours ago
You're most welcome!
– Mico
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
Idem with all the sincerity.
– Sebastiano
3 hours ago
add a comment |
There's no reason for using align
without aligning things.
I'd go with a standard
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{equation*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}
end{equation*}
cioè
begin{equation*}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{equation*}
end{document}
If you want to align both F_x
, the way is to fix the alignment point at them:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cioè}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
Note that notag
is superfluous in align*
that does not number equations in the first place. Also remember that there must not be a trailing \
, which would cause unwanted vertical space (and a spurious equation number with align
).
Here's a polished version, with a macro instead of all those partial
commands, and the two options.
documentclass[a4paper]{article}
usepackage{mathtools}
newcommand{der}[2]{%
frac{d#1}{d#2}%
}
newcommand{pder}[2]{%
frac{partial #1}{partial #2}%
}
begin{document}
section{texttt{align}}
begin{align*}
&F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}der{x}{t}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}der{z}{t}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
intertext{cioè}
&F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{align*}
section{texttt{equation}}
begin{equation*}
F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}frac{dx}{dt}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}frac{dz}{dt}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
end{equation*}
cioè
begin{equation*}
F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{equation*}
end{document}
Thank you very much, also to you, dear friend!
– Sebastiano
3 hours ago
add a comment |
There's no reason for using align
without aligning things.
I'd go with a standard
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{equation*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}
end{equation*}
cioè
begin{equation*}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{equation*}
end{document}
If you want to align both F_x
, the way is to fix the alignment point at them:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cioè}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
Note that notag
is superfluous in align*
that does not number equations in the first place. Also remember that there must not be a trailing \
, which would cause unwanted vertical space (and a spurious equation number with align
).
Here's a polished version, with a macro instead of all those partial
commands, and the two options.
documentclass[a4paper]{article}
usepackage{mathtools}
newcommand{der}[2]{%
frac{d#1}{d#2}%
}
newcommand{pder}[2]{%
frac{partial #1}{partial #2}%
}
begin{document}
section{texttt{align}}
begin{align*}
&F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}der{x}{t}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}der{z}{t}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
intertext{cioè}
&F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{align*}
section{texttt{equation}}
begin{equation*}
F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}frac{dx}{dt}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}frac{dz}{dt}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
end{equation*}
cioè
begin{equation*}
F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{equation*}
end{document}
Thank you very much, also to you, dear friend!
– Sebastiano
3 hours ago
add a comment |
There's no reason for using align
without aligning things.
I'd go with a standard
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{equation*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}
end{equation*}
cioè
begin{equation*}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{equation*}
end{document}
If you want to align both F_x
, the way is to fix the alignment point at them:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cioè}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
Note that notag
is superfluous in align*
that does not number equations in the first place. Also remember that there must not be a trailing \
, which would cause unwanted vertical space (and a spurious equation number with align
).
Here's a polished version, with a macro instead of all those partial
commands, and the two options.
documentclass[a4paper]{article}
usepackage{mathtools}
newcommand{der}[2]{%
frac{d#1}{d#2}%
}
newcommand{pder}[2]{%
frac{partial #1}{partial #2}%
}
begin{document}
section{texttt{align}}
begin{align*}
&F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}der{x}{t}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}der{z}{t}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
intertext{cioè}
&F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{align*}
section{texttt{equation}}
begin{equation*}
F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}frac{dx}{dt}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}frac{dz}{dt}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
end{equation*}
cioè
begin{equation*}
F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{equation*}
end{document}
There's no reason for using align
without aligning things.
I'd go with a standard
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{equation*}
F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}
end{equation*}
cioè
begin{equation*}
F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{equation*}
end{document}
If you want to align both F_x
, the way is to fix the alignment point at them:
documentclass[a4paper,12pt]{article}
usepackage{mathtools}
begin{document}
begin{align*}
&F_{x}+qleft[frac{partial A_{x}}{partial t}+frac{partial A_{x}}{partial x}frac{dx}{dt}+frac{partial A_{x}}{partial y}frac{dy}{dt}+frac{partial A_{x}}{partial z}frac{dz}{dt}right]= -qfrac{partialvarphi}{partial x}+q u_{x}frac{partial A_{x}}{partial x}+q u_{y}frac{partial A_{y}}{partial x}+q u_{z}frac{partial A_{z}}{partial x}\
intertext{cioè}
&F_{x}=qleft{ -left[frac{partialvarphi}{partial x}+frac{partial A_{x}}{partial t}right]+u_{y}left[frac{partial A_{y}}{partial x}-frac{partial A_{x}}{partial y}right]-u_{z}left[frac{partial A_{x}}{partial z}-frac{partial A_{z}}{partial x}right]right}.
end{align*}
end{document}
Note that notag
is superfluous in align*
that does not number equations in the first place. Also remember that there must not be a trailing \
, which would cause unwanted vertical space (and a spurious equation number with align
).
Here's a polished version, with a macro instead of all those partial
commands, and the two options.
documentclass[a4paper]{article}
usepackage{mathtools}
newcommand{der}[2]{%
frac{d#1}{d#2}%
}
newcommand{pder}[2]{%
frac{partial #1}{partial #2}%
}
begin{document}
section{texttt{align}}
begin{align*}
&F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}der{x}{t}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}der{z}{t}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
intertext{cioè}
&F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{align*}
section{texttt{equation}}
begin{equation*}
F_{x}+qleft[pder{A_{x}}{t}+pder{A_{x}}{x}frac{dx}{dt}
+pder{A_{x}}{y}frac{dy}{dt}+pder{A_{x}}{z}frac{dz}{dt}right]
=-qpder{varphi}{x}+q u_{x}pder{A_{x}}{x}+q u_{y}pder{A_{y}}{x}
+q u_{z}pder{A_{z}}{x}
end{equation*}
cioè
begin{equation*}
F_{x}=
qleft{
-left[pder{varphi}{x}+pder{A_{x}}{t}right]
+u_{y}left[pder{A_{y}}{x}-pder{A_{x}}{y}right]
-u_{z}left[pder{A_{x}}{z}-pder{A_{z}}{x}right]
right}.
end{equation*}
end{document}
edited 3 hours ago
answered 3 hours ago
egregegreg
728k8819233233
728k8819233233
Thank you very much, also to you, dear friend!
– Sebastiano
3 hours ago
add a comment |
Thank you very much, also to you, dear friend!
– Sebastiano
3 hours ago
Thank you very much, also to you, dear friend!
– Sebastiano
3 hours ago
Thank you very much, also to you, dear friend!
– Sebastiano
3 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%2f480583%2fshift-to-left-a-long-expression-into-an-environment%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
1
You can place the
&
after bothF_{x}
i.e.F_{x}&+...\intertext{cioe'}\F_{x}&=...
.– manooooh
4 hours ago
why are you using
align
with no alignment points? If there is no alignment then you should usemultline
orgather
etc.– David Carlisle
3 hours ago
Since you're using the starred form of
align
, there's no need to addnotag
.– barbara beeton
2 hours ago