3

I keep getting this error:

[WARNING] Missing character: There is no ❯ (U+276F) (U+276F) in font Roboto Mono Nerd Font Complet

Is there any way to add support for this entire font, or at least for this one character ?

I use xelatex btw.

2 Answers 2

6

I'd use newunicodechar, but in a different way than David's, that is, using a substitute font.

\tracinglostchars=3
\documentclass{article}
\usepackage{fontspec}
\usepackage{newunicodechar}

\setmonofont{Roboto Mono}
\newfontfamily{\substitutett}{DejaVu Sans Mono}
\newunicodechar{❮}{\makebox[0.5em]{\substitutett❮}}
\newunicodechar{❯}{\makebox[0.5em]{\substitutett❯}}

\begin{document}

\texttt{❮abc❯}

\end{document}

enter image description here

4

You can use newunicodechar package to make the characters active and fake however you wish, here I use a bold U+203A

enter image description here

\documentclass{article}

\usepackage{newunicodechar}

\newunicodechar{❮}{\textbf{‹}}
\newunicodechar{❯}{\textbf{›}}

\begin{document}


‹this 1›

\textbf{‹}this 2\textbf{›}

❮this 3❯ 


\end{document}
4
  • 3
    Are you recommending to use a package of mine? Amazing! ;-)
    – egreg
    Commented Jun 16, 2021 at 10:45
  • 1
    @egreg because you are so old by law of averages at least one of your packages must be useful! Commented Jun 16, 2021 at 10:49
  • @DavidCarlisle Very nice :-)))) the comments.
    – Sebastiano
    Commented Jun 16, 2021 at 14:52
  • Thank you very much, both work, and are great solutions ! Commented Jun 16, 2021 at 17:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .