Take the 2-minute tour ×

I just started using the tikzscale package for loading and correctly resizing tikz pictures. The problem is that the package replaces the original \includegraphics command with its own procedures to make loading of different file formats consistent. However, I think this might lead to compatibility problems with other packages since I get error loading these two packages together but each one works fine separately.

My question is how I can only call the \includegraphics command from tikzscale package when I want to load a tikz picture, but for the rest of figures I use the original \includegraphics ? Can I somehow define a command to load tikz pictures with tikzscale function while leaving the original command intact? I tried with pdfLaTeX and LuaLaTeX.

share|improve this question

closed as too localized by percusse, Andrew Swann, Kurt, Stefan Kottwitz Mar 12 '13 at 15:48


Actually the package does exactly the converse: it replaces \includegraphics with its own version everywhere except in a tikzpicture environment. –  egreg Jan 11 '13 at 14:43
AFAIK the "old" \includegraphics is used if the extension of the graphic being included is .png or .pdf or .jpg, so no incompatibility is created (unless you have a tikz picture with the same filename). –  JLDiaz Jan 11 '13 at 14:45
I am experiencing problem using psfrag with auto-pst-psf and declare the extensions by \DeclareGraphicsExtensions{.eps}. For loading normal figures (not tikz) If all the files are in the working folder everything is fine, but if relative addresses are used e.g. \graphicspath{{../fl1/fl2/}}, Then it returns an error. if I remove tikzscale package then it works fine. –  M.Reza Jan 11 '13 at 14:55

Browse other questions tagged or ask your own question.