Troubleshooting Image Display Issues in LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter fergzzq
  • Start date Start date
  • Tags Tags
    Images Latex
Click For Summary

Discussion Overview

The discussion revolves around troubleshooting issues related to displaying images in LaTeX documents. Participants share their experiences and solutions regarding the use of various image formats and LaTeX commands, focusing on the technical aspects of image inclusion and potential settings that may affect display.

Discussion Character

  • Technical explanation, Debate/contested, Exploratory

Main Points Raised

  • One participant describes using the command \insertgraphic with a .jpg file but only sees a box with the image name instead of the image itself, suggesting a potential issue with settings.
  • Another participant suggests correcting a possible typo in the command and recommends using \includegraphics instead, questioning if the image file is in the correct folder.
  • A third participant confirms the use of \includegraphics with specific dimensions for their image but still encounters the same issue, speculating that settings might be incorrect.
  • A different participant shares their code for including a PDF image and mentions experiencing the same problem, considering whether it relates to using a PDF within another PDF document.
  • One participant identifies that the 'draft' option in their document class was causing the issue, and removing it allowed the image to display correctly.

Areas of Agreement / Disagreement

Participants express various issues with image display in LaTeX, with some suggesting different commands and settings. There is no consensus on a single solution, as multiple potential causes are discussed.

Contextual Notes

Participants mention specific commands and settings that may influence image display, such as file paths, document class options, and the use of different image formats. Some assumptions about the environment and configurations remain unverified.

fergzzq
Messages
2
Reaction score
0
Hi, I am new to LaTeX and am having trouble putting images up on a document; I am using TeXnicCenter (in it u can use .jpg or .pnp files aprently but not .ps). i use

\usepackage(graphicx)
...

\insertgraphic(sample.jpg)

which I thought should be enough to display the image. compiling gives no errors, but when i open the document in GSview or acrobat, I can see a box outlining the image with the name of the image between but not the image itself. what's the problem? thanks for the help, I really appreciate it!
 
Physics news on Phys.org
Well, firstly you should use {} instead of (), but I guess that's a typo on here. Erm.. I'm not sure, try using \includegraphics{filename.jpg}. Is the file "filename.jpg" in the correct folder?
 
thanks for the response; coincidentally enough, the image i am trying to use is called cristo.jpg haha ... yea that was a typo, I have it on the document as follows:

\usepackage{palatino,url,color,setspace,graphicx,rotating}
...
\begin{document}
\includegraphics[height=60mm]{cristo.jpg}
...
\end{document}

it seems like the program is recognizing the image, because the shape of the image is exactly like the cristo image (and i then tried another sample image which was a square, and the boundary show), for some reason it just prints the boundary and name but not the image itself when I compile ... could it be that my settings are wrong? I can't find anything...
thanks again!
 
Hello there,

I am using the code:
\begin{figure}
\includegraphics[totalheight=0.8\textheight,viewport=50 260 400 1000,clip]{C:/Costas/Ph.D/documentation/Chapters/Chapter3-Efficient structures/latex development/Book1.pdf} % or png,bmp,pdf
\caption{My pdf figure}
\end{figure}

and I have the same problem. The images don't show up only the rounding frames. I thought that this problem might be in an Adobe Reader add on , so I did corresponded with them, I had no reply so far.
Because I am using LATEX->PDF option I am not quite sure if this will work for a .pdf document nested in another .pdf document...
Thanks.
 
I had the same problem today and I figured out it was the option of 'draft' in my case. After I deleted 'draft' option \documentclass[12pt,a4paper, draft]{article}, the image was displayed.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
13K
  • · Replies 2 ·
Replies
2
Views
5K