Directories and Files
~/graphics/
~/graphics/main.tex
~/graphics/section/
~/graphics/section/section1.tex
~/graphics/section/image.pdf
The main.tex file contains:
Code: Select all
\documentclass[12pt]{article}
\usepackage{graphicx}
\graphicspath{{~/graphics/section}}
\begin{document}
\input{section/section1}
\end{document}
Code: Select all
\section{Section One}
\includegraphics[width=2in]{image}
Code: Select all
) (./section/section1.tex
! Missing \endcsname inserted.
<to be read again>
\protect
l.5 \includegraphics[width=2in]{image}
If I simply omit the \graphicspath command and use \includegraphics{image}, I get an error "! LaTeX Error: File `image' not found."
--
Added: here is the log file for the quoted code.