Is there a way to \includegraphics{A.png.png}, for instance?
In this case, I'm analyzing a particular graphic, and then generating others based on it. I could excise the first extension from the new names, but I didn't this time. Is there a way to display the images in a LaTeX document, or do I have to go back and re-name everything manually?
Also, when I display a graphic, I'd like to have a bit of blank space around it on all 4 sides. A \framebox does exactly what I want, except that I'd rather not have the frame itself. I looked around but couldn't figure out a way to do something equivalent without the frame. Any suggestions?
Graphics, Figures & Tables ⇒ Graphics with periods in the name
Graphics with periods in the name
I'm not exactly sure what you're asking, but try adding this to your preamble:Lindley wrote:Is there a way to \includegraphics{A.png.png}, for instance?
In this case, I'm analyzing a particular graphic, and then generating others based on it. I could excise the first extension from the new names, but I didn't this time. Is there a way to display the images in a LaTeX document, or do I have to go back
and re-name everything manually?
\DeclareGraphicsRule{.png.png}{png}{.png.png}{}
That should tell it to treat the .png.png extension as .png.
But even if you did want to rename everything, you shouldn't have to do it manually! You can batch rename... even on lowly old windows.
The \makebox command is exactly like \framebox without the frame. There are other ways of doing this too.Also, when I display a graphic, I'd like to have a bit of blank space around it on all 4 sides. A \framebox does exactly what I want, except that I'd rather not have the frame itself. I looked around but couldn't figure out a way to do something equivalent without the frame. Any suggestions?
Re: Graphics with periods in the name
Hmm, that's useful to know, but it probably doesn't help much in my situation since I can't predict all extensions (there's a float value in the filename too, I just didn't mention that for brevity). I'll need to work something else out, then.
I know the \makebox documentation says it's identical to \framebox, but it sure didn't look that way when I tested it. I didn't see the whitespace border I was hoping for, and the graphics were still obscuring the table hlines (which is what I wanted to avoid).
I know the \makebox documentation says it's identical to \framebox, but it sure didn't look that way when I tested it. I didn't see the whitespace border I was hoping for, and the graphics were still obscuring the table hlines (which is what I wanted to avoid).
Graphics with periods in the name
Does the \DeclareGraphicsRule command help with the .png.png problem?
As for your other problem, we'd need to see some sample code, in the form of a minimal working example.
As for your other problem, we'd need to see some sample code, in the form of a minimal working example.
Re: Graphics with periods in the name
use the grffile package
Re: Graphics with periods in the name
I just re-ran the C++ program which generates my Latex code and the images in question, making sure I modified the filenames to avoid the problem.
The \framebox/makebox issue still persists, but I'm not worrying about it for now.
The \framebox/makebox issue still persists, but I'm not worrying about it for now.