1

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 (〈 〉).

Real Dreams
  • 8,298
  • 12
  • 56
  • 78

1 Answers1

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}

enter image description here

Henri Menke
  • 109,596