Inserting a picture into a latex document

  • Context: LaTeX 
  • Thread starter Thread starter jimmycricket
  • Start date Start date
  • Tags Tags
    Latex Picture
Click For Summary
SUMMARY

To successfully insert a picture into a LaTeX document using pdfTeX, the graphicx package must be included. The user attempted to use the command \includegraphics[scale=2]{riemann sphere.jpg} but encountered an unwanted caption. The absence of the graphicx package likely caused issues with image formats, as LaTeX defaults to accepting only PS and EPS files without it. A minimal working example should include the document class and necessary packages to troubleshoot effectively.

PREREQUISITES
  • Familiarity with LaTeX document structure
  • Understanding of the graphicx package for image handling
  • Knowledge of pdfTeX for compiling LaTeX documents
  • Basic skills in using WinEdt as a LaTeX editor
NEXT STEPS
  • Learn how to use the graphicx package in LaTeX
  • Research common image formats compatible with LaTeX
  • Explore troubleshooting techniques for LaTeX document compilation
  • Understand the role of captions in LaTeX figures and how to customize them
USEFUL FOR

LaTeX beginners, students writing academic papers, and anyone looking to incorporate images into their LaTeX documents effectively.

jimmycricket
Messages
115
Reaction score
2
I am trying to insert a picture into a document I am writing up but when I use pdftexify there seems to be a caption next to the image that I cannot remove. I am using winedt and am very new to Latex so bear that in mind. This is the operation I used:
\includegraphics[scale=2]{riemann sphere.jpg}
 
Physics news on Phys.org
Can you attach the .tex file for a complete (short) document that doesn't work properly? i.e something like
Code:
\documentclass{...}
\usepackage{...}
\begin{document}
\includegraphics[scale=2]{riemann sphere.jpg} 
\end{document}
Without that, we are guessing what the problem is - especially since you didn't tell us what the "caption" says.
 
You need the graphicx package for jpg images. I think without it, latex only accepts ps and eps?
Code:
\usepackage{graphicx}
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
5K