2

It seems that if the nccmath package is included, then the text in the following minipage overlaps with the text before that if the minipage contains only display math. The \FixMinipageForNccmath macros is from nccmath affecting minipage widths.

\documentclass[fleqn,preview=false]{standalone}%
%
\usepackage{amsmath}%
\usepackage{nccmath}% Needed for fleqn environment

\newcommand*{\FixMinipageForNccmath}{\hrule height 0pt width \hsize}%

\begin{document}
Some text: $2 \ln x = 1$

\begin{minipage}{0.70\linewidth}\FixMinipageForNccmath
\begin{align*}
       \ln x &= \frac{1}{2}
\end{align*}
\end{minipage}
\begin{minipage}{0.30\linewidth}\FixMinipageForNccmath
    Note: abcd
\end{minipage}
\end{document}
Peter Grill
  • 223,288

2 Answers2

3

It seems that nccmath has serious bugs. The \hrule has no influence, as you probably have already noticed.

egreg
  • 1,121,712
2

The bug is due to \NCC@ignorepar command in nccmath package:

"This command removes extra vertical space before display formula if it starts from a new paragraph and changes the beforeskip to \abovedisplayshortskip if the \useshortskip command was applied."

\let \NCC@ignorepar=\relax should fix the problem.

L.J.R.
  • 10,932