I have a number of documents (jupyter notebooks) that are created and accessed essentially using a browser interface, and because of the browser interface the cleanest way to include external vector pictures in a document is using the SVG format.
Those documents can be converted to LaTeX documents, and while it's easy to add further material to the produced file, in terms of loading packages, redefining commands etc it is not so easy to modify the rest of the produced text, that in particular comprises lines like
\includegraphics{my_picture.svg}
that pdflatex does not appreciate at all.
My question, is it possible to redefine \includegraphics so that
pdflatex tries to load my_picture.pdf when it is instructed to
load my_picture.svg?
I know that I can have an automatic conversion from .svg to pdf but
due to other reasons I already have the .pdf files (that are, in
effect, produced using LateX and later converted to .svg)
P.S. It is possible to post-process the LaTeX file, as produced by the conversion procedure, before running pdflatex (or should I say pre-process?) but I'd like to avoid this intermediate step.
\includegraphics{my_picture}without extension. – Bernard Jun 24 '16 at 11:30