Graphics, Figures & TablesInsert PDF Document

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
math8
Posts: 9
Joined: Fri Oct 05, 2012 11:19 pm

Insert PDF Document

Post by math8 »

I have been trying to insert a PDF document without any success. I have used both TeXmaker and WinEdt. When I am using a PDF file, I make sure to compile using PDFLaTeX, and I have even tried to use an EPS file and I compiled with LaTeX. It still doesn't work. Each time, it gives me the same error:

Code: Select all

! LaTeX Error: File `Topics' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
But I can assure you that both files "Topics.pdf" and "Topics.eps" exist and are on my computer. Here is what I have:

Code: Select all

\documentclass{article}
\usepackage{graphicx}
  
\begin{document}  
\begin{figure*}[t]
\centering
\includegraphics[width=1.0\textwidth]{Topics}
\caption{Test}
\end{figure*}
\end{document
Any suggestion on how to make this work?
Last edited by Stefan Kottwitz on Sat Oct 06, 2012 12:39 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Insert PDF Document

Post by svend_tveskaeg »

Your code (with at extra `}' at the end) compiles just fine for me. I use

Code: Select all

\documentclass{article}
\usepackage{graphicx}

\begin{document} 
\begin{figure*}[t]
\centering
\includegraphics[width=1.0\textwidth]{segla1s}
\caption{Test}
\end{figure*}
\end{document}
with one of the seals from Aarhus University as test picture. I compile using

Code: Select all

pdflatex <filename>.tex
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
math8
Posts: 9
Joined: Fri Oct 05, 2012 11:19 pm

Insert PDF Document

Post by math8 »

I made sure to include the missing brace at the end of \end{document. But it still giving me the same error. It says

Code: Select all

! LaTeX Error: File `Topics' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
I am not sure what this means :(.

Also, can you explain what you mean by you compile using:

Code: Select all

pdflatex <filename>.tex
I am using a computer with Windows 7.
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Insert PDF Document

Post by svend_tveskaeg »

math8 wrote:I made sure to include the missing "}" at the end of \end{document
But it still giving me the same error. It says

! LaTeX Error: File `Topics' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

I am not sure what this means :(.
Give us a minimal working example to work with.
math8 wrote:Also, can you explain what you mean by you compile using: pdflatex <filename>.tex
I compile the test document with the PDFLaTeX driver.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply