comparison build-aux/texinfo.tex @ 18347:29765d7ed7fc

update from texinfo
author Karl Berry <karl@freefriends.org>
date Thu, 21 Jul 2016 06:32:07 -0700
parents 444cca940b8f
children 0553399bc725
comparison
equal deleted inserted replaced
18346:afdb605f0fda 18347:29765d7ed7fc
1 % texinfo.tex -- TeX macros to handle Texinfo files. 1 % texinfo.tex -- TeX macros to handle Texinfo files.
2 % 2 %
3 % Load plain if necessary, i.e., if running under initex. 3 % Load plain if necessary, i.e., if running under initex.
4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi 4 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
5 % 5 %
6 \def\texinfoversion{2016-07-16.19} 6 \def\texinfoversion{2016-07-20.14}
7 % 7 %
8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, 8 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
9 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 9 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
10 % 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 10 % 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
11 % Free Software Foundation, Inc. 11 % Free Software Foundation, Inc.
1539 \ifx\XeTeXrevision\thisisundefined 1539 \ifx\XeTeXrevision\thisisundefined
1540 \else 1540 \else
1541 % 1541 %
1542 % XeTeX version check 1542 % XeTeX version check
1543 % 1543 %
1544 \ifnum\strcmp{\the\XeTeXversion\XeTeXrevision}{0.99995}>-1 1544 \ifnum\strcmp{\the\XeTeXversion\XeTeXrevision}{0.99996}>-1
1545 % TeX Live 2016 contains XeTeX 0.99996 and xdvipdfmx 20160307.
1546 % It can be used `dvipdfmx:config' special (from TeX Live SVN r40941).
1547 % For avoiding PDF destination name replacement, we use the special
1548 % instead of xdvipdfmx commandline option `-C 0x0010'.
1549 \special{dvipdfmx:config C 0x0010}
1545 % XeTeX 0.99995+ contains xdvipdfmx 20160307+. 1550 % XeTeX 0.99995+ contains xdvipdfmx 20160307+.
1546 % It can handle Unicode destination name for PDF. 1551 % It can handle Unicode destination name for PDF.
1547 \txiuseunicodedestnametrue 1552 \txiuseunicodedestnametrue
1548 \else 1553 \else
1554 % XeTeX < 0.99996 (TeX Live < 2016) cannot be used
1555 % `dvipdfmx:config' special.
1556 % So for avoiding PDF destination name replacement,
1557 % xdvipdfmx commandline option `-C 0x0010' is necessary.
1558 %
1549 % XeTeX < 0.99995 can not handle Unicode destination name for PDF 1559 % XeTeX < 0.99995 can not handle Unicode destination name for PDF
1550 % because xdvipdfmx 20150315 has UTF-16 convert issue. 1560 % because xdvipdfmx 20150315 has UTF-16 convert issue.
1551 % It fixed by xdvipdfmx 20160106 (TeX Live SVN r39753). 1561 % It fixed by xdvipdfmx 20160106 (TeX Live SVN r39753).
1552 \txiuseunicodedestnamefalse 1562 \txiuseunicodedestnamefalse
1553 \fi 1563 \fi
1554 % 1564 %
1555 % PDF outline support 1565 % PDF outline support
1556 % 1566 %
1557 % Emulate the primitive of pdfTeX 1567 % Emulate the primitive of pdfTeX
1558 \def\pdfdest name#1 xyz{% 1568 \def\pdfdest name#1 xyz{%
1559 \special{pdf:dest (name#1) [@thispage /XYZ @xpos @ypos]}% 1569 \special{pdf:dest (name#1) [@thispage /XYZ @xpos @ypos null]}%
1560 } 1570 }
1561 \def\pdfmkdest#1{{% 1571 \def\pdfmkdest#1{{%
1562 % We have to set dummies so commands such as @code, and characters 1572 % We have to set dummies so commands such as @code, and characters
1563 % such as \, aren't expanded when present in a section title. 1573 % such as \, aren't expanded when present in a section title.
1564 \indexnofonts 1574 \indexnofonts
8883 % By the default settings, 8893 % By the default settings,
8884 % XeTeX (xdvipdfmx) replaces link destination names with integers. 8894 % XeTeX (xdvipdfmx) replaces link destination names with integers.
8885 % In this case, the replaced destination names of 8895 % In this case, the replaced destination names of
8886 % remote PDF cannot be known. In order to avoid replacement, 8896 % remote PDF cannot be known. In order to avoid replacement,
8887 % you can use commandline option `-C 0x0010' for xdvipdfmx. 8897 % you can use commandline option `-C 0x0010' for xdvipdfmx.
8898 % If you use XeTeX 0.99996+ (TeX Live 2016+),
8899 % the commandline option is not neccesary
8900 % because we can use `dvipdfmx:config' special.
8888 \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A 8901 \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
8889 << /S /GoToR /F (\the\filename.pdf) /D (name\pdfxrefdest) >> >>}% 8902 << /S /GoToR /F (\the\filename.pdf) /D (name\pdfxrefdest) >> >>}%
8890 \else 8903 \else
8891 \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A 8904 \special{pdf:bann << /Border [0 0 0] /Type /Annot /Subtype /Link /A
8892 << /S /GoTo /D (name\pdfxrefdest) >> >>}% 8905 << /S /GoTo /D (name\pdfxrefdest) >> >>}%