Aligning an equation at multiple points, with both left and right alignment, as well as equals sign alignment...
What is the difference between globalisation and imperialism?
How would a mousetrap for use in space work?
How to get all distinct words within a set of lines?
Did any compiler fully use 80-bit floating point?
How to improve on this Stylesheet Manipulation for Message Styling
How much damage would a cupful of neutron star matter do to the Earth?
Exposing GRASS GIS add-on in QGIS Processing framework?
One-one communication
Hangman Game with C++
How does light 'choose' between wave and particle behaviour?
Is this another way of expressing the side limit?
Why do early math courses focus on the cross sections of a cone and not on other 3D objects?
Generate an RGB colour grid
Take 2! Is this homebrew Lady of Pain warlock patron balanced?
Product of Mrówka space and one point compactification discrete space.
Is it possible for SQL statements to execute concurrently within a single session in SQL Server?
If Windows 7 doesn't support WSL, then what does Linux subsystem option mean?
Triggering an ultrasonic sensor
What would you call this weird metallic apparatus that allows you to lift people?
When a candle burns, why does the top of wick glow if bottom of flame is hottest?
QGIS virtual layer functionality does not seem to support memory layers
Is it fair for a professor to grade us on the possession of past papers?
Using audio cues to encourage good posture
How often does castling occur in grandmaster games?
Aligning an equation at multiple points, with both left and right alignment, as well as equals sign alignment
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Right Align Equation Number with hfill in Custom EnvironmentCreating Horizontal Lines With A Specific DistanceText and picture top-aligned, where text is left-aligned and picture is right alignedHorizontal alignment of equation and textAlign multiple equations with parts inside rootAlign images with text without using tablesAligning text in the multicols environmentAligning a list (whose elements are aligned left) to the right of the pageHow can I align this equation in the center?Split text apart in table cell
I am trying to achieve the formatting in the image attached, with the bracketed right equation/text aligned to the right side of the page. However, I would also like to be able to align the equal signs on the left hand expressions, whilst also aligning the most side of each line with the left hand side of the page.
I have attempted to do this using align and /hfill; however I suspect this is not exactly efficient or correct. I am not a Latex expert, I would just like to make lists of these fairly simple equations look pretty.
Any assistance would be greatly appreciated.
The code I have used is below:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
par vspace{3mm} R{_{1}} &= dfrac{wl}{2} \
par vspace{3mm} R{_{2}} &= R{_{1}} \
par vspace{3mm} V{_{x}} &= wleft(dfrac{l}{2}-xright) \
par vspace{3mm} V{_{max}} &= R{_{1}}=R{_{2}} hfill text{(at};R_{1};text{and};R_{2}text{)} \
par vspace{3mm} M{_{max}}&=dfrac{wl^{2}}{8} hfill text{(at centre)}\
par vspace{3mm} M{_{x}}&=dfrac{wx}{2}left(l-xright) \
par vspace{3mm} Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
par vspace{3mm} Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) hfill text{(at centre)}\
end{align*}
end{document}
Many thanks and kind regards
horizontal-alignment align
New contributor
Tokamec 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 am trying to achieve the formatting in the image attached, with the bracketed right equation/text aligned to the right side of the page. However, I would also like to be able to align the equal signs on the left hand expressions, whilst also aligning the most side of each line with the left hand side of the page.
I have attempted to do this using align and /hfill; however I suspect this is not exactly efficient or correct. I am not a Latex expert, I would just like to make lists of these fairly simple equations look pretty.
Any assistance would be greatly appreciated.
The code I have used is below:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
par vspace{3mm} R{_{1}} &= dfrac{wl}{2} \
par vspace{3mm} R{_{2}} &= R{_{1}} \
par vspace{3mm} V{_{x}} &= wleft(dfrac{l}{2}-xright) \
par vspace{3mm} V{_{max}} &= R{_{1}}=R{_{2}} hfill text{(at};R_{1};text{and};R_{2}text{)} \
par vspace{3mm} M{_{max}}&=dfrac{wl^{2}}{8} hfill text{(at centre)}\
par vspace{3mm} M{_{x}}&=dfrac{wx}{2}left(l-xright) \
par vspace{3mm} Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
par vspace{3mm} Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) hfill text{(at centre)}\
end{align*}
end{document}
Many thanks and kind regards
horizontal-alignment align
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Hi, I think I have done that now, cheers
– Tokamec
2 hours ago
add a comment |
I am trying to achieve the formatting in the image attached, with the bracketed right equation/text aligned to the right side of the page. However, I would also like to be able to align the equal signs on the left hand expressions, whilst also aligning the most side of each line with the left hand side of the page.
I have attempted to do this using align and /hfill; however I suspect this is not exactly efficient or correct. I am not a Latex expert, I would just like to make lists of these fairly simple equations look pretty.
Any assistance would be greatly appreciated.
The code I have used is below:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
par vspace{3mm} R{_{1}} &= dfrac{wl}{2} \
par vspace{3mm} R{_{2}} &= R{_{1}} \
par vspace{3mm} V{_{x}} &= wleft(dfrac{l}{2}-xright) \
par vspace{3mm} V{_{max}} &= R{_{1}}=R{_{2}} hfill text{(at};R_{1};text{and};R_{2}text{)} \
par vspace{3mm} M{_{max}}&=dfrac{wl^{2}}{8} hfill text{(at centre)}\
par vspace{3mm} M{_{x}}&=dfrac{wx}{2}left(l-xright) \
par vspace{3mm} Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
par vspace{3mm} Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) hfill text{(at centre)}\
end{align*}
end{document}
Many thanks and kind regards
horizontal-alignment align
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am trying to achieve the formatting in the image attached, with the bracketed right equation/text aligned to the right side of the page. However, I would also like to be able to align the equal signs on the left hand expressions, whilst also aligning the most side of each line with the left hand side of the page.
I have attempted to do this using align and /hfill; however I suspect this is not exactly efficient or correct. I am not a Latex expert, I would just like to make lists of these fairly simple equations look pretty.
Any assistance would be greatly appreciated.
The code I have used is below:
documentclass{article}
usepackage{amsmath}
begin{document}
begin{align*}
par vspace{3mm} R{_{1}} &= dfrac{wl}{2} \
par vspace{3mm} R{_{2}} &= R{_{1}} \
par vspace{3mm} V{_{x}} &= wleft(dfrac{l}{2}-xright) \
par vspace{3mm} V{_{max}} &= R{_{1}}=R{_{2}} hfill text{(at};R_{1};text{and};R_{2}text{)} \
par vspace{3mm} M{_{max}}&=dfrac{wl^{2}}{8} hfill text{(at centre)}\
par vspace{3mm} M{_{x}}&=dfrac{wx}{2}left(l-xright) \
par vspace{3mm} Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
par vspace{3mm} Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) hfill text{(at centre)}\
end{align*}
end{document}
Many thanks and kind regards
horizontal-alignment align
horizontal-alignment align
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 hours ago
Tokamec
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 3 hours ago
TokamecTokamec
112
112
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Tokamec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Hi, I think I have done that now, cheers
– Tokamec
2 hours ago
add a comment |
Hi, I think I have done that now, cheers
– Tokamec
2 hours ago
Hi, I think I have done that now, cheers
– Tokamec
2 hours ago
Hi, I think I have done that now, cheers
– Tokamec
2 hours ago
add a comment |
3 Answers
3
active
oldest
votes
Some preliminary notes:
R{_{1}}is wrong and should beR_{1}(similarly for the other cases)- “max” in a subscript should be upright
parandvspaceare meaningless in a math display- the last line in a display should not end with
\
In the code below I used showframe just to show the page margins; don't use it yourself.
You can use the eqparbox environment. Each use should have a unique label, in this case A. Use a different one for each display where you need lefteqbox.
I also added how I would typeset the display.
documentclass{article}
usepackage{amsmath,eqparbox}
newcommand{lefteqbox}[2]{%
eqparbox[t]{#1}{$displaystyle#2$hfil}%
}
usepackage{showframe}
begin{document}
This is possibly what you want to achieve
begin{flalign*}
lefteqbox{A}{R_{1}} &= frac{wl}{2} \[1ex]
lefteqbox{A}{R_{2}} &= R_{1} \[1ex]
lefteqbox{A}{V_{x}} &= wleft(frac{l}{2}-xright) \[1ex]
lefteqbox{A}{V_{max}} &= R_{1}=R_{2}
& text{(at $R_{1}$ and $R_{2}$)} & \[1ex]
lefteqbox{A}{M_{max}} &= frac{wl^{2}}{8}
& text{(at centre)} &\[1ex]
lefteqbox{A}{M_{x}} &= frac{wx}{2}(l-x) \[1ex]
lefteqbox{A}{Delta_{max}} &= frac{5wl^{4}}{384EI} \[1ex]
lefteqbox{A}{Delta_{x}} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
& text{(at centre)} &
end{flalign*}
However, my opinion is that the following is better and clearer
begin{alignat*}{2}
R_{1} &= frac{wl}{2} \[1ex]
R_{2} &= R{_{1}} \[1ex]
V_{x} &= wleft(frac{l}{2}-xright) \[1ex]
V_{max} &= R_{1}=R_{2}
&qquad& text{(at $R_{1}$ and $R_{2}$)} \[1ex]
M_{max} &= frac{wl^{2}}{8}
&qquad& text{(at centre)} \[1ex]
M_{x} &= frac{wx}{2}(l-x) \[1ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[1ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
&qquad& text{(at centre)}
end{alignat*}
end{document}

A different realization exploiting tabular*:
documentclass{article}
usepackage{amsmath,array}
usepackage{showframe}
begin{document}
[
begin{tabular*}{displaywidth}{
@{}
>{$displaystyle}l<{$}
@{}
>{$displaystyle{}}l<{$}
@{extracolsep{fill}}
r
@{}
}
R_{1} &= frac{wl}{2} \[2ex]
R_{2} &= R_{1} \[2ex]
V_{x} &= wleft(frac{l}{2}-xright) \[2ex]
V_{max} &= R_{1}=R_{2} & (at $R_{1}$ and $R_{2}$) \[2ex]
M_{max} &= frac{wl^{2}}{8} & (at centre) \[2ex]
M_{x} &= frac{wx}{2}(l-x) \[2ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[2ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3}) & (at centre)
end{tabular*}
]
end{document}

This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
add a comment |
With the help or an array you can achieve the following layout:

documentclass{article}
usepackage{amsmath}
usepackage{array}
begin{document}
setlengthextrarowheight{10pt}
[
begin{array}{llr}
R{_{1}} &= dfrac{wl}{2} \
R{_{2}} &= R{_{1}} \
V{_{x}} &= wleft(dfrac{l}{2}-xright) \
V{_{max}} &= R{_{1}}=R{_{2}} & text{(at};R_{1};text{and};R_{2}text{)} \
M{_{max}}&=dfrac{wl^{2}}{8} & text{(at centre)}\
M{_{x}}&=dfrac{wx}{2}left(l-xright) \
Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & text{(at centre)}\
end{array}
]
end{document}
This looks perfect thanks!
– Tokamec
2 hours ago
note this still hasV{_{max}}copied from the question (wrong font and wrong_placement) also you could point out that you are needingdfrachere as unlike the ams alignmentsarrayis intended for matrices of values not displayed equations so sets the entries in inline math mode.
– David Carlisle
1 hour ago
add a comment |
With flalign* and package eqparbox:
documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
usepackage{eqparbox}
newcommand{eqmathbox}[2][M] {eqmakebox[#1][l]{$displaystyle #2$}}
begin{document}
begin{flalign*}
eqmathbox{R{_{1}}} &= frac{wl}{2} \[1ex]
eqmathbox{R{_{2}}} &= R{_{1}}\[1ex]
eqmathbox{V{_{x}}} &= wleft(frac{l}{2}-xright)\[1ex]
eqmathbox{V{_{max}}} &= R{_{1}}=R{_{2}} & & & text{(at};R_{1} text{ and } R_{2}text{)}\[1ex]
eqmathbox{M{_{max}}}&=frac{wl^{2}}{8} & & & text{(at centre)}\[1ex]
eqmathbox{M{_{x}}}&=frac{wx}{2}left(l-xright)\[1ex]
eqmathbox{Delta{_{max}}}&=frac{5wl^{4}}{384EI}\[1ex]
eqmathbox{Delta{_{x}}}&=frac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & & & text{(at centre)}
end{flalign*}
end{document}

Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 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
});
}
});
Tokamec 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%2f485574%2faligning-an-equation-at-multiple-points-with-both-left-and-right-alignment-as%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Some preliminary notes:
R{_{1}}is wrong and should beR_{1}(similarly for the other cases)- “max” in a subscript should be upright
parandvspaceare meaningless in a math display- the last line in a display should not end with
\
In the code below I used showframe just to show the page margins; don't use it yourself.
You can use the eqparbox environment. Each use should have a unique label, in this case A. Use a different one for each display where you need lefteqbox.
I also added how I would typeset the display.
documentclass{article}
usepackage{amsmath,eqparbox}
newcommand{lefteqbox}[2]{%
eqparbox[t]{#1}{$displaystyle#2$hfil}%
}
usepackage{showframe}
begin{document}
This is possibly what you want to achieve
begin{flalign*}
lefteqbox{A}{R_{1}} &= frac{wl}{2} \[1ex]
lefteqbox{A}{R_{2}} &= R_{1} \[1ex]
lefteqbox{A}{V_{x}} &= wleft(frac{l}{2}-xright) \[1ex]
lefteqbox{A}{V_{max}} &= R_{1}=R_{2}
& text{(at $R_{1}$ and $R_{2}$)} & \[1ex]
lefteqbox{A}{M_{max}} &= frac{wl^{2}}{8}
& text{(at centre)} &\[1ex]
lefteqbox{A}{M_{x}} &= frac{wx}{2}(l-x) \[1ex]
lefteqbox{A}{Delta_{max}} &= frac{5wl^{4}}{384EI} \[1ex]
lefteqbox{A}{Delta_{x}} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
& text{(at centre)} &
end{flalign*}
However, my opinion is that the following is better and clearer
begin{alignat*}{2}
R_{1} &= frac{wl}{2} \[1ex]
R_{2} &= R{_{1}} \[1ex]
V_{x} &= wleft(frac{l}{2}-xright) \[1ex]
V_{max} &= R_{1}=R_{2}
&qquad& text{(at $R_{1}$ and $R_{2}$)} \[1ex]
M_{max} &= frac{wl^{2}}{8}
&qquad& text{(at centre)} \[1ex]
M_{x} &= frac{wx}{2}(l-x) \[1ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[1ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
&qquad& text{(at centre)}
end{alignat*}
end{document}

A different realization exploiting tabular*:
documentclass{article}
usepackage{amsmath,array}
usepackage{showframe}
begin{document}
[
begin{tabular*}{displaywidth}{
@{}
>{$displaystyle}l<{$}
@{}
>{$displaystyle{}}l<{$}
@{extracolsep{fill}}
r
@{}
}
R_{1} &= frac{wl}{2} \[2ex]
R_{2} &= R_{1} \[2ex]
V_{x} &= wleft(frac{l}{2}-xright) \[2ex]
V_{max} &= R_{1}=R_{2} & (at $R_{1}$ and $R_{2}$) \[2ex]
M_{max} &= frac{wl^{2}}{8} & (at centre) \[2ex]
M_{x} &= frac{wx}{2}(l-x) \[2ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[2ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3}) & (at centre)
end{tabular*}
]
end{document}

This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
add a comment |
Some preliminary notes:
R{_{1}}is wrong and should beR_{1}(similarly for the other cases)- “max” in a subscript should be upright
parandvspaceare meaningless in a math display- the last line in a display should not end with
\
In the code below I used showframe just to show the page margins; don't use it yourself.
You can use the eqparbox environment. Each use should have a unique label, in this case A. Use a different one for each display where you need lefteqbox.
I also added how I would typeset the display.
documentclass{article}
usepackage{amsmath,eqparbox}
newcommand{lefteqbox}[2]{%
eqparbox[t]{#1}{$displaystyle#2$hfil}%
}
usepackage{showframe}
begin{document}
This is possibly what you want to achieve
begin{flalign*}
lefteqbox{A}{R_{1}} &= frac{wl}{2} \[1ex]
lefteqbox{A}{R_{2}} &= R_{1} \[1ex]
lefteqbox{A}{V_{x}} &= wleft(frac{l}{2}-xright) \[1ex]
lefteqbox{A}{V_{max}} &= R_{1}=R_{2}
& text{(at $R_{1}$ and $R_{2}$)} & \[1ex]
lefteqbox{A}{M_{max}} &= frac{wl^{2}}{8}
& text{(at centre)} &\[1ex]
lefteqbox{A}{M_{x}} &= frac{wx}{2}(l-x) \[1ex]
lefteqbox{A}{Delta_{max}} &= frac{5wl^{4}}{384EI} \[1ex]
lefteqbox{A}{Delta_{x}} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
& text{(at centre)} &
end{flalign*}
However, my opinion is that the following is better and clearer
begin{alignat*}{2}
R_{1} &= frac{wl}{2} \[1ex]
R_{2} &= R{_{1}} \[1ex]
V_{x} &= wleft(frac{l}{2}-xright) \[1ex]
V_{max} &= R_{1}=R_{2}
&qquad& text{(at $R_{1}$ and $R_{2}$)} \[1ex]
M_{max} &= frac{wl^{2}}{8}
&qquad& text{(at centre)} \[1ex]
M_{x} &= frac{wx}{2}(l-x) \[1ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[1ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
&qquad& text{(at centre)}
end{alignat*}
end{document}

A different realization exploiting tabular*:
documentclass{article}
usepackage{amsmath,array}
usepackage{showframe}
begin{document}
[
begin{tabular*}{displaywidth}{
@{}
>{$displaystyle}l<{$}
@{}
>{$displaystyle{}}l<{$}
@{extracolsep{fill}}
r
@{}
}
R_{1} &= frac{wl}{2} \[2ex]
R_{2} &= R_{1} \[2ex]
V_{x} &= wleft(frac{l}{2}-xright) \[2ex]
V_{max} &= R_{1}=R_{2} & (at $R_{1}$ and $R_{2}$) \[2ex]
M_{max} &= frac{wl^{2}}{8} & (at centre) \[2ex]
M_{x} &= frac{wx}{2}(l-x) \[2ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[2ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3}) & (at centre)
end{tabular*}
]
end{document}

This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
add a comment |
Some preliminary notes:
R{_{1}}is wrong and should beR_{1}(similarly for the other cases)- “max” in a subscript should be upright
parandvspaceare meaningless in a math display- the last line in a display should not end with
\
In the code below I used showframe just to show the page margins; don't use it yourself.
You can use the eqparbox environment. Each use should have a unique label, in this case A. Use a different one for each display where you need lefteqbox.
I also added how I would typeset the display.
documentclass{article}
usepackage{amsmath,eqparbox}
newcommand{lefteqbox}[2]{%
eqparbox[t]{#1}{$displaystyle#2$hfil}%
}
usepackage{showframe}
begin{document}
This is possibly what you want to achieve
begin{flalign*}
lefteqbox{A}{R_{1}} &= frac{wl}{2} \[1ex]
lefteqbox{A}{R_{2}} &= R_{1} \[1ex]
lefteqbox{A}{V_{x}} &= wleft(frac{l}{2}-xright) \[1ex]
lefteqbox{A}{V_{max}} &= R_{1}=R_{2}
& text{(at $R_{1}$ and $R_{2}$)} & \[1ex]
lefteqbox{A}{M_{max}} &= frac{wl^{2}}{8}
& text{(at centre)} &\[1ex]
lefteqbox{A}{M_{x}} &= frac{wx}{2}(l-x) \[1ex]
lefteqbox{A}{Delta_{max}} &= frac{5wl^{4}}{384EI} \[1ex]
lefteqbox{A}{Delta_{x}} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
& text{(at centre)} &
end{flalign*}
However, my opinion is that the following is better and clearer
begin{alignat*}{2}
R_{1} &= frac{wl}{2} \[1ex]
R_{2} &= R{_{1}} \[1ex]
V_{x} &= wleft(frac{l}{2}-xright) \[1ex]
V_{max} &= R_{1}=R_{2}
&qquad& text{(at $R_{1}$ and $R_{2}$)} \[1ex]
M_{max} &= frac{wl^{2}}{8}
&qquad& text{(at centre)} \[1ex]
M_{x} &= frac{wx}{2}(l-x) \[1ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[1ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
&qquad& text{(at centre)}
end{alignat*}
end{document}

A different realization exploiting tabular*:
documentclass{article}
usepackage{amsmath,array}
usepackage{showframe}
begin{document}
[
begin{tabular*}{displaywidth}{
@{}
>{$displaystyle}l<{$}
@{}
>{$displaystyle{}}l<{$}
@{extracolsep{fill}}
r
@{}
}
R_{1} &= frac{wl}{2} \[2ex]
R_{2} &= R_{1} \[2ex]
V_{x} &= wleft(frac{l}{2}-xright) \[2ex]
V_{max} &= R_{1}=R_{2} & (at $R_{1}$ and $R_{2}$) \[2ex]
M_{max} &= frac{wl^{2}}{8} & (at centre) \[2ex]
M_{x} &= frac{wx}{2}(l-x) \[2ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[2ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3}) & (at centre)
end{tabular*}
]
end{document}

Some preliminary notes:
R{_{1}}is wrong and should beR_{1}(similarly for the other cases)- “max” in a subscript should be upright
parandvspaceare meaningless in a math display- the last line in a display should not end with
\
In the code below I used showframe just to show the page margins; don't use it yourself.
You can use the eqparbox environment. Each use should have a unique label, in this case A. Use a different one for each display where you need lefteqbox.
I also added how I would typeset the display.
documentclass{article}
usepackage{amsmath,eqparbox}
newcommand{lefteqbox}[2]{%
eqparbox[t]{#1}{$displaystyle#2$hfil}%
}
usepackage{showframe}
begin{document}
This is possibly what you want to achieve
begin{flalign*}
lefteqbox{A}{R_{1}} &= frac{wl}{2} \[1ex]
lefteqbox{A}{R_{2}} &= R_{1} \[1ex]
lefteqbox{A}{V_{x}} &= wleft(frac{l}{2}-xright) \[1ex]
lefteqbox{A}{V_{max}} &= R_{1}=R_{2}
& text{(at $R_{1}$ and $R_{2}$)} & \[1ex]
lefteqbox{A}{M_{max}} &= frac{wl^{2}}{8}
& text{(at centre)} &\[1ex]
lefteqbox{A}{M_{x}} &= frac{wx}{2}(l-x) \[1ex]
lefteqbox{A}{Delta_{max}} &= frac{5wl^{4}}{384EI} \[1ex]
lefteqbox{A}{Delta_{x}} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
& text{(at centre)} &
end{flalign*}
However, my opinion is that the following is better and clearer
begin{alignat*}{2}
R_{1} &= frac{wl}{2} \[1ex]
R_{2} &= R{_{1}} \[1ex]
V_{x} &= wleft(frac{l}{2}-xright) \[1ex]
V_{max} &= R_{1}=R_{2}
&qquad& text{(at $R_{1}$ and $R_{2}$)} \[1ex]
M_{max} &= frac{wl^{2}}{8}
&qquad& text{(at centre)} \[1ex]
M_{x} &= frac{wx}{2}(l-x) \[1ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[1ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3})
&qquad& text{(at centre)}
end{alignat*}
end{document}

A different realization exploiting tabular*:
documentclass{article}
usepackage{amsmath,array}
usepackage{showframe}
begin{document}
[
begin{tabular*}{displaywidth}{
@{}
>{$displaystyle}l<{$}
@{}
>{$displaystyle{}}l<{$}
@{extracolsep{fill}}
r
@{}
}
R_{1} &= frac{wl}{2} \[2ex]
R_{2} &= R_{1} \[2ex]
V_{x} &= wleft(frac{l}{2}-xright) \[2ex]
V_{max} &= R_{1}=R_{2} & (at $R_{1}$ and $R_{2}$) \[2ex]
M_{max} &= frac{wl^{2}}{8} & (at centre) \[2ex]
M_{x} &= frac{wx}{2}(l-x) \[2ex]
Delta_{max} &= frac{5wl^{4}}{384EI} \[2ex]
Delta_{x} &= frac{wx}{24EI}(l^{3}-2lx^{2}+x^{3}) & (at centre)
end{tabular*}
]
end{document}

edited 2 hours ago
answered 2 hours ago
egregegreg
735k8919343258
735k8919343258
This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
add a comment |
This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
This is great, thank you for your comprehensive answer. I will consider your comments too
– Tokamec
2 hours ago
add a comment |
With the help or an array you can achieve the following layout:

documentclass{article}
usepackage{amsmath}
usepackage{array}
begin{document}
setlengthextrarowheight{10pt}
[
begin{array}{llr}
R{_{1}} &= dfrac{wl}{2} \
R{_{2}} &= R{_{1}} \
V{_{x}} &= wleft(dfrac{l}{2}-xright) \
V{_{max}} &= R{_{1}}=R{_{2}} & text{(at};R_{1};text{and};R_{2}text{)} \
M{_{max}}&=dfrac{wl^{2}}{8} & text{(at centre)}\
M{_{x}}&=dfrac{wx}{2}left(l-xright) \
Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & text{(at centre)}\
end{array}
]
end{document}
This looks perfect thanks!
– Tokamec
2 hours ago
note this still hasV{_{max}}copied from the question (wrong font and wrong_placement) also you could point out that you are needingdfrachere as unlike the ams alignmentsarrayis intended for matrices of values not displayed equations so sets the entries in inline math mode.
– David Carlisle
1 hour ago
add a comment |
With the help or an array you can achieve the following layout:

documentclass{article}
usepackage{amsmath}
usepackage{array}
begin{document}
setlengthextrarowheight{10pt}
[
begin{array}{llr}
R{_{1}} &= dfrac{wl}{2} \
R{_{2}} &= R{_{1}} \
V{_{x}} &= wleft(dfrac{l}{2}-xright) \
V{_{max}} &= R{_{1}}=R{_{2}} & text{(at};R_{1};text{and};R_{2}text{)} \
M{_{max}}&=dfrac{wl^{2}}{8} & text{(at centre)}\
M{_{x}}&=dfrac{wx}{2}left(l-xright) \
Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & text{(at centre)}\
end{array}
]
end{document}
This looks perfect thanks!
– Tokamec
2 hours ago
note this still hasV{_{max}}copied from the question (wrong font and wrong_placement) also you could point out that you are needingdfrachere as unlike the ams alignmentsarrayis intended for matrices of values not displayed equations so sets the entries in inline math mode.
– David Carlisle
1 hour ago
add a comment |
With the help or an array you can achieve the following layout:

documentclass{article}
usepackage{amsmath}
usepackage{array}
begin{document}
setlengthextrarowheight{10pt}
[
begin{array}{llr}
R{_{1}} &= dfrac{wl}{2} \
R{_{2}} &= R{_{1}} \
V{_{x}} &= wleft(dfrac{l}{2}-xright) \
V{_{max}} &= R{_{1}}=R{_{2}} & text{(at};R_{1};text{and};R_{2}text{)} \
M{_{max}}&=dfrac{wl^{2}}{8} & text{(at centre)}\
M{_{x}}&=dfrac{wx}{2}left(l-xright) \
Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & text{(at centre)}\
end{array}
]
end{document}
With the help or an array you can achieve the following layout:

documentclass{article}
usepackage{amsmath}
usepackage{array}
begin{document}
setlengthextrarowheight{10pt}
[
begin{array}{llr}
R{_{1}} &= dfrac{wl}{2} \
R{_{2}} &= R{_{1}} \
V{_{x}} &= wleft(dfrac{l}{2}-xright) \
V{_{max}} &= R{_{1}}=R{_{2}} & text{(at};R_{1};text{and};R_{2}text{)} \
M{_{max}}&=dfrac{wl^{2}}{8} & text{(at centre)}\
M{_{x}}&=dfrac{wx}{2}left(l-xright) \
Delta{_{max}}&=dfrac{5wl^{4}}{384EI} \
Delta{_{x}}&=dfrac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & text{(at centre)}\
end{array}
]
end{document}
answered 3 hours ago
leandriisleandriis
11.4k1733
11.4k1733
This looks perfect thanks!
– Tokamec
2 hours ago
note this still hasV{_{max}}copied from the question (wrong font and wrong_placement) also you could point out that you are needingdfrachere as unlike the ams alignmentsarrayis intended for matrices of values not displayed equations so sets the entries in inline math mode.
– David Carlisle
1 hour ago
add a comment |
This looks perfect thanks!
– Tokamec
2 hours ago
note this still hasV{_{max}}copied from the question (wrong font and wrong_placement) also you could point out that you are needingdfrachere as unlike the ams alignmentsarrayis intended for matrices of values not displayed equations so sets the entries in inline math mode.
– David Carlisle
1 hour ago
This looks perfect thanks!
– Tokamec
2 hours ago
This looks perfect thanks!
– Tokamec
2 hours ago
note this still has
V{_{max}} copied from the question (wrong font and wrong _ placement) also you could point out that you are needing dfrac here as unlike the ams alignments array is intended for matrices of values not displayed equations so sets the entries in inline math mode.– David Carlisle
1 hour ago
note this still has
V{_{max}} copied from the question (wrong font and wrong _ placement) also you could point out that you are needing dfrac here as unlike the ams alignments array is intended for matrices of values not displayed equations so sets the entries in inline math mode.– David Carlisle
1 hour ago
add a comment |
With flalign* and package eqparbox:
documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
usepackage{eqparbox}
newcommand{eqmathbox}[2][M] {eqmakebox[#1][l]{$displaystyle #2$}}
begin{document}
begin{flalign*}
eqmathbox{R{_{1}}} &= frac{wl}{2} \[1ex]
eqmathbox{R{_{2}}} &= R{_{1}}\[1ex]
eqmathbox{V{_{x}}} &= wleft(frac{l}{2}-xright)\[1ex]
eqmathbox{V{_{max}}} &= R{_{1}}=R{_{2}} & & & text{(at};R_{1} text{ and } R_{2}text{)}\[1ex]
eqmathbox{M{_{max}}}&=frac{wl^{2}}{8} & & & text{(at centre)}\[1ex]
eqmathbox{M{_{x}}}&=frac{wx}{2}left(l-xright)\[1ex]
eqmathbox{Delta{_{max}}}&=frac{5wl^{4}}{384EI}\[1ex]
eqmathbox{Delta{_{x}}}&=frac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & & & text{(at centre)}
end{flalign*}
end{document}

Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 hours ago
add a comment |
With flalign* and package eqparbox:
documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
usepackage{eqparbox}
newcommand{eqmathbox}[2][M] {eqmakebox[#1][l]{$displaystyle #2$}}
begin{document}
begin{flalign*}
eqmathbox{R{_{1}}} &= frac{wl}{2} \[1ex]
eqmathbox{R{_{2}}} &= R{_{1}}\[1ex]
eqmathbox{V{_{x}}} &= wleft(frac{l}{2}-xright)\[1ex]
eqmathbox{V{_{max}}} &= R{_{1}}=R{_{2}} & & & text{(at};R_{1} text{ and } R_{2}text{)}\[1ex]
eqmathbox{M{_{max}}}&=frac{wl^{2}}{8} & & & text{(at centre)}\[1ex]
eqmathbox{M{_{x}}}&=frac{wx}{2}left(l-xright)\[1ex]
eqmathbox{Delta{_{max}}}&=frac{5wl^{4}}{384EI}\[1ex]
eqmathbox{Delta{_{x}}}&=frac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & & & text{(at centre)}
end{flalign*}
end{document}

Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 hours ago
add a comment |
With flalign* and package eqparbox:
documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
usepackage{eqparbox}
newcommand{eqmathbox}[2][M] {eqmakebox[#1][l]{$displaystyle #2$}}
begin{document}
begin{flalign*}
eqmathbox{R{_{1}}} &= frac{wl}{2} \[1ex]
eqmathbox{R{_{2}}} &= R{_{1}}\[1ex]
eqmathbox{V{_{x}}} &= wleft(frac{l}{2}-xright)\[1ex]
eqmathbox{V{_{max}}} &= R{_{1}}=R{_{2}} & & & text{(at};R_{1} text{ and } R_{2}text{)}\[1ex]
eqmathbox{M{_{max}}}&=frac{wl^{2}}{8} & & & text{(at centre)}\[1ex]
eqmathbox{M{_{x}}}&=frac{wx}{2}left(l-xright)\[1ex]
eqmathbox{Delta{_{max}}}&=frac{5wl^{4}}{384EI}\[1ex]
eqmathbox{Delta{_{x}}}&=frac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & & & text{(at centre)}
end{flalign*}
end{document}

With flalign* and package eqparbox:
documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
usepackage{eqparbox}
newcommand{eqmathbox}[2][M] {eqmakebox[#1][l]{$displaystyle #2$}}
begin{document}
begin{flalign*}
eqmathbox{R{_{1}}} &= frac{wl}{2} \[1ex]
eqmathbox{R{_{2}}} &= R{_{1}}\[1ex]
eqmathbox{V{_{x}}} &= wleft(frac{l}{2}-xright)\[1ex]
eqmathbox{V{_{max}}} &= R{_{1}}=R{_{2}} & & & text{(at};R_{1} text{ and } R_{2}text{)}\[1ex]
eqmathbox{M{_{max}}}&=frac{wl^{2}}{8} & & & text{(at centre)}\[1ex]
eqmathbox{M{_{x}}}&=frac{wx}{2}left(l-xright)\[1ex]
eqmathbox{Delta{_{max}}}&=frac{5wl^{4}}{384EI}\[1ex]
eqmathbox{Delta{_{x}}}&=frac{wx}{24EI}left(l^{3}-2lx^{2}+x^{3}right) & & & text{(at centre)}
end{flalign*}
end{document}

answered 2 hours ago
BernardBernard
176k778210
176k778210
Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 hours ago
add a comment |
Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 hours ago
Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 hours ago
Hi, another great answer, thanks - there seem to be multiple ways to do this
– Tokamec
2 hours ago
add a comment |
Tokamec is a new contributor. Be nice, and check out our Code of Conduct.
Tokamec is a new contributor. Be nice, and check out our Code of Conduct.
Tokamec is a new contributor. Be nice, and check out our Code of Conduct.
Tokamec 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%2f485574%2faligning-an-equation-at-multiple-points-with-both-left-and-right-alignment-as%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
Hi, I think I have done that now, cheers
– Tokamec
2 hours ago