Problem configuring "Figures" in Latex

Asked

Viewed 1,350 times

0

Hi, I’m starting to work on Latex and I found a problem I can’t solve. When inserting a picture in Latex everything is fine, however, before the image (in pdf) appears her name, disturbing the text and getting misaligned. Below is the line of code used and the result.

Code:

\begin{figure}[!h]
    \includegraphics[scale=0.6]{imagens/Questionario Flipped Classroom.pdf}
    \caption{Tabela com os resultados obtidos através de um questionário respondido pelos alunos que frequentaram a metodologia ativa de Flipped Classroom}
    \label{fig: quest fc}
\end{figure}

Upshot:

inserir a descrição da imagem aqui

  • Tries to put in the file name: imagens/"Questionario Flipped Classroom".pdf, with the quotation marks.

  • So neither the image appears, only a text written the line of code and a square.

  • And if you "put everything inside the quotes"?

1 answer

2


The problem is the spaces in the image path, include the package \usepackage[space]{grffile} in your Latex.

Follow an example code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\usepackage[space]{grffile}

\begin{document}
\begin{figure}[!htb]
    \centering
    \includegraphics[scale=0.6]{imagens/Questionario Flipped Classroom.pdf}
    \caption{Tabela com os resultados obtidos através de um questionário respondido pelos alunos que frequentaram a metodologia ativa de Flipped Classroom}
    \label{fig: quest fc}
\end{figure}
\end{document}

See on Overleaf

Reference

How to include Graphics with Spaces in their path?

  • Thank you very much, it worked out here!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.