jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.87k stars 3.39k forks source link

References in beamer can split over frames, suggest minipage #2442

Closed ghost closed 9 years ago

ghost commented 9 years ago

Currently, when using {.allowframebreaks}, references in beamer can split over frames (e.g. a slide might end with http:// and the next one start with the rest of the URL - not great).

The only way I've found so far that prevents this (although LaTeX gurus might have a better idea) is to wrap the reference with \begin{minipage}{\textwidth} \end{minipage}.

It does cause LaTeX to complain about underfull \hboxes, but it looks alright to me.

njbart commented 9 years ago

Try inserting \widowpenalties 1 10000 before your references. See https://tex.stackexchange.com/questions/21983/how-to-avoid-page-breaks-inside-paragraphs

ghost commented 9 years ago

@nickbart1980 Oh, that seems to have done the job nicely, and much simpler! I don't know how I missed it, I searched stackexchange for ages to get the minipage idea!

jgm commented 9 years ago

Can this issue be closed?

ghost commented 9 years ago

I do wonder whether the Beamer template should include the command @nickbart1980 suggested, so I won't close myself just yet, but knowing what to type solves the issue for me personally and so I am happy if you want to close.