I've tried adding a picture using:
\begin{figure}[htb] \centering \textbf{bbb}\par\medskip \includegraphics[width=\textwidth]{schematOgolny.png} \captionof{figure}{sth} \label{aaa}\end{figure}
In the result I've got this:
XeLaTeX added text schematOgolny.bb
above the picture. This does not however happens when I use PDFLaTeX
I'm a bit hesitant towards using PDFLaTeX because for some reason utf8 is not supported (and I need utf8).
My question is how can I get rid of that extra text in XeLaTeX?
SOLUTION:
I had defined \graphicspath
for `graphicx library, which caused the issue. Thanks for @Teepeemm for pointing me in the right direction
EDIT:
This is minimal reproducable example:
\documentclass{article}\usepackage{graphicx}\usepackage{capt-of}% Problematic line (path does not need to actually exist):\graphicspath{ { C:/sth/PracInż/obrazy/ } }\begin{document}\begin{figure}[htb] \centering \textbf{bbb}\par\medskip \includegraphics[width=\textwidth]{schematOgolny.png} % Any picture will do \captionof{figure}{sth} \label{aaa}\end{figure}\end{document}