comparison build-aux/texinfo.tex @ 18258:21a53f24c390

update from texinfo
author Karl Berry <karl@freefriends.org>
date Tue, 23 Feb 2016 08:44:42 -0800
parents 8b8119876a81
children 18755f45b6ca
comparison
equal deleted inserted replaced
18257:8b8119876a81 18258:21a53f24c390
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-02-20.23} 6 \def\texinfoversion{2016-02-22.15}
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.
1523 \special{pdf:dest (name#1) [@thispage /XYZ @xpos @ypos]}% 1523 \special{pdf:dest (name#1) [@thispage /XYZ @xpos @ypos]}%
1524 } 1524 }
1525 \def\pdfmkdest#1{{% 1525 \def\pdfmkdest#1{{%
1526 % We have to set dummies so commands such as @code, and characters 1526 % We have to set dummies so commands such as @code, and characters
1527 % such as \, aren't expanded when present in a section title. 1527 % such as \, aren't expanded when present in a section title.
1528 \indexnofonts 1528 \indexnofonts % For avoiding UTF-16 convert issue of xdvipdfmx 20150315.
1529 \makevalueexpandable 1529 \makevalueexpandable
1530 % In the case of XeTeX, xdvipdfmx converts strings to UTF-16. 1530 % In the case of XeTeX, xdvipdfmx converts strings to UTF-16.
1531 % Therefore \txiescapepdf is not necessary. 1531 % Therefore \txiescapepdf is not necessary.
1532 \safewhatsit{\pdfdest name{#1} xyz}% 1532 \safewhatsit{\pdfdest name{#1} xyz}%
1533 }} 1533 }}
1572 \let\unnsubsubsecentry\numsubsubsecentry% 1572 \let\unnsubsubsecentry\numsubsubsecentry%
1573 % 1573 %
1574 % In the case of XeTeX, xdvipdfmx converts strings to UTF-16. 1574 % In the case of XeTeX, xdvipdfmx converts strings to UTF-16.
1575 % Therefore, the encoding and the language may not be considered. 1575 % Therefore, the encoding and the language may not be considered.
1576 % 1576 %
1577 \indexnofonts 1577 \indexnofonts % For avoiding UTF-16 convert issue of xdvipdfmx 20150315.
1578 \setupdatafile 1578 \setupdatafile
1579 % We can have normal brace characters in the PDF outlines, unlike 1579 % We can have normal brace characters in the PDF outlines, unlike
1580 % Texinfo index files. So set that up. 1580 % Texinfo index files. So set that up.
1581 \def\{{\lbracecharliteral}% 1581 \def\{{\lbracecharliteral}%
1582 \def\}{\rbracecharliteral}% 1582 \def\}{\rbracecharliteral}%
1589 \gdef\lbracecharliteral[{]% 1589 \gdef\lbracecharliteral[{]%
1590 \gdef\rbracecharliteral[}]% 1590 \gdef\rbracecharliteral[}]%
1591 ] 1591 ]
1592 1592
1593 \special{pdf:docview << /PageMode /UseOutlines >> } 1593 \special{pdf:docview << /PageMode /UseOutlines >> }
1594 \openin 1 uptex.tex % upTeX has UTF8-UTF16 cmap 1594 % ``\special{pdf:tounicode ...}'' is not necessary
1595 \ifeof 1 1595 % because xdvipdfmx converts strings from UTF-8 to UTF-16 without it.
1596 % upTeX does not exist. To use UTF8-UCS2 cmap. 1596 % However, due to UTF-16 convert issue of xdvipdfmx 20150315,
1597 % In this case, non-BMP characters (over U+FFFF) can not be used. 1597 % ``\special{pdf:dest ...}'' can not handle non-ASCII strings.
1598 \special{pdf:tounicode UTF8-UCS2} 1598 % It fixed by xdvipdfmx 20160106 (TeX Live SVN r39753).
1599 \else
1600 % upTeX exists. To use UTF8-UTF16 cmap.
1601 % Non-BMP characters (over U+FFFF) can be used.
1602 \special{pdf:tounicode UTF8-UTF16}
1603 \fi
1604 \fi 1599 \fi
1605 1600
1606 % 1601 %
1607 % @image support for XeTeX 1602 % @image support for XeTeX
1608 % 1603 %