I'm using the \usepackage{pdfpages} to include PDF files.

I'm using the following convention: \includepdf[pages={1-7}]{myFile.pdf}

My question is, how can you include a link to a folder that contains the PDF?

I tried this with no luck: \includepdf[pages={1-7}]{Resources/myFile.pdf}

My folder "Resources" is in the same folder as my Tex doc and the error I get trying to find the location is this:

Missing $ inserted ../Resources/myFile.pdf}.

You either need to specify the full path e.g.:


or specify it relative to the current directory e.g. suppose your document is /home/jane/mydirectory/mydoc.tex and you need to include /home/jane/myotherdirectory/Resources/myfile.pdf then:


If Resources is a sub-directory of your current directory, try:

  • 1
    I'm still getting an error: Missing $ inserted ../Resources/myFile.pdf}. My folder "Resources" is in the same folder as my Tex doc. – Reanimation Dec 11 '13 at 2:37
  • 1
    This is why you need to provide a MWE - so that people have sufficient information about the problem you're trying to solve to not have to guess the details! Anyway, I've edited to accommodate this third possibility. – cfr Dec 11 '13 at 2:44
  • 1
    A MWE isn't applicable in this situation as you do not have the files or locations I'm testing, therefore is irrelevant. I provided enough details, including unsuccessful attempts. However if other questions arise, I shall bare that in mind. Your third option solved my problem. Thanks. – Reanimation Dec 11 '13 at 3:05
  • Sorry. I just realised that I somehow missed the information concerning the relative location of the pdf to be included when I first read your question. (That's why my initial attempt at an answer didn't address that location and why I said you didn't provide enough details.) Again, my apologies. – cfr Dec 11 '13 at 3:21
  • Cfr does not need to apologize as you are on a correct track. – kiss my armpit Dec 12 '13 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.