Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layouts show overflowing elements #13

Open
MTRNord opened this issue Feb 6, 2023 · 7 comments
Open

Layouts show overflowing elements #13

MTRNord opened this issue Feb 6, 2023 · 7 comments

Comments

@MTRNord
Copy link

MTRNord commented Feb 6, 2023

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
Copy link
Author

MTRNord commented Feb 6, 2023

Example:
image

@samcarter
Copy link

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

@samcarter
Copy link

samcarter commented Feb 6, 2023

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
Copy link
Author

MTRNord commented Feb 7, 2023

@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. 🤔

@samcarter
Copy link

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

@MTRNord
Copy link
Author

MTRNord commented Feb 7, 2023

Thanks this seems to solve my issue entirely :)

@MTRNord MTRNord closed this as completed Feb 7, 2023
@TeXhackse
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants