gdiepen / latexbeamer-handoutWithNotes

Create Handouts with notes from your Latexbeamer presentation
46 stars 17 forks source link

Layouts show overflowing elements #13

Open MTRNord opened 1 year ago

MTRNord commented 1 year ago

Hi, I have a document where an image is intentionally is places partially outside the presentation itself.

This works fine with beamer, however with this package the full image is being rendered. Is there a way to make it clip at the border like the beamer layout would do?

MTRNord commented 1 year ago

Example: image

samcarter commented 1 year ago

@MTRNord Can you make a minimal reproducible example? This problem can usually be avoided by changing the settings of pgfpages.

samcarter commented 1 year ago

One could for example use rounded corners which aren't round....

\documentclass{beamer}

\usepackage{pgfpages}
\pgfpageslogicalpageoptions{1}{corner width=0pt}
\pgfpageslogicalpageoptions{2}{corner width=0pt}
\pgfpageslogicalpageoptions{3}{corner width=0pt}
\pgfpageslogicalpageoptions{4}{corner width=0pt}
\pgfpageslogicalpageoptions{5}{corner width=0pt}
\pgfpageslogicalpageoptions{6}{corner width=0pt}

\usepackage{handoutWithNotes}
\pgfpagesuselayout{3 on 1 with notes}

\begin{document}

\begin{frame}
    abc \includegraphics[scale=3]{example-image-duck}
\end{frame} 

\begin{frame}
    abc \includegraphics[scale=3]{example-image-duck}
\end{frame} 

\end{document}

document2

MTRNord commented 1 year ago

@MTRNord Can you make a minimal reproducible example? This problem can usually be avoided by changing the settings of pgfpages.

I have some more meetings today after it I can do that :)

One could for example use rounded corners which aren't round....

This seems to work for half of the frames in "2 on 1 with notes". The upper frame has it clipped properly, while the second frame is not. :thinking:

samcarter commented 1 year ago

@MTRNord Sorry, my bad. I fixed my example to crop all pages and not just the first

MTRNord commented 1 year ago

Thanks this seems to solve my issue entirely :)

TeXhackse commented 1 year ago

I reopen it - not because it's not solved but because we'd love a different solution and @samcarter and me discussed that this might be a good enhancement. Though we'd prefer to have it in pgfpages directly instead of in handoutwithnotes.