beamer icon indicating copy to clipboard operation
beamer copied to clipboard

First item has an abnormal skip with sub-itemize

Open stone-zeng opened this issue 6 years ago • 6 comments

MWE:

\documentclass{beamer}

\begin{document}

\begin{frame}{Review}
\begin{itemize}
  \item Thermodynamics vs statistical mechanics
  \item Equilibrium state
  \item Temperature
  \begin{itemize}
    \item Zeroth law fo thermodynamics
    \item Scale of temperature
  \end{itemize}
\end{itemize}
\end{frame}

\end{document}

Note that the distances between the items are (a little bit) different:

image

Version: v3.55 with TeX Live 2019.

stone-zeng avatar Mar 18 '19 12:03 stone-zeng

You're missing an empty line:

\documentclass{beamer}

\begin{document}

\begin{frame}{Review}
\begin{itemize}
  \item Thermodynamics vs statistical mechanics
  \item Equilibrium state
  \item Temperature
  
  \begin{itemize}
    \item Zeroth law fo thermodynamics
    \item Scale of temperature
  \end{itemize}
\end{itemize}
\end{frame}

\end{document}

samcarter avatar Mar 18 '19 12:03 samcarter

related issue: https://github.com/josephwright/beamer/issues/306

samcarter avatar Mar 18 '19 12:03 samcarter

related issue: #519

polgab avatar Apr 11 '22 14:04 polgab

Is this issue regarded as a bug and will be eventually fixed? Or is it considered as a "feature" of beamer and will stay?

I guess that this problem is the same as

https://tex.stackexchange.com/questions/685511/beamer-inserts-line-break-at-strange-place/690742#690742

Does this mean that the user should develop the habit of inserting an empty line before each list-like environment when using beamer?

Or would such an empty line cause problems depending on the situation? Outside beamer, you should avoid such an empty line:

https://tex.stackexchange.com/questions/150263/empty-line-in-code-before-enumerate-environment

ryofurue avatar Jul 11 '23 02:07 ryofurue

I guess that this problem is the same as

https://tex.stackexchange.com/questions/685511/beamer-inserts-line-break-at-strange-place/690742#690742

The problem there is a bit different: there is not enough space for the beamercolourbox if there are the indents from two lists in front of it.

samcarter avatar Jul 11 '23 07:07 samcarter

The problem there is a bit different:

Okay, I've just created another issue.

ryofurue avatar Jul 17 '23 04:07 ryofurue