我想要特定的第二页(第一页的背面)

我想要特定的第二页(第一页的背面)

我想用 longtable(或 tabularx 或 csvauto)生成一张发票(带有 address-window),因此内容可能超过一页。

我想要实现的目标 - 但不知道如何解决这个问题 - 是我想在第二页上有一些解释性文字(一些法律内容)(没有其他内容)(双面输出)。

我可以使用一些 pstricks 将第二页(单独生成)移动到第一页后面,但无法进行页码编号和页面引用。(因为我使用引用功能来调整“法律事务页面”以仅显示必要的信息)

我尝试使用浮动图形(选项 p),但这会将特殊页面移至末尾。

有任何想法吗?

答案1

以下可能符合您的要求:使用包时,atbegshi页码在为 1 时增加(这是第 2 页,我不确定页码计数器的自动增加具体何时发生)。法律问题放在文档末尾,但页码设置为 2。使用这种方法,页面引用似乎可以正常工作。创建 pdf 时,您可以使用pdftk或类似的外部工具移动页面,甚至可以使用不同的页面顺序打印文档。

梅威瑟:

\documentclass{article}
\usepackage{atbegshi}

\AtBeginShipout{
    \ifnum\value{page}=1
        \addtocounter{page}{1}
    \fi
}

\begin{document}
\section{Invoice}
\label{sec:invone}
See Section \ref{sec:invtwo} on page \pageref{sec:invtwo}.

\noindent See also Section \ref{sec:invthree} on page \pageref{sec:invthree}.
\clearpage
\section{Invoice continued}
\label{sec:invtwo}
\clearpage
\section{Invoice again continued}
\label{sec:invthree}
\clearpage
\setcounter{page}{2}
\section{Legal matter}
\end{document}

结果:

在此处输入图片描述

相关内容