Includes PDF documents, using the 'pdfpages' package.
To include multiple pages, use the "pages"-option,
- which must be inserted to "Options" (Format "PDFLaTeX").
+ which must be inserted to "Options".
Examples:
* pages={x-y} (for a range of pages)
* pages={x,y,z} (for specific pages)
Requirement "pdfpages"
ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
FormatEnd
- Format PDFLaTeX
- TransformOption Rotate RotationLatexOption
- TransformOption Resize ResizeLatexOption
- TransformOption Extra ExtraOption
- Option Arg "[$$Extra,$$Rotate,$$Resize]"
- Product "\\includepdf$$Arg{$$AbsOrRelPathMaster$$Basename}"
- UpdateFormat pdf
- UpdateResult "$$AbsPath$$Basename.pdf"
- Requirement "pdfpages"
- ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
- FormatEnd
Format Ascii
Product "[PDFPages: $$FName]"
FormatEnd
}
external::Template::Formats::const_iterator cit =
et.formats.find(format);
- if (cit == et.formats.end())
- return;
+
+ if (cit == et.formats.end()) {
+ // If the template has not specified a PDFLaTeX output,
+ // we try the LaTeX format.
+ if (format == "PDFLaTeX") {
+ cit = et.formats.find("LaTeX");
+ if (cit == et.formats.end())
+ return;
+ } else
+ return;
+ }
// FIXME: We don't need that always
features.require("lyxdot");