GeneralEquation indentation

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
IceIV
Posts: 2
Joined: Tue Jul 08, 2008 1:36 pm

Equation indentation

Post by IceIV »

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

Recommended reading 2024:

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

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

Post by Stefan Kottwitz »

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:

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}
Stefan
LaTeX.org admin
IceIV
Posts: 2
Joined: Tue Jul 08, 2008 1:36 pm

Equation indentation

Post by IceIV »

Perfect! I'd actually tried \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.
sigmaa
Posts: 1
Joined: Tue Oct 22, 2013 10:15 pm

Equation indentation

Post by sigmaa »

I used this command "\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.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Equation indentation

Post by Johannes_B »

Would you be able to prepare a minimal working example to explicitely show the behaviour?

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.
yildizaykut
Posts: 1
Joined: Wed Oct 12, 2016 7:39 pm

Re: Equation indentation

Post by yildizaykut »

Thanks Stefan Kottwitz, it worked ;)
Post Reply