For some reason LyX adds \PassOptionsToPackage{fleqn}{amsmath}
to the preamble when the amsmath package is loaded. It should be enough to add \@fleqnfalse
to Document Settings → LaTeX preamble in LyX to undo the fleqn option.
AMS breaks equation positioning
Steps to produce the issue:
Performing the following in LyX:
- Produce the pdf of Chapter 3. All the equations should be centered in the page
- Place the cursor below the first equation in Chapter 3
- Insert > Math > AMS * Environment (any AMS environment)
- Produce the pdf. All the equations become aligned to the left of the page
Alternate Method:
- Produce the pdf of Chapter 3. All the equations should be centered in the page
- Right click an equation in Chapter 3 LyX
- AMS Environment > click and environment
- Produce the pdf. All the equations become aligned to the left of the page
Expected Output:
The equations should be centred to the page. I found this issue when trying to make a multiline equation to display a long equation broken between two lines.
Product Versions:
Windows 10 64 bit
MiKTeX Console 4.2.1
LyX 2.3.6 or 2.3.0or2 (both seem to produce the same issue)
Classic Thesis v4.4 or v4.6 (both seem to produce the same issue)
Someone I know submitted using Classic Thesis in 2018. I tried using their version of LyX (LyX 2.3.0or2)
Official response
Comments (6)
-
-
reporter This has indeed fixed the problem. Thank you so much for the quick response
-
You're welcome, Jack. Happy to help!
And please: https://www.miede.de/postcards/ ;)
-
repo owner Thanks a lot, Ivo, for quickly and successfully fixing this.
-
repo owner - changed status to resolved
See pinned answer, please.
-
repo owner - changed status to closed
- Log in to comment
For some reason LyX adds
\PassOptionsToPackage{fleqn}{amsmath}
to the preamble when the amsmath package is loaded. It should be enough to add\@fleqnfalse
to Document Settings → LaTeX preamble in LyX to undo the fleqn option.