Commits

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)

base/beamerbasenavigation.sty

 
 \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!
+\begingroup\expandafter\expandafter\expandafter\endgroup
+  \expandafter\ifx\csname XeTeXrevision\endcsname\relax
+  \expandafter\@gobble
+\else
+  \expandafter\@firstofone
+\fi
+  {%
+    \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}}
+  }
+
 \pgfdefobject{beamerslidenavlight}{\pgfpoint{0pt}{-1pt}}{\pgfpoint{20pt}{5pt}}
  {\pgfpathqmoveto{4bp}{0.5bp}
   \pgfpathqlineto{2bp}{2bp}
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 ProjectModifiedEvent.java.
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.