I'm starting a Modular Latex project for the first time and I'm having problems with adding figures. I'm using the \input{} command to add files to the main documento.tex as in the Latex/Modular Documents Wiki, but when I compile, there's this error message
! LaTeX Error: File `img/imgfuv2018Din1' not found.
I already tried to use the subfiles package and follow this, this and this suggestions, but neither of them worked
My project structure is like this
./documento.tex
./estilo.sty
./tex/
./img/
The documento.tex is
\documentclass[11pt,twocolumn]{article}
\usepackage{estilo}
\graphicspath{{img/},{..img/}}
\begin{document}
\input{tex/fuv2018_din_1}
\end{document}
and fuv2018_din_1.tex is
example text
\includegraphics[width=\textwidth]{img/imgfuv2018Din1}
Even when I put the \includegraphics command in the documento.tex or when I put the imgfuv2018Din1 file in the same directory it gives me the same error.
I use TexLive version 6.2.1. What am I doing wrong?
EDIT: the estilo.sty is a custom style file and I followed wiki's suggestion and is the following:
\ProvidesPackage{estilo}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\usepackage{fullpage}
\usepackage{amsmath}
\usepackage{graphicx}
..img/is a strange path. I assume you mean../img/. But it should work without that line. I'm not familiar withestilo. Is it a custom style file? I would not recommend that for a first project. Regardless, doesestilohave its own\usepackage{graphicx}? – Teepeemm Aug 13 '18 at 02:10fuv2018_din_1.texand images on the same folder as the maindocumento.tex, changing the path to../img/, and also putting the packages directly on the main file, but it still returns the same error. The graphics are PNG files and I'm compiling with PDFLaTeX, using Texmaker (also tried to compile in the terminal, but it's the same). – gmolnar Aug 14 '18 at 00:31