How to Align Text to the Left Using the Aligned Environment

  • Context:
  • Thread starter Thread starter bwpbruce
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 4K views
bwpbruce
Messages
60
Reaction score
1
If I use the align command, my text is usually either indented or centered by default. What do I need to do in order for my text to align left. I prefer if someone demonstrate how to do it.\begin{align*}\dfrac{a}{t} - \dfrac{b}{t}&=\dfrac{1}{t}(a) - \dfrac{1}{t}(b) \\&=\dfrac{1}{t}(a - b) \\&=\dfrac{1}{t} \dot\ \dfrac{a - b}{1} \\&=\dfrac{a - b}{t}\end{align*}
 
Last edited:
Physics news on Phys.org
I wouldn't put the word "Subtract" inside the align environment. It's text, and there doesn't seem to be a reason to put it inside the math environment. If you want to force it not to indent, you can use the
Code:
\noindent
command.
 
bwpbruce said:
If I use the align command, my text is usually either indented or centered by default. What do I need to do in order for my text to align left. I prefer if someone demonstrate how to do it.
Indented and aligned left are not mutually exclusive. Are you talking about LaTeX in MHB or about compiling complete files using your LaTeX installation? Can you explain exactly what behavior you want? What is the purpose of your example?
 
Ackbach said:
I wouldn't put the word "Subtract" inside the align environment. It's text, and there doesn't seem to be a reason to put it inside the math environment. If you want to force it not to indent, you can use the
Code:
\noindent
command.

The no indent command doesn't seem to work well in conjunction with the align command.

- - - Updated - - -

Evgeny.Makarov said:
Indented and aligned left are not mutually exclusive. Are you talking about LaTeX in MHB or about compiling complete files using your LaTeX installation? Can you explain exactly what behavior you want? What is the purpose of your example?

If you can show me a way to post the text so that it is not indented but still align the equal signs, then that's what I want to be able to do.
 
The environment [m]aligned[/m] is similar to [m]align[/m], but it does not take the whole line width and can be used as a subformula inside math mode. So if you wrap [m]aligned[/m] in dollar signs and make it a start of a paragraph, then it should have no indent.

$\begin{aligned}\dfrac{a}{t} - \dfrac{b}{t}&=\dfrac{1}{t}(a) - \dfrac{1}{t}(b) \\&=\dfrac{1}{t}(a - b) \\&=\dfrac{1}{t} \dot\ \dfrac{a - b}{1} \\&=\dfrac{a - b}{t}\end{aligned}$