I want this Unicode symbol 〈
, left-pointing angle bracket, to be interpreted as \langle
.
On TeX Live on my Mac, I tried this:
\documentclass[11pt]{article}
\usepackage[utf8x]{inputenc}
\DeclareUnicodeCharacter{2329}{\langle}
\begin{document}
$ 〈 $
\end{document}
which produces this error:
./foo.tex:7: Package ucs Error: Unknown Unicode character 9001 = U+2329,
(ucs) possibly declared in uni-35.def.
(ucs) Type H to see if it is available with options.
Unicode character 9001 = U+2329:
Unicode character 9001 = U+2329:
LEFT-POINTING ANGLE BRACKET
BRA
Character available with following options:
postscript.
But I don't want to use the option postscript
, I just want to define that Unicode character 2329 should emit \langle
.
What am I doing wrong?
Best Answer
You can use the
newunicodechar
package, but not with theutf8x
option toinputenc
:If you want to use
ucs
andutf8x
(which I can't recommend), you have to loaducs
with the Postscript option. The definition associated to U+2329 is however faulty, because it produces nothing even when loadingpifont
, that seems required. I provide a workaround.