<div dir="ltr">lyx-2.3.6<div><br></div><div>I'm trying beamer with metropolis theme.  So to preamble I added:</div><div><br></div><div><p style="margin:0px;white-space:pre-wrap">\usetheme[numbering=fraction,titleformat=smallcaps]{metropolis}</p><p style="margin:0px;white-space:pre-wrap"><br></p><p style="margin:0px;white-space:pre-wrap"> I want notes on 2nd screen, so I added<br></p><p style="margin:0px;white-space:pre-wrap"><br></p></div><div><p style="margin:0px;white-space:pre-wrap">\usepackage{pgfpages}</p>
<p style="margin:0px;white-space:pre-wrap">\setbeameroption{show notes}</p>
<p style="margin:0px;white-space:pre-wrap">\setbeameroption{show notes on second screen=right}</p>
<p style="margin:0px;white-space:pre-wrap"><br></p><div>When I do this, I get a gray rectangle at the top of each page.  I exported the latex code, and found </div></div><div>commenting out this section of code inserted by lyx fixed the issue:</div><div><br></div><div>%% \ifx\hypersetup\undefined<br>%%   \AtBeginDocument{%<br>%%     \hypersetup{unicode=true,pdfusetitle,<br>%%  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,<br>%%  breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false}<br>%%   }<br>%% \else<br>%%   \hypersetup{unicode=true,pdfusetitle,<br>%%  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,<br>%%  breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=false}<br>%% \fi<br></div><div><br></div><div>Any ideas what is the right way to fix this, and maybe what is the cause?</div><div><br></div><div>Thanks,</div><div>Neal</div></div>