Page Layout\includepdf error

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
sil
Posts: 12
Joined: Mon Sep 14, 2009 4:22 pm

\includepdf error

Post by sil »

Hi,

I would like to insert external pdf pages in my latex pdf. I have seen that it can be achieved using the \includepdf keyword, but I've got the following error:

Code: Select all

!Undefined control sequence
\AM@indfile@i ...docname \relax \AM@IfFileExists ..
I have just added the keyword: \includepdf[pages=1-9]{./results/hola} as well as the \usepackage[final]{pdfpages}.

Thks!!

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\includepdf error

Post by localghost »

For certain you compiled with pdflatex. If not, do so.


Best regards
Thorsten
sil
Posts: 12
Joined: Mon Sep 14, 2009 4:22 pm

Re: \includepdf error

Post by sil »

Yes, I compile with pdflatex..

Silvia
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\includepdf error

Post by localghost »

Build a minimal working example (MWE), add the \listfiles command as very first line, browse the log file and post the section between *File List* and ***********. Note that this MWE has to reproduce exactly the given error.

Make sure that all pages you want to include exist in the concerned document. If you want to include all pages, use an abbreviated version.

Code: Select all

\includepdf[pages=-]{./results/hola}
sil
Posts: 12
Joined: Mon Sep 14, 2009 4:22 pm

\includepdf error

Post by sil »

Hi, here you have my working example and the *File list* in the .log file:

\listfiles
\documentclass[a4paper,oneside,11pt]{book}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[final]{pdfpages}

\begin{document}

\chapter{Chemical reactivity}

\includepdf[pages=-]{./results/sc3n}

\end{document}


*File List*
book.cls 2005/09/16 v1.4f Standard LaTeX document class
bk11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
babel.sty 2008/07/06 v3.8l The Babel package
bblopts.cfg 2006/07/31 v1.0 MiKTeX 'babel' configuration
english.ldf 2005/03/30 v3.3o English support from the babel system
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
pdftex.def 2008/09/08 v0.04l Graphics/color for pdfTeX
pdfpages.sty 2009/02/07 v0.4g Insert pages of external PDF documents (AM)
ifthen.sty 2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
calc.sty 2005/08/06 v4.2 Infix arithmetic (KKT,FJ)
eso-pic.sty 1998/07/11 v0.5 eso-pic -- extension to `everyshi' (RN)
everyshi.sty 1999/06/08 v2.03 EveryShipout Package (MS)
pppdftex.def 2004/01/31 v0.3e Pdfpages driver for pdfTeX (AM)
supp-pdf.tex
***********
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\includepdf error

Post by localghost »

At first for future posts please use the code environment for tagging code as demanded in Section 2.4 of the Board Rules.

There is a small detail I missed in my first reply. I think that the relative path to the document that shall be included may be given in wrong syntax. Try a double period.

Code: Select all

\includepdf[pages=-]{../results/sc3n}
sil
Posts: 12
Joined: Mon Sep 14, 2009 4:22 pm

Re: \includepdf error

Post by sil »

I'm sorry, today is the first day that I ask for something in the forum, so I haven't read Section 2.4 of the Board Rules. Anyway, thanks for letting me know.

I have tried adding a double period, but I've got the same error..
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: \includepdf error

Post by Stefan Kottwitz »

Hi sil,

perhaps just try it first with sc3n.pdf situated in the same directory like the main tex document instead of using the results folder, just to test if it's working, knowing that could help to examine it further.

Stefan
LaTeX.org admin
sil
Posts: 12
Joined: Mon Sep 14, 2009 4:22 pm

Re: \includepdf error

Post by sil »

Hi Stefan,

Thanks for your answer. I have tried to copy the pdf in the same folder but I get the same error :cry:

Silvia
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: \includepdf error

Post by localghost »

In this case it is suggesting that the PDF file itself might be the cause. If not too large, you could post it here as attachment.
Post Reply