It was a pleasant surprise for me to find out that it is possible to include image named “K_{2,3}.pdf
” into TeX document using \includegraphics
(and pdfLaTeX
).
\documentclass{article}
\usepackage{graphicx}
\newcommand{\namedpicture}[1]{\begin{figure}\centering\includegraphics{#1}\caption{$#1$}\end{figure}}
\begin{document}
\pagestyle{empty}
\namedpicture{K_{2,3}}
\end{document}
Now I have a question, which doesn't seem to have practical meaning, but is still interesting:) Is it possible to include picture with name containing %
or imbalanced figure brackets? I. e. I have files %.pdf
, {.pdf
and }.pdf
. How to include any of them?
%.pdf
, I'd say you have a peculiar taste for file name choices.;-)
– egreg Nov 12 '13 at 8:35%.pdf
just for testing. :) But some name likeTop 3%.pdf
is not too weird. – Smylic Nov 12 '13 at 12:40