General ⇒ Equation indentation
Equation indentation
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
Equation indentation
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}
Equation indentation
\setlength{\mathindent}{1cm}
previously but didn't have the fleqn
option set.Thanks Stefan_K.
Equation indentation
\setlength{\mathindent}{1cm}
" for "{eqnarray}
", but it didn't work.Is there a separate command for this?
Thank you in advance...
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Equation indentation
Btw:
eqnarray
is deprecated, use align or something similar instead. Read eqnarray vs. align for more information.Best regards
Johannes
-
- Posts: 1
- Joined: Wed Oct 12, 2016 7:39 pm
Re: Equation indentation
