switching alignmentHow to align a set of multiline equationsalignment and numbering of math formulasframe more than 1 equation (but not all) of an align environmentAlign 2 (multiple) element in same equationBreaking equations within the align environmentHow can I align equations to the left and to the right?How to Split equation in aligned environmentDouble equation alignment problem within align enviromentRescaling equation in align+split environment - Numbering problemWriting in-line equations on multiple lines using displaystyle
How to create a `range`-like iterable object of floats?
Are there historical examples of audiences drawn to a work that was "so bad it's good"?
Split into three!
Are there guidelines for finding good names for LaTeX 2e packages and control sequences defined in these packages?
Why do the i8080 I/O instructions take a byte-sized operand to determine the port?
Fill area of x^2+y^2>1 and x^2+y^2>4 using patterns and tikzpicture
How to write numbers and percentage?
resolution bandwidth
Why'd a rational buyer offer to buy with no conditions precedent?
Set outline first and fill colors later
Using too much dialogue?
Handling decimals in somewhat complex math
What is the limit to a Glyph of Warding's trigger?
Why was this character made Grand Maester?
What is to the west of Westeros?
Storing voxels for a voxel Engine in C++
To exponential digit growth and beyond!
How to teach an undergraduate course without having taken that course formally before?
Can a UK national work as a paid shop assistant in the USA?
Prince of Darkness goes cryptic
Knight's Tour on a 7x7 Board starting from D5
'Select @VAR =' and 'Set @VAR =' behaving unexpectedly
Can attacking players use activated abilities after blockers have been declared?
Ribbon Cable Cross Talk - Is there a fix after the fact?
switching alignment
How to align a set of multiline equationsalignment and numbering of math formulasframe more than 1 equation (but not all) of an align environmentAlign 2 (multiple) element in same equationBreaking equations within the align environmentHow can I align equations to the left and to the right?How to Split equation in aligned environmentDouble equation alignment problem within align enviromentRescaling equation in align+split environment - Numbering problemWriting in-line equations on multiple lines using displaystyle
I'm new to Latex and its environments such as split and align and I'm trying to change the alignment of an equation in a customized manner. I have a set of equations similar to what you can see in the picture below. My goal is to shift the last line's equal sign to where it is indicated by the arrow while keeping the alignment of the second line untouched.

I need to do this since my actual equation is pretty long and I'm trying to fit it in one slide. I appreciate your ideas.
equations align arrays split
New contributor
arash 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 |
I'm new to Latex and its environments such as split and align and I'm trying to change the alignment of an equation in a customized manner. I have a set of equations similar to what you can see in the picture below. My goal is to shift the last line's equal sign to where it is indicated by the arrow while keeping the alignment of the second line untouched.

I need to do this since my actual equation is pretty long and I'm trying to fit it in one slide. I appreciate your ideas.
equations align arrays split
New contributor
arash 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.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...and ending withenddocument.
– Stefan Pinnow
4 hours ago
add a comment |
I'm new to Latex and its environments such as split and align and I'm trying to change the alignment of an equation in a customized manner. I have a set of equations similar to what you can see in the picture below. My goal is to shift the last line's equal sign to where it is indicated by the arrow while keeping the alignment of the second line untouched.

I need to do this since my actual equation is pretty long and I'm trying to fit it in one slide. I appreciate your ideas.
equations align arrays split
New contributor
arash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I'm new to Latex and its environments such as split and align and I'm trying to change the alignment of an equation in a customized manner. I have a set of equations similar to what you can see in the picture below. My goal is to shift the last line's equal sign to where it is indicated by the arrow while keeping the alignment of the second line untouched.

I need to do this since my actual equation is pretty long and I'm trying to fit it in one slide. I appreciate your ideas.
equations align arrays split
equations align arrays split
New contributor
arash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
arash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
arash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 4 hours ago
arasharash
82
82
New contributor
arash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
arash 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.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...and ending withenddocument.
– Stefan Pinnow
4 hours ago
add a comment |
3
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting withdocumentclass...and ending withenddocument.
– Stefan Pinnow
4 hours ago
3
3
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass... and ending with enddocument.– Stefan Pinnow
4 hours ago
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass... and ending with enddocument.– Stefan Pinnow
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Rough code as you didn't provide a MWE. You can use aligned inside of align.
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=beginaligned[t]
mathcalH[q(theta)] &=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l
endaligned\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument
In my eyes, though, it is more readable to put each = on its own line:
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] \
&=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l \
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
add a comment |
Why not this simpler layout?
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] =-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)Bigl[sum_j ln qleft(theta_jright)Bigr] prod_l d theta_l\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument

basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
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
);
);
arash is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f491801%2fswitching-alignment%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
Rough code as you didn't provide a MWE. You can use aligned inside of align.
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=beginaligned[t]
mathcalH[q(theta)] &=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l
endaligned\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument
In my eyes, though, it is more readable to put each = on its own line:
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] \
&=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l \
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
add a comment |
Rough code as you didn't provide a MWE. You can use aligned inside of align.
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=beginaligned[t]
mathcalH[q(theta)] &=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l
endaligned\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument
In my eyes, though, it is more readable to put each = on its own line:
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] \
&=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l \
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
add a comment |
Rough code as you didn't provide a MWE. You can use aligned inside of align.
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=beginaligned[t]
mathcalH[q(theta)] &=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l
endaligned\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument
In my eyes, though, it is more readable to put each = on its own line:
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] \
&=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l \
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
Rough code as you didn't provide a MWE. You can use aligned inside of align.
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=beginaligned[t]
mathcalH[q(theta)] &=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l
endaligned\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument
In my eyes, though, it is more readable to put each = on its own line:
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] \
&=-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)left[sum_j ln qleft(theta_jright)right] prod_l d theta_l \
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
edited 4 hours ago
answered 4 hours ago
AboAmmarAboAmmar
35.4k32985
35.4k32985
add a comment |
add a comment |
Why not this simpler layout?
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] =-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)Bigl[sum_j ln qleft(theta_jright)Bigr] prod_l d theta_l\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument

basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
3 hours ago
add a comment |
Why not this simpler layout?
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] =-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)Bigl[sum_j ln qleft(theta_jright)Bigr] prod_l d theta_l\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument

basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
3 hours ago
add a comment |
Why not this simpler layout?
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] =-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)Bigl[sum_j ln qleft(theta_jright)Bigr] prod_l d theta_l\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument

Why not this simpler layout?
documentclass[11pt]beamer
begindocument
beginframeTitle
beginalign*
mathcalF_1[q]&=mathcalH[q(theta)] =-int q(theta) ln q(theta) d theta \
&=-int prod_i qleft(theta_iright)Bigl[sum_j ln qleft(theta_jright)Bigr] prod_l d theta_l\
&=-sum_i int qleft(theta_iright) ln qleft(theta_iright) d theta_i
endalign*
endframe
enddocument

answered 4 hours ago
BernardBernard
179k779212
179k779212
basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
3 hours ago
add a comment |
basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
3 hours ago
basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
3 hours ago
basically, my equation is long that I cannot fit it in one slide. So I was thinking of a neat way to do it and that was one of the options. I agree that it's not readable as before though.
– arash
3 hours ago
add a comment |
arash is a new contributor. Be nice, and check out our Code of Conduct.
arash is a new contributor. Be nice, and check out our Code of Conduct.
arash is a new contributor. Be nice, and check out our Code of Conduct.
arash is a new contributor. Be nice, and check out our Code of Conduct.
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%2f491801%2fswitching-alignment%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


3
Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with
documentclass...and ending withenddocument.– Stefan Pinnow
4 hours ago