hypersetup code in preamble causing problems with beamer notes

Neal Becker ndbecker2 at gmail.com
Wed Dec 2 19:41:25 UTC 2020


I get this artifact if I change document settings > pdf properties > check
"customize pdf options".  Don't set anything else here, although
"Automatically fill header" is checked for me.

This gives me the rectangle:

On Wed, Dec 2, 2020 at 1:57 PM Paul A. Rubin <parubin73 at gmail.com> wrote:

> 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.
> --
> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


-- 
*Those who don't understand recursion are doomed to repeat it*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201202/3307bdf5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_20201202_144013.png
Type: image/png
Size: 250616 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20201202/3307bdf5/attachment-0001.png>


More information about the lyx-users mailing list