Quantcast
Channel: name.bb appears above picture when using includegraphics - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 2

name.bb appears above picture when using includegraphics

$
0
0

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:

result from xelatex

XeLaTeX added text schematOgolny.bb above the picture. This does not however happens when I use PDFLaTeX

result from 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}

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images