scientific-thesis-template icon indicating copy to clipboard operation
scientific-thesis-template copied to clipboard

Problem centering equations

Open e-tornike opened this issue 3 years ago • 4 comments

Hi there,

I'm currently having trouble centering equations, which get aligned to the left:

\begin{equation}
    a = b
\end{equation}

\begin{align}
    a = b
\end{align}

I was not able to find the right configuration to change/adjust in config.tex and would appreciate any pointers.

Cheers!

e-tornike avatar Nov 20 '21 10:11 e-tornike

Hi @Vogel612,

yes, I've tried it, but no luck. All commands work fine in a normal .tex document, but I assume there's some configuration mismatch that's aligning equations to the left in the template.

Using a clean template (release 3.0.0), the outputs of gather and align look like this:

image

e-tornike avatar Nov 21 '21 21:11 e-tornike

@e-tornike I assume the latest main branch also has these issues?

koppor avatar Nov 23 '21 19:11 koppor

It seems to have to do with the fleqn package option, which "Position[s] equations at a fixed indent from the left margin rather than centered in the text column" [1], I simply removed it.

I changed \PassOptionsToPackage{fleqn,leqno}{amsmath} to \PassOptionsToPackage{leqno}{amsmath} in config.tex.

@koppor The fleqn option is also active on the main branch.

[1] http://www.pvv.ntnu.no/~berland/latex/docs/amsldoc.pdf

e-tornike avatar Nov 23 '21 19:11 e-tornike