diff options
Diffstat (limited to 'info/xetexref/xetex-reference.tex')
-rw-r--r-- | info/xetexref/xetex-reference.tex | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/info/xetexref/xetex-reference.tex b/info/xetexref/xetex-reference.tex index ea7e45707c..2c6cc2661e 100644 --- a/info/xetexref/xetex-reference.tex +++ b/info/xetexref/xetex-reference.tex @@ -1,6 +1,4 @@ -% Copyright 2007-2017 Will Robertson -% Copyright 2011 Karl Berry -% Copyright 2013 Khaled Hosny +% Copyright for this work included in README. % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3c @@ -21,7 +19,7 @@ \title{The \xetex reference guide\\\url{https://ctan.org/pkg/xetexref}} \author{Will Robertson \and Khaled Hosny \and Karl Berry} -\date{2019-03-05} +\date{\VERSION} \suppressfontnotfounderror=1 @@ -555,6 +553,13 @@ output but is slower. Activated ($\ge\mathtt1$) by default.} \XeTeXuseglyphmetrics=1 \fbox{a}\fbox{A}\fbox{j}\fbox{J} \end{example} +\cmd|\XeTeXgenerateactualtext| +\xarg{integer} +\desc{Controls the output of \texttt{/ActualText} entry. Default is 0. +When set to 1, the \texttt{/ActualText} entry is added to the output PDF +for better copy/paste and search in PDF viewers.} +\endcmd + \subsection{OpenType fonts} \cmd|\XeTeXOTcountscripts| @@ -887,7 +892,8 @@ optional keyword:\medskip \cmd|\Ucharcat| \xarg{number} \xarg{catcode} -\desc{Expands to a character token with slot \meta{number} and \meta{catcode} specified.} +\desc{Expands to a character token with slot \meta{number} and \meta{catcode} specified. +The values allowed for \meta{catcode} are: 1--4, 6--8 and 10--13.} \endcmd \begin{example} @@ -922,11 +928,11 @@ language (in another script) is present in the text. \opteq \xarg{interchar class} \desc{Assigns a class corresponding to \xarg{interchar class} (range -0–255) to a \xarg{char slot}. Most characters are class 0 by +0–4095) to a \xarg{char slot}. Most characters are class 0 by default. Class 1 is for CJK ideographs, classes 2 and 3 are CJK -punctuation. The boundary of a text string is considered class 255, +punctuation. The boundary of a text string is considered class 4095, wherever there is a boundary between a ‘run’ of characters and something -else — glue, kern, math, box, etc. Special case class 256 is ignored; +else — glue, kern, math, box, etc. Special case class 4096 is ignored; useful for diacritics so I’m told.} \endcmd @@ -1170,6 +1176,12 @@ the specified \xarg{font} to $n/1000$\,em. $n$ is clipped to $\pm1000$.} \subsection{Programming} +\cmd|\expanded| +\xarg{general text} +\desc{Carries out full expansion of a token list like \texttt{\char`\\message}, +but it is still expandable.} +\endcmd + \cmd|\ifincsname...(\else...)\fi| \desc{\tex conditional to branch true if the expansion occurs within \texttt{\char`\\csname ... \char`\\endcsname}.} @@ -1212,9 +1224,9 @@ Shell escape \ifnum\shellescape>0 is \else is not \fi enabled. \xarg{arg one} \xarg{arg two} \desc{Compares the full expansion of the two token list -arguments. Expands to zero if they are the same, less than one if the +arguments. Expands to zero if they are the same, $-1$ if the first argument sorts lower (lexicographically) than the second argument, -and greater than one if vice versa.} +and~$1$ if vice versa.} \endcmd \begin{example} |