How to align my equation to left?How to left align the element when usig begin align, not the whole equation?Aligning equations with left and right commentLeft align 3 different equationsHow to add comments in align environmentLeft align three columns in LatexAlign math to the leftProblem to left align within a splitAlign a running list of expressions to the leftLeft aligning a align* with spacing?How can I align this equation in the center?
Can you lasso down a wizard who is using the Levitate spell?
A Journey Through Space and Time
Japan - Any leeway for max visa duration due to unforeseen circumstances?
Chess with symmetric move-square
Is there really no realistic way for a skeleton monster to move around without magic?
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
How to type dʒ symbol (IPA) on Mac?
"which" command doesn't work / path of Safari?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
declaring a variable twice in IIFE
Prevent a directory in /tmp from being deleted
Should I join an office cleaning event for free?
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
Why are 150k or 200k jobs considered good when there are 300k+ births a month?
What does "enim et" mean?
least quadratic residue under GRH: an EXPLICIT bound
Why was the small council so happy for Tyrion to become the Master of Coin?
How do I create uniquely male characters?
Example of a relative pronoun
Is Social Media Science Fiction?
N.B. ligature in Latex
Extreme, but not acceptable situation and I can't start the work tomorrow morning
Why don't electron-positron collisions release infinite energy?
How to align my equation to left?
How to left align the element when usig begin align, not the whole equation?Aligning equations with left and right commentLeft align 3 different equationsHow to add comments in align environmentLeft align three columns in LatexAlign math to the leftProblem to left align within a splitAlign a running list of expressions to the leftLeft aligning a align* with spacing?How can I align this equation in the center?
I want to display four equations which have different length. I want they align left like this.
But my code give this
The following are my code:
$$beginaligned p(a) &=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a) \
&=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12
endaligned$$
$$beginaligned p(b) &=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b) \
&=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14 endaligned$$
$$beginaligned p(c) &=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c) \
&=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18 endaligned$$
$$beginaligned p(d) &=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d) \
&=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13 endaligned$$
Can anyone tell me what I can do?
math-mode align
add a comment |
I want to display four equations which have different length. I want they align left like this.
But my code give this
The following are my code:
$$beginaligned p(a) &=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a) \
&=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12
endaligned$$
$$beginaligned p(b) &=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b) \
&=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14 endaligned$$
$$beginaligned p(c) &=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c) \
&=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18 endaligned$$
$$beginaligned p(d) &=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d) \
&=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13 endaligned$$
Can anyone tell me what I can do?
math-mode align
never use$$
in latex, use[
and then thefleqn
option will left align equations.
– David Carlisle
Mar 22 at 8:45
add a comment |
I want to display four equations which have different length. I want they align left like this.
But my code give this
The following are my code:
$$beginaligned p(a) &=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a) \
&=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12
endaligned$$
$$beginaligned p(b) &=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b) \
&=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14 endaligned$$
$$beginaligned p(c) &=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c) \
&=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18 endaligned$$
$$beginaligned p(d) &=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d) \
&=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13 endaligned$$
Can anyone tell me what I can do?
math-mode align
I want to display four equations which have different length. I want they align left like this.
But my code give this
The following are my code:
$$beginaligned p(a) &=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a) \
&=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12
endaligned$$
$$beginaligned p(b) &=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b) \
&=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14 endaligned$$
$$beginaligned p(c) &=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c) \
&=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18 endaligned$$
$$beginaligned p(d) &=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d) \
&=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13 endaligned$$
Can anyone tell me what I can do?
math-mode align
math-mode align
edited Mar 22 at 8:44
JouleV
11.4k22561
11.4k22561
asked Mar 22 at 8:39
cholechole
411
411
never use$$
in latex, use[
and then thefleqn
option will left align equations.
– David Carlisle
Mar 22 at 8:45
add a comment |
never use$$
in latex, use[
and then thefleqn
option will left align equations.
– David Carlisle
Mar 22 at 8:45
never use
$$
in latex, use [
and then the fleqn
option will left align equations.– David Carlisle
Mar 22 at 8:45
never use
$$
in latex, use [
and then the fleqn
option will left align equations.– David Carlisle
Mar 22 at 8:45
add a comment |
2 Answers
2
active
oldest
votes
Here is a proposal
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&;=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&;=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&;=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&;=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13
endalign*
enddocument
Why do you use scriptstyle
? It is very hard to read the fractions! Use tfrac
instead!
You should remove ;
in the &;={scriptstyle...
lines to align the =
s. I prefer that way.
I strongly recommend this one
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&=tfrac12 tfrac23+tfrac14 tfrac13+tfrac13+tfrac13=tfrac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&=tfrac12 tfrac16+tfrac14 tfrac12+tfrac13 tfrac13=tfrac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&=tfrac12 tfrac112+tfrac14 tfrac16+tfrac18 0+tfrac18=tfrac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&=tfrac12 tfrac112+tfrac18 tfrac13+tfrac18 tfrac13=tfrac13
endalign*
enddocument
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
1
@chole Then you should usetfrac
instead ofscriptstylefrac
.
– JouleV
Mar 22 at 8:58
2
+1 for recommendingtfrac
in place ofscriptstylefrac
.
– Mico
Mar 22 at 9:00
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
1
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using$$
but If I had answered I would also have suggestedalign*
rather than[beginaligned
:-)
– David Carlisle
Mar 22 at 9:08
|
show 1 more comment
I propose this layout, using the fleqn
environment and, as in my opinion, medium sized fractions will look best, I also use the medmath
and mfrac
commands, each from nccmath
:
documentclassarticle
usepackageamsmath, nccmath
begindocument
beginfleqn
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&quad= medmathfrac12cdot frac23+frac14cdot frac13+frac13+frac13=mfrac12 \[1ex]
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&quad= medmathfrac12cdot frac16+frac14cdot frac12+frac13cdot frac13=mfrac14 \[1ex]
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&quad= medmathfrac12cdot frac112+frac14cdot frac16+frac18,0 + frac18=mfrac18 \[1ex]
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&quad= medmathfrac12cdot frac112+frac18cdot frac13+frac18cdot frac13=mfrac13
endalign*
endfleqn
enddocument
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%2f480865%2fhow-to-align-my-equation-to-left%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
Here is a proposal
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&;=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&;=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&;=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&;=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13
endalign*
enddocument
Why do you use scriptstyle
? It is very hard to read the fractions! Use tfrac
instead!
You should remove ;
in the &;={scriptstyle...
lines to align the =
s. I prefer that way.
I strongly recommend this one
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&=tfrac12 tfrac23+tfrac14 tfrac13+tfrac13+tfrac13=tfrac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&=tfrac12 tfrac16+tfrac14 tfrac12+tfrac13 tfrac13=tfrac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&=tfrac12 tfrac112+tfrac14 tfrac16+tfrac18 0+tfrac18=tfrac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&=tfrac12 tfrac112+tfrac18 tfrac13+tfrac18 tfrac13=tfrac13
endalign*
enddocument
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
1
@chole Then you should usetfrac
instead ofscriptstylefrac
.
– JouleV
Mar 22 at 8:58
2
+1 for recommendingtfrac
in place ofscriptstylefrac
.
– Mico
Mar 22 at 9:00
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
1
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using$$
but If I had answered I would also have suggestedalign*
rather than[beginaligned
:-)
– David Carlisle
Mar 22 at 9:08
|
show 1 more comment
Here is a proposal
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&;=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&;=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&;=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&;=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13
endalign*
enddocument
Why do you use scriptstyle
? It is very hard to read the fractions! Use tfrac
instead!
You should remove ;
in the &;={scriptstyle...
lines to align the =
s. I prefer that way.
I strongly recommend this one
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&=tfrac12 tfrac23+tfrac14 tfrac13+tfrac13+tfrac13=tfrac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&=tfrac12 tfrac16+tfrac14 tfrac12+tfrac13 tfrac13=tfrac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&=tfrac12 tfrac112+tfrac14 tfrac16+tfrac18 0+tfrac18=tfrac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&=tfrac12 tfrac112+tfrac18 tfrac13+tfrac18 tfrac13=tfrac13
endalign*
enddocument
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
1
@chole Then you should usetfrac
instead ofscriptstylefrac
.
– JouleV
Mar 22 at 8:58
2
+1 for recommendingtfrac
in place ofscriptstylefrac
.
– Mico
Mar 22 at 9:00
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
1
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using$$
but If I had answered I would also have suggestedalign*
rather than[beginaligned
:-)
– David Carlisle
Mar 22 at 9:08
|
show 1 more comment
Here is a proposal
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&;=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&;=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&;=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&;=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13
endalign*
enddocument
Why do you use scriptstyle
? It is very hard to read the fractions! Use tfrac
instead!
You should remove ;
in the &;={scriptstyle...
lines to align the =
s. I prefer that way.
I strongly recommend this one
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&=tfrac12 tfrac23+tfrac14 tfrac13+tfrac13+tfrac13=tfrac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&=tfrac12 tfrac16+tfrac14 tfrac12+tfrac13 tfrac13=tfrac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&=tfrac12 tfrac112+tfrac14 tfrac16+tfrac18 0+tfrac18=tfrac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&=tfrac12 tfrac112+tfrac18 tfrac13+tfrac18 tfrac13=tfrac13
endalign*
enddocument
Here is a proposal
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&;=scriptstyle frac12 frac23+frac14 frac13+frac13+frac13=frac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&;=scriptstylefrac12 frac16+frac14 frac12+frac13 frac13=frac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&;=scriptstylefrac12 frac112+frac14 frac16+frac18 0+frac18=frac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&;=scriptstylefrac12 frac112+frac18 frac13+frac18 frac13=frac13
endalign*
enddocument
Why do you use scriptstyle
? It is very hard to read the fractions! Use tfrac
instead!
You should remove ;
in the &;={scriptstyle...
lines to align the =
s. I prefer that way.
I strongly recommend this one
documentclassarticle
usepackageamsmath
begindocument
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&=tfrac12 tfrac23+tfrac14 tfrac13+tfrac13+tfrac13=tfrac12\
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&=tfrac12 tfrac16+tfrac14 tfrac12+tfrac13 tfrac13=tfrac14\
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&=tfrac12 tfrac112+tfrac14 tfrac16+tfrac18 0+tfrac18=tfrac18\
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&=tfrac12 tfrac112+tfrac18 tfrac13+tfrac18 tfrac13=tfrac13
endalign*
enddocument
edited Mar 22 at 8:59
answered Mar 22 at 8:49
JouleVJouleV
11.4k22561
11.4k22561
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
1
@chole Then you should usetfrac
instead ofscriptstylefrac
.
– JouleV
Mar 22 at 8:58
2
+1 for recommendingtfrac
in place ofscriptstylefrac
.
– Mico
Mar 22 at 9:00
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
1
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using$$
but If I had answered I would also have suggestedalign*
rather than[beginaligned
:-)
– David Carlisle
Mar 22 at 9:08
|
show 1 more comment
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
1
@chole Then you should usetfrac
instead ofscriptstylefrac
.
– JouleV
Mar 22 at 8:58
2
+1 for recommendingtfrac
in place ofscriptstylefrac
.
– Mico
Mar 22 at 9:00
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
1
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using$$
but If I had answered I would also have suggestedalign*
rather than[beginaligned
:-)
– David Carlisle
Mar 22 at 9:08
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
Thank you very much. I use 'scriptstyle' because I want the second line of the equation to be small.
– chole
Mar 22 at 8:55
1
1
@chole Then you should use
tfrac
instead of scriptstylefrac
.– JouleV
Mar 22 at 8:58
@chole Then you should use
tfrac
instead of scriptstylefrac
.– JouleV
Mar 22 at 8:58
2
2
+1 for recommending
tfrac
in place of scriptstylefrac
.– Mico
Mar 22 at 9:00
+1 for recommending
tfrac
in place of scriptstylefrac
.– Mico
Mar 22 at 9:00
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
@chole If my answer helps you, please mark your question as resolved by clicking the checkmark on the left of my answer.
– JouleV
Mar 22 at 9:02
1
1
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using
$$
but If I had answered I would also have suggested align*
rather than [beginaligned
:-)– David Carlisle
Mar 22 at 9:08
+1 yes as I commented under the question the direct answer why there was no left alignment was due to using
$$
but If I had answered I would also have suggested align*
rather than [beginaligned
:-)– David Carlisle
Mar 22 at 9:08
|
show 1 more comment
I propose this layout, using the fleqn
environment and, as in my opinion, medium sized fractions will look best, I also use the medmath
and mfrac
commands, each from nccmath
:
documentclassarticle
usepackageamsmath, nccmath
begindocument
beginfleqn
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&quad= medmathfrac12cdot frac23+frac14cdot frac13+frac13+frac13=mfrac12 \[1ex]
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&quad= medmathfrac12cdot frac16+frac14cdot frac12+frac13cdot frac13=mfrac14 \[1ex]
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&quad= medmathfrac12cdot frac112+frac14cdot frac16+frac18,0 + frac18=mfrac18 \[1ex]
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&quad= medmathfrac12cdot frac112+frac18cdot frac13+frac18cdot frac13=mfrac13
endalign*
endfleqn
enddocument
add a comment |
I propose this layout, using the fleqn
environment and, as in my opinion, medium sized fractions will look best, I also use the medmath
and mfrac
commands, each from nccmath
:
documentclassarticle
usepackageamsmath, nccmath
begindocument
beginfleqn
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&quad= medmathfrac12cdot frac23+frac14cdot frac13+frac13+frac13=mfrac12 \[1ex]
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&quad= medmathfrac12cdot frac16+frac14cdot frac12+frac13cdot frac13=mfrac14 \[1ex]
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&quad= medmathfrac12cdot frac112+frac14cdot frac16+frac18,0 + frac18=mfrac18 \[1ex]
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&quad= medmathfrac12cdot frac112+frac18cdot frac13+frac18cdot frac13=mfrac13
endalign*
endfleqn
enddocument
add a comment |
I propose this layout, using the fleqn
environment and, as in my opinion, medium sized fractions will look best, I also use the medmath
and mfrac
commands, each from nccmath
:
documentclassarticle
usepackageamsmath, nccmath
begindocument
beginfleqn
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&quad= medmathfrac12cdot frac23+frac14cdot frac13+frac13+frac13=mfrac12 \[1ex]
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&quad= medmathfrac12cdot frac16+frac14cdot frac12+frac13cdot frac13=mfrac14 \[1ex]
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&quad= medmathfrac12cdot frac112+frac14cdot frac16+frac18,0 + frac18=mfrac18 \[1ex]
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&quad= medmathfrac12cdot frac112+frac18cdot frac13+frac18cdot frac13=mfrac13
endalign*
endfleqn
enddocument
I propose this layout, using the fleqn
environment and, as in my opinion, medium sized fractions will look best, I also use the medmath
and mfrac
commands, each from nccmath
:
documentclassarticle
usepackageamsmath, nccmath
begindocument
beginfleqn
beginalign*
p(a)&=p(a) p(a rightarrow a)+p(b) p(b rightarrow a)+p(c) p(c rightarrow a)+p(d) p(d rightarrow a)\
&quad= medmathfrac12cdot frac23+frac14cdot frac13+frac13+frac13=mfrac12 \[1ex]
p(b)&=p(a) p(a rightarrow b)+p(b) p(b rightarrow b)+p(c) p(c rightarrow b)\
&quad= medmathfrac12cdot frac16+frac14cdot frac12+frac13cdot frac13=mfrac14 \[1ex]
p(c)&=p(a) p(a rightarrow c)+p(b) p(b rightarrow c)+p(c) p(c rightarrow c)+p(d) p(d rightarrow c)\
&quad= medmathfrac12cdot frac112+frac14cdot frac16+frac18,0 + frac18=mfrac18 \[1ex]
p(d)&=p(a) p(a rightarrow d)+p(c) p(c rightarrow d)+p(d) p(d rightarrow d)\
&quad= medmathfrac12cdot frac112+frac18cdot frac13+frac18cdot frac13=mfrac13
endalign*
endfleqn
enddocument
edited Mar 22 at 10:50
answered Mar 22 at 10:12
BernardBernard
175k778208
175k778208
add a comment |
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%2f480865%2fhow-to-align-my-equation-to-left%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
never use
$$
in latex, use[
and then thefleqn
option will left align equations.– David Carlisle
Mar 22 at 8:45