]> git.lyx.org Git - features.git/commitdiff
Set empty pdfborderstyle for hyperref (#7264)
authorScott Kostyshak <skostysh@lyx.org>
Thu, 21 May 2015 04:29:35 +0000 (00:29 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Thu, 21 May 2015 04:31:51 +0000 (00:31 -0400)
This leads to better compatibility with e.g. arXiv.

As Jürgen notes, it is also possible to override this automatic
empty pdfborderstyle via the Additional Options.

Patch by Julien Rioux.

src/PDFOptions.cpp

index 222be517e836779ad9502d8f9815ef3117d3eaaa..408fa9cc9df85ce12ec1f1a783d4f17fd66b4de3 100644 (file)
@@ -121,6 +121,8 @@ void PDFOptions::writeLaTeX(OutputParams & runparams, otexstream & os,
                opt += "pdfborder={0 0 ";
                opt += (pdfborder ? '0' : '1');
                opt += "},";
+               if (pdfborder)
+                       opt += "pdfborderstyle={},";
                opt += "backref=" + backref + ',';
                opt += "colorlinks=" + convert<string>(colorlinks) + ',';
                if (!pagemode.empty())