TeX - LaTeX Asked on April 20, 2021
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.70linewidth}FixMinipageForNccmath
begin{align*}
ln x &= frac{1}{2}
end{align*}
end{minipage}
begin{minipage}{0.30linewidth}FixMinipageForNccmath
Note: abcd
end{minipage}
end{document}
It seems that nccmath has serious bugs. The hrule
has no influence, as you probably have already noticed.
Correct answer by egreg on April 20, 2021
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.
Answered by L.J.R. on April 20, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP