如何強製文字僅顯示在偶數/奇數頁

如何強製文字僅顯示在偶數/奇數頁

我正在嘗試用一些不尋常的格式排版一份手稿。這是一份雙面手稿,正文僅在偶數頁上。奇數頁包含與偶數頁相關的附加資訊。當沒有此類附加資訊時,奇數頁應為空白。

因此,例如,給定一個六頁文檔,範例佈局如下:

  1. 空白的
  2. 關於 foo 的訊息
  3. 空白的
  4. 有關 foo 的資訊(續)
  5. 關於酒吧的詩
  6. 關於酒吧的信息

誰能想出一種方法來用 LaTeX 實現這一點?

答案1

問題可能只是您“跳過輸出頁面”,使用以下一些策略性插入可以輕鬆規避這一問題\afterpage{\mbox{}\clearpage}

在此輸入影像描述

\documentclass{article}

\usepackage[paper=a6paper]{geometry}
\usepackage{lipsum,afterpage}
\usepackage[strict]{changepage}

\newcommand{\nextoddpage}{\checkoddpage\ifoddpage\cleardoublepage\else\clearpage\fi}
\newcommand{\nextevenpage}{\checkoddpage\ifoddpage\clearpage\else\cleardoublepage\fi}

\begin{document}

% Document layout
% ---------------
% 1 Blank
% 2 Info about foo
% 3 Blank
% 4 Info about foo (continued)
% 5 Poem about Bar
% 6 Info about Bar

\mbox{}% 1 Blank

\nextevenpage

\afterpage{\mbox{}\nextevenpage}% 3 Blank
\lipsum[1-3]% 2+4 Info about foo (continued) (Lorem ipsum...felis eu massa.)

\nextoddpage

\lipsum[49]% 5 Poem about Bar (Vivamus sodales...rhoncus eu, magna.)

\nextevenpage

\lipsum[50]% Info about Bar (Quisque facilisis...Suspendisse arcu.)

\end{document}

指某東西的用途changepage可能沒有必要,具體取決於您的實施。

相關內容