How to Align Text to the Left Using the Aligned Environment

  • Context: MHB 
  • Thread starter Thread starter bwpbruce
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on aligning text to the left using the LaTeX aligned environment. Users express challenges with the default behavior of the align command, which typically results in indented or centered text. The solution involves using the \noindent command in conjunction with the aligned environment, which allows for left alignment without indentation while maintaining the alignment of equal signs. The aligned environment is recommended for subformulas within math mode to achieve the desired formatting.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of the align and aligned environments
  • Knowledge of mathematical formatting in LaTeX
  • Basic command usage in LaTeX, including \noindent
NEXT STEPS
  • Explore the differences between the align and aligned environments in LaTeX
  • Learn how to use the \noindent command effectively in various contexts
  • Investigate additional LaTeX commands for text alignment
  • Practice creating complex mathematical documents using LaTeX
USEFUL FOR

LaTeX users, mathematicians, educators, and anyone involved in typesetting mathematical documents who seeks to improve text alignment and formatting techniques.

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}$
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
23
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
13
Views
1K
Replies
8
Views
1K
Replies
2
Views
2K
  • · Replies 49 ·
2
Replies
49
Views
4K