GeneralText Spacement Problems with Equations

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Text Spacement Problems with Equations

Post by Cham »

Hmmm, while it's working on the small "fake" equations, it doesn't work on the aligned equations here.

Complete "not so minimal" example :

Code: Select all

\documentclass[12pt,letterpaper]{article}
\usepackage[T1]{fontenc}
\usepackage{setspace}
\setstretch{1.1}
\usepackage{anysize}
\marginsize{1.5in}{1in}{0.5in}{0.5in}
\usepackage{amsmath}
\usepackage{tensor}
\everydisplay{\predisplaysize=\dimexpr\predisplaysize-2em\relax}
\newcommand*{\1}{\hspace{1pt}}

\begin{document}

\section{Code with spacement problems}
Bla bla bla bla bla bla bla blabla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla :
        \begin{equation}
                A + B - C = 0.
        \end{equation}
Bla bla blabla bla bla blabla bla bla bla
        \begin{equation}
                D + E = F.
        \end{equation}
bla bla bla bla :
        \begin{equation}
                P - G + H = K - L,
        \end{equation}
bla bla bla blabla bla bla blabla bla bla blabla bla bla blabla bla bla blabla bla bla blabla bla bla blabla bla bla bla.
        \begin{equation}
                A + B - C + G - H = J - K.
        \end{equation}
bla bla bla blabla bla bla
        \begin{equation}
                A + B - C + G - H = J - K.
        \end{equation}
bla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla
        \begin{equation}
                C + D - H = FG - HK
        \end{equation}
On a donc
	\begin{align*}
		-\, \tensor{g}{^{ij}} \, \tensor{h}{_{jk}} \; \tensor{g}{_{00}} &= -\, \tensor{g}{^{ij}} \1 (\, \tensor{g}{_{0 \1 j}} \, \tensor{g}{_{0 \1 k}} - \tensor{g}{_{00}} \, \tensor{g}{_{jk}} ) \\ \\
		&= -\, \tensor{g}{^{ij}} \, \tensor{g}{_{j \1 0}} \, \tensor{g}{_{k \1 0}} + \tensor{g}{_{00}} \, \tensor{g}{^{ij}} \, \tensor{g}{_{jk}} \\ \\
		&= \tensor{g}{^{i \1 0}} \, \tensor{g}{_{00}} \, \tensor{g}{_{k \1 0}} + \tensor{g}{_{00}} \, \tensor{\delta}{^i_k} - \tensor{g}{_{00}} \, \tensor{g}{^{i \1 0}} \, \tensor{g}{_{0 \1 k}} \\ \\
		&= \tensor{g}{_{00}} \, \tensor{\delta}{^i_k},
	\end{align*}
ce qui implique

\end{document}
What is wrong here ?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Text Spacement Problems with Equations

Post by cgnieder »

As far as I know {align} and kin always insert \abovedisplayskip, regardless of the length of the previous line. Redefining \predisplaysize hence has no effect here. You might be of luck here, i.e., only a manual solution will work.

Regards
site moderator & package author
User avatar
Cham
Posts: 937
Joined: Sat Apr 02, 2011 4:06 pm

Text Spacement Problems with Equations

Post by Cham »

cgnieder wrote:As far as I know {align} and kin always insert \abovedisplayskip, regardless of the length of the previous line.
Aakh ! {gather} has the same problem.

(what is "kin" ?)
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Text Spacement Problems with Equations

Post by cgnieder »

Cham wrote:what is "kin" ?
Family (or something on the lines). I meant the other amsmath environments.

Regards
site moderator & package author
Post Reply