Results 1 to 6 of 6
Like Tree1Thanks
  • 1 Post By TheEmptySet

Math Help - Inserting a PDF document into Latex

  1. #1
    Member
    Joined
    Feb 2009
    Posts
    98

    Inserting a PDF document into Latex

    Here is what I have:


    \documentclass{article}
    \usepackage{graphicx}


    \documentclass{article}
    \usepackage{graphicx}
    \usepackage{pdfpages}

    \begin{document}
    \includepdf{Topics}
    \end{document}


    I have been trying to insert a PDF document into Latex without any success. I have used both TexMaker and WinEDT. When I am using a PDF file, I make sure to compile using "PDFLatex", but it simply is not working. It gives me the error:

    ! Package pdfpages Error: Cannot find file `Topics'. See the pdfpages package documentation 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.

    I have even tried to use the eps file and I compiled using "Latex" . It compiles it, but the result is not what I am expecting, it just gives me 2 pages , one with the words 2 pdf.2 and the 2nd page has an empty frame with the words \AM@currentdocname .png

    Any idea why this is not working properly?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Behold, the power of SARDINES!
    TheEmptySet's Avatar
    Joined
    Feb 2008
    From
    Yuma, AZ, USA
    Posts
    3,764
    Thanks
    78

    Re: Inserting a PDF document into Latex

    Quote Originally Posted by math8 View Post
    Here is what I have:


    \documentclass{article}
    \usepackage{graphicx}


    \documentclass{article}
    \usepackage{graphicx}
    \usepackage{pdfpages}

    \begin{document}
    \includepdf{Topics}
    \end{document}


    I have been trying to insert a PDF document into Latex without any success. I have used both TexMaker and WinEDT. When I am using a PDF file, I make sure to compile using "PDFLatex", but it simply is not working. It gives me the error:

    ! Package pdfpages Error: Cannot find file `Topics'. See the pdfpages package documentation 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.

    I have even tried to use the eps file and I compiled using "Latex" . It compiles it, but the result is not what I am expecting, it just gives me 2 pages , one with the words 2 pdf.2 and the 2nd page has an empty frame with the words \AM@currentdocname .png

    Any idea why this is not working properly?
    I am assuming that it is a typo that you are repeating the document class and graphix package.


    try adding the .pdf extention to the document and make sure it is in the same directory as the .tex file.

    I was able to complie using this code in TexNicCenter

    \documentclass{article}
    \usepackage{graphicx}
    \usepackage{pdfpages}

    \begin{document}

    This is a test.


    \includepdf{Quadratic.pdf}
    \end{document}

    It put this is a test on the first page and then inserted the .pdf on the next page.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Member
    Joined
    Feb 2009
    Posts
    98

    Re: Inserting a PDF document into Latex

    Yes, the first two lines were a typo.
    Thanks a lot I put the pdf document in the same directory as the .tex file, and it's basically working now for " \documentclass{article} " .

    The only problem, is that, I actually needed this for a " \documentclass{beamer} " type of document for a powerpoint presentation, and when I use the same thing, it doesn't work anymore. The slide which is supposed to contain the pdf document comes out blank.

    Here is what I have:

    \documentclass{beamer}
    \usetheme{Madrid} % My favorite!
    \setbeamertemplate{footline}[frame number]
    \setbeamercovered{transparent}
    \setbeamertemplate{navigation symbols}{}
    \usepackage{graphicx}
    \usepackage{color}
    % Theme for beamer presentation.
    \usepackage{beamerthemesplit}
    \usepackage{makeidx}
    \usepackage{latexsym}
    \usepackage{amsthm}
    \usepackage{verbatim}
    \usepackage[tikz]{bclogo}
    \usepackage{pdfpages}


    \title{Hello}
    \begin{document}

    \begin{frame}
    Frame 1
    \end{frame}

    \begin{frame}
    \includepdf{Topics}
    \end{frame}

    \end{document}
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Behold, the power of SARDINES!
    TheEmptySet's Avatar
    Joined
    Feb 2008
    From
    Yuma, AZ, USA
    Posts
    3,764
    Thanks
    78

    Re: Inserting a PDF document into Latex

    I don't know why it is not showing up in the beamer class, but this may work as a work around

    \begin{figure}[h]
    \centering
    \includegraphics[width=1.00\textwidth]{Quadratic.pdf}
    \end{figure}

    This will insert the .pdf file as an image.

    Let me know if this works for you. I will see if I can think of anything else.

    TES
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Member
    Joined
    Feb 2009
    Posts
    98

    Re: Inserting a PDF document into Latex

    This actually works! Thanks
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Behold, the power of SARDINES!
    TheEmptySet's Avatar
    Joined
    Feb 2008
    From
    Yuma, AZ, USA
    Posts
    3,764
    Thanks
    78

    Re: Inserting a PDF document into Latex

    Quote Originally Posted by math8 View Post
    This actually works! Thanks
    Cool. I am glad it works
    Thanks from math8
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. How to embed LaTeX into an HTML document.
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: December 16th 2010, 01:21 PM
  2. Problem inserting image in LaTeX file
    Posted in the LaTeX Help Forum
    Replies: 15
    Last Post: July 12th 2010, 06:47 AM
  3. Creating 2 columns in latex document
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: June 27th 2010, 10:01 AM
  4. Inserting a caret in LaTeX
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: January 18th 2010, 11:06 AM
  5. Inserting Graphs Into Latex
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: September 13th 2009, 09:52 PM

Search Tags


/mathhelpforum @mathhelpforum