Joseph Wright committed 42a0f21

Draw 'real' content for empty linkes with XeTeX (fixes issue #136)

In an ideal world, this would be fixed in the driver or hyperref code.
However, that seems unlikely so a patch at the beamer end is the best
that can be achived.

Comments (0)

Files changed (1)


 \def\beamer@linkspace#1{\vbox to7.5pt{}\kern#1}
+% Due to what could be regarded as a bug in hyperref or DVIPDFm and
+% derivatives, no links are made to empty boxes with XeTeX. This is
+% fixed by drawing some 'real' content, which makes the PDF bigger!
+  \expandafter\ifx\csname XeTeXrevision\endcsname\relax
+  \expandafter\@gobble
+  \expandafter\@firstofone
+  {%
+    \def\beamer@linkspace#1{%
+      \begin{pgfpicture}{0pt}{-1.5pt}{#1}{5.5pt}
+        \pgfsetfillopacity{0}
+        \pgftext[x=0pt,y=-1.5pt]{.}
+        \pgftext[x=#1,y=5.5pt]{.}
+      \end{pgfpicture}}
+  }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.