当我去包含一个 PDF 时,我的输出似乎总是在实际包含的 PDF 之前输出一个空白页。
我检查了我的环境,但无济于事,环境中没有任何东西导致出现此空白页。
这是一个错误吗?有人修复了吗?
编辑:这是 LaTeX 的片段:
\documentclass[12pt,english]{extarticle}
\usepackage{fontspec}
\usepackage[letterpaper]{geometry}
\geometry{verbose,
tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
\begin{document}
\noindent
\includepdf[
pagecommand={\thispagestyle{plain}}]
{\string"/Volumes/path-to-pdf/
\string"\string"path-to-pdf\string"}
\end{document}
这是测试 lyx 文件:
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass extarticle
\begin_preamble
\end_preamble
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman Times
\font_sans Default
\font_typewriter Default
\font_math auto
\font_default_family default
\use_non_tex_fonts true
\font_sc true
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\default_output_format pdf4
\output_sync 0
\bibtex_command default
\index_command default
\float_placement H
\paperfontsize 12
\spacing single
\use_hyperref false
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle false
\papersize letterpaper
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 0
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 0
\use_package mhchem 1
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date true
\justification false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth -2
\tocdepth 2
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes true
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header
\begin_body
\begin_layout Standard
\noindent
\begin_inset External
template PDFPages
filename /Path-to-pdf/
extra LaTeX "pagecommand={\thispagestyle{plain}}"
\end_inset
\end_layout
\end_body
\end_document
请记住,您必须在 LyX 文件的“Path-to-pdf”中插入您自己的文档。