I'm trying to insert a pdf as a cover page in a ConTeXt document. I've read Including pages from PDF documents and have come up with the following MWE,

  \externalfigure[cover][width=\paperwidth, height=\paperheight]



Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

The problem is that nothing after the cover page gets processed at all and thus I end up with a 1 page pdf as output. The result is the same even if the external figure is a JPG image file instead of PDF.

  • 2
    You have to add \starttext at the begin of your document and \stoptext at the end. When you use \startTEXpage without a preceding \starttext the document ends with the next \stopTEXpage and everything after it is ignored. – Wolfgang Schuster Nov 20 '16 at 19:00
  • Yeah, that did it. Thanks. Can you please add it as an answer so that I may accept it? – Khalid Hussain Nov 20 '16 at 19:25

When a document contain a \startTEXpage command without a previous \starttext (or \startcomponent etc.) the following \stopTEXpage marks the end of the document and everything after it is ignored.

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.