3

I have this encoding in my file:

\usepackage[utf8]{inputenc} %unicode support

but I still get the error

Package inputenc Error: Unicode char \u8... not set up for use with ...

How can you make LaTeX understand the symbol ƒ?

2
  • 1
    Are you talking about an italic f? If you copied it from some source, try to delete and type again directly on the editor.
    – Sigur
    Commented Oct 15, 2013 at 23:57
  • 1
    @Sigur I guess, he’s talking about Ƒ and ƒ. — The problem is not the (input) encoding, this can be solved with \DeclareUnicodeCharacter or the newunicodechar package. You will need a font that includes those glyphs. (The Libertine family does this with XeLaTeX.) Commented Oct 16, 2013 at 0:11

2 Answers 2

5

The glyphs Ƒ and ƒ can be used with the T4 font encoding with \m F and \m F. To use them with the UTF8 input encoding, one can use the newunicodechar and its \newunicodechar macro

\newunicodechar{ƒ}{{\fontencoding{T4}\selectfont\m f}}
\newunicodechar{Ƒ}{{\fontencoding{T4}\selectfont\m F}}

Unfortunately, they seem to only exist in Bitmap versions.

Code

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T4, OT1]{fontenc}
\usepackage{newunicodechar}
\newunicodechar{ƒ}{{\fontencoding{T4}\selectfont\m f}}
\newunicodechar{Ƒ}{{\fontencoding{T4}\selectfont\m F}}
\begin{document}
abcdeƒgh ABCDEƑGH
\end{document}

Output

enter image description here

1
3

With XeLaTeX:

\documentclass{article}
\usepackage{fontspec}

\setmainfont{Calibri}  %% Calibri Unicode MS

\begin{document}

ƒ  Ƒ 

\end{document}

enter image description here

You must log in to answer this question.

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