3

I have

\documentclass{article}
\usepackage{pdfpages}

\begin{document}   
Lorem. Read the answer for this from the document \ref{3rd_part}
....

\appendix
\includepdf[pages={-}]{3rd_part.pdf} \label{3rd_part} % NOT working, problem here!
\end{document}

This labelling does not work.

There is no need for

  • no figure environment
  • no table environment
  • no caption,

since the document is only a WYSIWYG made document.

How can you label an included pdfdocument and refer to it?

  • 1
  • Seems to be very complicated solution there. I just want to refer to the included document, not to a particular page. – Léo Léopold Hertz 준영 Jun 22 '14 at 18:47
  • 1
    Since what you are refering to is an Appendix, you should instead start an appendinx chapter and then refer to that chapter. It is by far more elegant, structured and simpler – Mario S. E. Jun 22 '14 at 18:50
  • 1
    The problem is: What is contained in your pdf page? Is it text, graphics, tables, all of it? Do you need a figure or table environment? Should it have a caption? Shall there be an entry to some list of anything? – user31729 Jun 22 '14 at 18:52
  • 1
    @ChristianHupfer no no, I mean, after the \appendix command start a chapter where the pdf is \includepdf. This would allow to actually name the Appendix, e.g. "Math demonstration" and also would allow to \ref it later, since you are pointing to the beginning of the chapter – Mario S. E. Jun 22 '14 at 19:03
3

What about something like this?

\documentclass{book}
\usepackage{pdfpages}

\begin{document}   
Lorem. Read the answer for this from the document located in Appendix~\ref{3rdpart}

\appendix
\chapter{Appendix Name}\label{3rdpart}
\includepdf[pages={-}]{uporto-feup.pdf}  % Your pdf file here instead of uporto-feup.pdf

\end{document}

Since you seem to be using \appendix, you can start it by a chapter ---which would be not numbered, but in letter sequence (A, B, C, et.c) and you can refer to it back from your document.

Like this:

enter image description here

And then you'll have at your appendix something like this:

enter image description here

My \includedpdf is the figure you see, the logo of the University of Porto

| improve this answer | |

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