The error is as follows
)) (C:\Program Files\MiKTeX\tex/latex-dev/graphics\mathcolor.ltx))
! Argument of � has an extra }.
<inserted text>
\par
l.8 \end{document}
?
This is my code
\documentclass[a4paper]{article}
\usepackage[utf8x]{inputenc}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\begin{document}
This is a \href{www.duckduckgo.com}{hyperlink}
\end{document}
If I remove either of the \usepackage's, the code compiles. Although of course, removing the second package would mean I cannot use hyperlinks in my document. So my question is: Can I safely remove \usepackage[utf8x]{inputenc} from all my files, or would it cause other issues?
More background: I updated all my packages after a long while and I got this error, and narrowed the issue down to here. Why is this issue caused?
\usepackage[utf8x]{inputenc}can be safely removed, since a few years LaTeX automatically assumes utf8 for the input. – Marijn Aug 14 '22 at 11:08inputencand/or compile withLuaLaTeX(which would simply ignore it). – Ingmar Aug 14 '22 at 11:18utf8xfor something, I thought the general advice of "don't useutf8x" given in the proposed duplicate would apply here. Maybe I was wrong and this question could be reopened and answered with "this is fixed with a newly released update". – Marijn Aug 15 '22 at 06:42