I'm trying to submit proposal documents to NSF Fastlane. I'm generating PDF documents using lualatex. My file contains hyperref links internally and externally, but they are removed by Fastlane's upload PDF redistillation. The text remains and is visible, but there is no link to click on.
Here is my minimal non-working example. I compile it using lualatex from the TeXLive 2016 distribution on Windows. The culprit seems to be fontspec. If I remove that line, the links work, but I'd like to use fontspec so I can choose fonts.
\documentclass[fontsize=10pt,paper=letter,twoside=false,onecolumn]{scrartcl}
\usepackage{fontspec} % This seems to be the problem.
\usepackage{hyperref}
\setmainfont{Palatino Linotype}
\begin{document}
\section{Section}\label{sec}
This is an explicit external url: \url{http://tex.stackexchange.com}.
This is an external link: \href{http://tex.stackexchange.com}{Link}.
This is an internal link to Sec.~\ref{sec}.
\end{document}
My questions are:
- What about
fontspecmakes my links get eaten by Fastlane? - Is there a workaround?
Edit:
The issue is something with how Fastlane handles fonts when it re-distills PDFs.
For example, in the example give, if I run pdffonts on file generated by lualatex I get the following output:
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
TYJNNQ+PalatinoLinotype-Roman CID TrueType yes yes yes 19 0
but after uploading the file to Fastlane and re-downloading, the output of pdffonts gives
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
EKFDNL+PalatinoLinotype-Roman CID TrueType yes yes no 31 0
EKFFKE+PalatinoLinotype-Roman TrueType yes yes no 36 0
EKFFNF+PalatinoLinotype-Roman TrueType yes yes no 2 0
Somehow the font is being broken up and re-encoded, breaking hyperlinks in the process.
Edit 2: I'm uncertain that the fonts are really the issue. After changing the fonts, \url{} links work, but \href{}{} links still do not.
fontencwhen usinglualatex. Does that change anything? I don't recall having this problem, and usefontspecandlualatexalso. – Alan Munn Jul 17 '17 at 22:10fontenc. – Alan Munn Jul 17 '17 at 22:12fontspecvs.fontenc. However, removingfontencdoes not solve the problem. I will edit the example to remove it. – Ted Corcovilos Jul 17 '17 at 22:15fontspecbut do not explicitly declare a font? – Ted Corcovilos Jul 17 '17 at 22:17fontspecis loaded asfontspecdeclares fonts itself. – cfr Jul 18 '17 at 02:57fontspecand the Mac Times font, so I don't know for sure. – Alan Munn Jul 18 '17 at 03:07\href{http://tex.stackexchange.com}{Link}still doesn't work. I'm editing the example to test that case also. – Ted Corcovilos Jul 18 '17 at 04:51\includepdfwould destroy them. – Ulrike Fischer Jul 18 '17 at 08:41