I got a weird phenomenon as shown in the picture below. The equation numbering is indented.
I tried the same thing in a fresh document and it produces the result I am looking for. For the other one, I wrap the align environment in a custom environment which inserts a glossary but does not tinker with any lengths. I was thinking of just setting the length which governs the left indent to a negative value. I just couldn't find its name.
% Working MWE
\documentclass[leqno]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{lipsum}
\setlength{\parindent}{0pt} %globales \noindent
\begin{document}
\section{Test test test}
\lipsum[1]
\begin{align}
f_{h,rech} = \frac{f_{h,prim}}{\eta_h}
\end{align}
\lipsum[1]
\end{document}
Custom environment definition is this:
\newenvironment{alignglos}%
{\stepcounter{alignglos}%
\renewcommand{\sym}[2][]{\glsadd[##1]{sym2:##2}\gls*[##1]{sym:##2}}%
}%
{%
\noindent
\glstocfalse
\renewcommand{\glossarysection}[2][]{}%
\vspace{-3em}
\printglossary[type=symbols2,style=alignglos]
\vspace{-2em}
}
I tried two things to solve this:
1.) Applied solution from this thread: Left numbered equation inside list environment
2.) \setlength{\mathindent}{0pt}
Update 1: Indentation happens also outside my custom environment.
Update 2: The indented length equals exactly to \parindent which I have set to zero (\setlength\parindent{0pt})
Update 3: Something I've overlooked. I'm using the \appendix command. Only happens after I used it. Before that everything is fine.
\vspace{-3em}%. – lockstep May 24 '13 at 07:57leqno– Sensei May 25 '13 at 12:25