hypersetup code in preamble causing problems with beamer notes

Paul A. Rubin parubin73 at gmail.com
Wed Dec 2 18:57:27 UTC 2020


On 12/2/20 11:05 AM, Neal Becker wrote:
> lyx-2.3.6
>
> I'm trying beamer with metropolis theme.  So to preamble I added:
>
> \usetheme[numbering=fraction,titleformat=smallcaps]{metropolis}
>
> I want notes on 2nd screen, so I added
>
> \usepackage{pgfpages}
>
> \setbeameroption{show notes}
>
> \setbeameroption{show notes on second screen=right}
>
> When I do this, I get a gray rectangle at the top of each page.  I 
> exported the latex code, and found
> commenting out this section of code inserted by lyx fixed the issue:
>
> %% \ifx\hypersetup\undefined
> %%   \AtBeginDocument{%
> %%     \hypersetup{unicode=true,pdfusetitle,
> %%  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
> %%  breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false}
> %%   }
> %% \else
> %%   \hypersetup{unicode=true,pdfusetitle,
> %%  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,
> %%  breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false}
> %% \fi
>
> Any ideas what is the right way to fix this, and maybe what is the cause?
>
> Thanks,
> Neal
>
A gray rectangle across the entire top, or on the same side as the 
slide, or a gray rectangle just on the right (the speaker notes side), 
which is expected. I've attached a MWE, and to me the PDF is as it 
should be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201202/bbd06952/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newfile1.lyx
Type: application/x-lyx
Size: 2773 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201202/bbd06952/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newfile1.pdf
Type: application/pdf
Size: 18565 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201202/bbd06952/attachment-0001.pdf>


More information about the lyx-users mailing list