[XeTeX] Binding control sequence to input character

ShreeDevi Kumar shreeshrii at gmail.com
Sun Dec 21 12:17:36 CET 2014


Hello,

I want to increase fontsize of just one letter in a word,

Is it possible in xelatex to bind a control sequence to an input character
as suggested for pdftex on
http://tex.stackexchange.com/questions/34604/entering-unicode-characters-in-latex

"To define behaviour for unicode characters, use the
\DeclareUnicodeCharacter command that is then defined. Here's an example
for binding the control sequence \dash to the input character "—"; i.e., a
literal em-dash, U+2014, in the source:

\DeclareUnicodeCharacter{2014}{\dash}

\dash can then be defined in the usual manner; I use:

\DeclareRobustCommand\dash{%
  \unskip\nobreak\thinspace\textemdash\allowbreak\thinspace\ignorespaces}

This defines a dash that has a small space on either side and will only
allow a line break *after* it.
​"​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20141221/4b19b656/attachment.html>


More information about the XeTeX mailing list