Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem centering equations #144

Open
e-tornike opened this issue Nov 20, 2021 · 4 comments
Open

Problem centering equations #144

e-tornike opened this issue Nov 20, 2021 · 4 comments

Comments

@e-tornike
Copy link

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!

@Vogel612
Copy link
Collaborator

@e-tornike
Copy link
Author

e-tornike commented Nov 21, 2021

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

@koppor
Copy link
Member

koppor commented Nov 23, 2021

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

@e-tornike
Copy link
Author

e-tornike commented Nov 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants