0

This is an Overleaf MWE.

Code from the example:

\documentclass{book}

\usepackage{indentfirst}

\usepackage{nccmath}    % align & gather doesn't use shortskip: https://tex.stackexchange.com/a/386266/206774
\useshortskip           % nccmath seems to fix that even without this line


\begin{document}

1st case case case case case case case case 

\[\begin{cases}
    D: \text{wheel diameter} \\
    A = l \sin{\beta_1} \\
\end{cases}\]

2nd case case case case case case case case 

\[\begin{cases}
    D: \text{wheel diameter} \\
    A = l \sin{\beta_1} \\
\end{cases}\]

\end{document}

This is the problem:

enter image description here

It seems that only the first cases is affected.

  • 1
    To me, using \shortskip in the present context is rather questionable. What are you trying to achieve? – Mico Nov 7 '20 at 7:49
  • @Mico align in my project is placed too far from the previous paragraph. \useshortskip fix this for me. – Minh Nghĩa Nov 7 '20 at 9:56
  • 1
    never leave a blank line before a displayed equation. That is causing the bad spacing (\useshortskip can not fix that) – David Carlisle Nov 7 '20 at 15:43
  • 1
    \useshortskip only applies to the next equation. So only the first one here. It is usually applied immediately before, using it in the preamble is a bit odd, if not exactly an error. – David Carlisle Nov 7 '20 at 15:49
  • @DavidCarlisle I learn LaTeX by reading Overleaf examples. I think I made a huge huge mistake, for not thoroughly reading some mathmode guides. I always put newline around non-inline equations. – Minh Nghĩa Nov 7 '20 at 17:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.