Graphics, Figures & TablesMissing \endcsname error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
rwdell
Posts: 1
Joined: Mon Nov 09, 2009 1:06 am

Missing \endcsname error

Post by rwdell »

Hi Everyone,

This is my first post on the LaTeX Community forum. I've been using LaTex for a couple years, but never tried to do anything complicated with it. I was wondering if anyone had any insight into an error message that I've been getting when I try to include a figure. It says:

Code: Select all

! Missing \endcsname inserted.
<to be read again>
        \protect
A minimum working example to get this error message is:

Code: Select all

\documentclass{article}
\usepackage{graphicx}

\begin{document}
\begin{figure}
\includegraphics{~/Documents/Computing/Placeholder.pdf}
\end{figure}

\end{document}
I do not seem to get the message if I don't include the full path of the the filename of the figure graphic. Am I just formatting the filename incorrectly? I'm using TexShop version 2.14.

Thanks,
Rebecca

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Missing \endcsname error

Post by localghost »

You can't use the tilde in the filename.


Best regards and welcome to the board
Thorsten¹
Post Reply