I have a very large LaTeX document which can't be compiled because of following error:
/usr/share/texlive/texmf-dist/tex/latex/pdfx/pdfx.sty:1398:
Package inputenc Er
ror: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.1398 \ifcat ^^c0
\active \pdf@activecharstrue\fi
The problem is, I'm not able to find the problematic symbol, because of the document's size.
I wanted to "replace" the character with something different like this
\DeclareUnicodeCharacter{^^c0}{?????}
But it doesn't work. Am I doing something wrong or this character simply can't be replaced? Or do you have any other tip how to find the mistake?
I'm using pdflatex
.
I've read several other questions, but I've not been able to solve this anyway:
- package inputenc error : the keyboard character used is undefined
- æ ø å giving "Package inputenc Error: Keyboard character used is undefined"
- Unicode characters in pdflatex output using hexcode without UTF-8 input
EDIT
It's this document - I've deleted almost all the text in main.tex
and it's still not working...
EDIT 2
Ok, the problem is obviously caused by pdfx
package. I've tried to move it before inputenc
include like this
\RequirePackage[a-1b]{pdfx}
\RequirePackage[latin1, utf8]{inputenc},
but now it gives me another error:
/usr/share/texlive/texmf-dist/tex/latex/base/article.cls:235:
LaTeX Error: Comm
and \maketitle already defined.
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.235 }
grep
them, but not always.pdfx
should be loaded beforeinputenc
, but the class does the converse.pdfx
is the problem, but it didn't solve it completely. I've added info to my question.