Is it possible to set a font for a glyph without adding markup around each occurrence of the glyph? e.g. my current font does not support angle bracket (〈 〉).
Asked
Active
Viewed 105 times
1
Real Dreams
- 8,298
- 12
- 56
- 78
1 Answers
4
You can use the newunicodechar package. (Also works with xelatex)
\documentclass{article}
\pagestyle{empty}% for cropping
\usepackage[utf8]{inputenx}
\usepackage{newunicodechar}
\newunicodechar{〈}{\ensuremath{\langle}}
\newunicodechar{〉}{\ensuremath{\rangle}}
\begin{document}
Here are angle〈 〉brackets.
$Here are angle〈 〉brackets.$
\end{document}
Henri Menke
- 109,596
-
-
@egreg Indeed. This is the first time, that
\ensuremathcomes in handy to me. – Henri Menke Mar 23 '14 at 13:54

\langle \rangle? – Sigur Mar 23 '14 at 13:35