Hello all,
I'm looking to specify how far my equations are indented from the left margin (1 cm). Currently all equations are centred. Does anyone know of a way to change this behaviour?
Regards,
IceIV
General ⇒ Equation indentation
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Equation indentation
Hi IceIV,
welcome to the forum!
You could set the fleqn option to the document class and specify \mathindent, have a look at this small compilable example:
Stefan
welcome to the forum!
You could set the fleqn option to the document class and specify \mathindent, have a look at this small compilable example:
Code: Select all
\documentclass[a4paper,10pt,fleqn]{article}
\usepackage{amsmath}
\setlength{\mathindent}{1cm}
\begin{document}
\noindent Text
\begin{equation*}
y = ax + b
\end{equation*}
\end{document}
LaTeX.org admin
Equation indentation
Perfect! I'd actually tried
Thanks Stefan_K.
\setlength{\mathindent}{1cm}
previously but didn't have the fleqn
option set.Thanks Stefan_K.
Last edited by cgnieder on Thu Oct 24, 2013 9:30 pm, edited 1 time in total.
Equation indentation
I used this command "
Is there a separate command for this?
Thank you in advance...
\setlength{\mathindent}{1cm}
" for "{eqnarray}
", but it didn't work.Is there a separate command for this?
Thank you in advance...
Last edited by cgnieder on Thu Oct 24, 2013 9:31 pm, edited 1 time in total.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Equation indentation
Would you be able to prepare a minimal working example to explicitely show the behaviour?
Btw:
Best regards
Johannes
Btw:
eqnarray
is deprecated, use align or something similar instead. Read eqnarray vs. align for more information.Best regards
Johannes
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
-
- Posts: 1
- Joined: Wed Oct 12, 2016 7:39 pm
Re: Equation indentation
Thanks Stefan Kottwitz, it worked 
