Math & ScienceEquations on the left

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
Singularity
Posts: 156
Joined: Sat Jan 22, 2011 9:55 pm

Equations on the left

Post by Singularity »

I have the option "fleqn", but when I use double dollar sign to make an equation, it's centered.

How can I get the double dollar sign to print the equation to the left, but indented maybe half an inch?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Equations on the left

Post by Stefan Kottwitz »

That's because fleqn is a LaTeX option.

But $$ ... $$ is low level TeX. This doesn't know LaTeX options and so doesn't respect them. That's a good example, where low level TeX commands are dangerous, and high level LaTeX pendant commands should be used.

Here, the LaTeX shortcut for displayed equations is this:

Code: Select all

\[
    y = f(x) % sample
\]
It aligns to the left, with fleqn, with a small indentation, as desired.

Stefan
LaTeX.org admin
Post Reply