Set empty pdfborderstyle for hyperref (#7264)

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.
This commit is contained in:
Scott Kostyshak 2015-05-21 00:29:35 -04:00
parent 7c0232e874
commit c983aa3049

View File

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