I'm trying to use the figcaps
package in an article to keep all figures at the end of the document. When I compile the following TeX code using pdflatex
I get the following error message:
! Package inputenc Error: Unicode char \u8:�oS not set up for use with LaTeX.
Although it says to an inputenc
error, when I try without using the figcaps
, everything works smoothly.
Below is an example to illustrate my issue. Please make sure you have an image file named image_file
. I have tried this sample a couple of times, and the error does not always raise, but in the PDF the captions look awful.
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[printfigures]{figcaps}
\begin{document}
\begin{figure}
\includegraphics[width=1.\textwidth]{image_file}
\caption{Location of the Southeast Brazilian Bight~(SBB) and detail of the São Sebastião Channel.}
\label{fig:Map}
\end{figure}
\end{document}
The error raises because I use a special character in the figure caption, in this case ã
and I suppose a similar error would rise using any of the following characters: ñ
, â
, Ü
, ...
I am aware that a workaround would be to use escaped codes such as \~a
, for example.
However, I usually find it annoying to use these escaped codes and try to avoid them. Is there any other option?
utf8x
, but it should be avoided, according to egreg, or God, as I like to call him.utf8x
.utf8x
.utf8x
but characters replaced with "[Pleaseinsertintopreamble]". Usinginputenc.sty 2015/03/17 v1.2c
andutf8x.def 2004/10/17
figcaps
's fault.