texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[7054] XeTeX PDF URL link support


From: Masamichi Hosoda
Subject: [7054] XeTeX PDF URL link support
Date: Tue, 22 Mar 2016 15:01:23 +0000

Revision: 7054
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7054
Author:   trueroad
Date:     2016-03-22 15:01:23 +0000 (Tue, 22 Mar 2016)
Log Message:
-----------
XeTeX PDF URL link support

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/doc/texinfo.tex

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-03-22 14:45:55 UTC (rev 7053)
+++ trunk/ChangeLog     2016-03-22 15:01:23 UTC (rev 7054)
@@ -1,5 +1,10 @@
 2016-03-22  Masamichi Hosoda  <address@hidden>
 
+       * doc/texinfo.tex (\pdfurl, \endlink): New macro.
+       Add XeTeX PDF URL link support.
+
+2016-03-22  Masamichi Hosoda  <address@hidden>
+
        * doc/texinfo.tex (\iftxiuseunicodedestname): New switch.
        (\pdfmkdest, \dopdfoutline, \pdfmakeoutlines):
        Add XeTeX Unicode PDF destination name support.

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2016-03-22 14:45:55 UTC (rev 7053)
+++ trunk/doc/texinfo.tex       2016-03-22 15:01:23 UTC (rev 7054)
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2016-03-22.14}
+\def\texinfoversion{2016-03-22.15}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -1624,6 +1624,28 @@
   % ``\special{pdf:dest ...}'' can not handle non-ASCII strings.
   % It fixed by xdvipdfmx 20160106 (TeX Live SVN r39753).
 %
+  % make a live url in pdf output.
+  \def\pdfurl#1{%
+    \begingroup
+      % it seems we really need yet another set of dummies; have not
+      % tried to figure out what each command should do in the context
+      % of @url.  for now, just make @/ a no-op, that's the only one
+      % people have actually reported a problem with.
+      %
+      \normalturnoffactive
+      address@hidden@}%
+      \let\/=\empty
+      \makevalueexpandable
+      % do we want to go so far as to use \indexnofonts instead of just
+      % special-casing \var here?
+      \def\var##1{##1}%
+      %
+      \leavevmode\setcolor{\urlcolor}%
+      \special{pdf:bann << /Border [0 0 0]
+        /Subtype /Link /A << /S /URI /URI (#1) >> >>}%
+    \endgroup}
+  \def\endlink{\setcolor{\maincolor}\special{pdf:eann}}
+%
   %
   % @image support
   %




reply via email to

[Prev in Thread] Current Thread [Next in Thread]