2

I'm trying to use the 'ẁ' character in my text, however it doesn't show on the right hand side of latex and throws the following error:

Package inputenc Error: Unicode char ẁ (U+1E81)

I tried adding \usepackage[latin1]{inputenc} to the top of my document, which then gave another error telling me to add 'utf8, latin1' to my \documentclass which I tried but this is also not working.

Is there any way I can solve this?

3
  • 1
    Apparently this unicode character isn't available yet
    – user31729
    Apr 16, 2016 at 16:22
  • Which TeX engine do you use: pdfTeX, XeTeX, or LuaTeX?
    – Mico
    Apr 16, 2016 at 16:29
  • .note. Inputenx supports this.
    – user202729
    Dec 28, 2021 at 7:15

3 Answers 3

4

The character is not supported in Latin-1; save your file as UTF-8 and add

\usepackage[utf8]{inputenc}

and also

\DeclareUnicodeCharacter{1E81}{\`w}

Full example:

\documentclass{article}
\usepackage[utf8]{inputenc}

\DeclareUnicodeCharacter{1E81}{\`w}

\begin{document}

Is the character ẁ used in some language?

\end{document}

enter image description here

1
1

You may want to look into using either XeLaTeX or LuaLaTeX to compile your documents. They support utf8 input encoding natively (in fact, it's the only input encoding they support...). Do also make sure you use a font that features the character .

enter image description here

% Compile with XeLaTeX or LuaLaTeX and load a font that contains "ẁ"
\documentclass{article}
\usepackage{fontspec}
\begin{document}
\setmainfont{Latin Modern Roman} ẁ
\setmainfont{Cardo} ẁ
\setmainfont{Junicode} ẁ
\end{document}
1

Here is a (non exclusive) list of fonts on CTAN that have this character (it belongs to the series Latin extended additional in the unicode description):

Latin Modern –erewhon –Linux Libertine O – ebgaramond – tex-gyre.

2
  • It might be useful if you provided an MWE. :-)
    – Mico
    Apr 16, 2016 at 17:13
  • @Mico: I'll provide one in a moment…
    – Bernard
    Apr 16, 2016 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.