Leporello 有什么小窍门吗?

Leporello 有什么小窍门吗?

是否有一些软件包可以帮助用户创建 leporello 版本?考虑到折痕、长尺寸纸张等。(leporello 是手风琴版)即:leporello 的示例

答案1

巧合的是,我刚刚认识了pgfpages.sty。事实证明,只需稍加修改,它就可以完成这种布局——除此之外,还可以完成很多其他功能。我在 PGF 手册中读到了这一点,并查看了 pgfpages.sty 以寻求灵感。这是一个非常有趣的练习!代码太长了,我深表歉意。显然,这可以轻松地根据您的确切需求进行定制。

我在代码中添加了一些注释。

\documentclass{article}

\usepackage[papersize={7in,10in}]{geometry}
\usepackage{pgfpages}
\usepackage{tikz}
\usepackage{everypage}%% For fold marks

\pgfpagesdeclarelayout{Leporello16}
{
  \edef\pgfpageoptionheight{\the\paperheight} 
  \edef\pgfpageoptionwidth{\the\paperwidth}
  \edef\pgfpageoptionborder{0pt}
}
{
  \pgfpagesphysicalpageoptions
  {%
    logical pages=16,%
    physical height=\pgfpageoptionheight,%
    physical width=\pgfpageoptionwidth%
  }
  \pgfpageslogicalpageoptions{1}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.03125\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{2}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.09375\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{3}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.15625\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{4}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.21875\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{5}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.28125\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{6}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.34375\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{7}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.40625\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{8}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.46875\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{9}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.53125\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{10}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.59375\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{11}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.65625\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{12}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.71875\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{13}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.78125\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{14}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.84375\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{15}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.90625\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{16}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=.0625\pgfphysicalwidth,%
    resized height=\pgfphysicalheight,%
    center=\pgfpoint{.96875\pgfphysicalwidth}{.5\pgfphysicalheight}%
  }%
}

%% Comment-out the following line while you prepare the content.
%% Uncomment-out the following line when you want to create the Leporello document.
\pgfpagesuselayout{Leporello16}[physical paper height = 10in, physical paper width = 112in]

\pagestyle{empty}

%% From everypage.sty -- adds the fold marks:
\AddEverypageHook{\tikz[remember picture,overlay] \draw[thin] (current page.north east) -- ++(0,-1);}

\begin{document}

\centering

\foreach \i in {1,...,16}{%
\resizebox{!}{2in}{\Huge\i}%
\clearpage
}

\end{document}

这是最终结果,大大减少了:

带有折叠标记的插图效果更好。

之后

我突然想到,如果没有折叠标记,这将毫无用处。我已经以一般的方式指出了如何添加它们——在代码中注明。第一次尝试时,您必须对其进行两次 TeX 才能看到折叠标记。

很久以后

OP 要求提供一个垂直示例。以下是 4 页示例:

\documentclass{article}

\usepackage[papersize={7in,10in}]{geometry}
\usepackage{pgfpages}
\usepackage{tikz}
\usepackage{everypage}%% For fold marks

\pgfpagesdeclarelayout{Leporello4v}
{
  \edef\pgfpageoptionheight{\the\paperheight} 
  \edef\pgfpageoptionwidth{\the\paperwidth}
  \edef\pgfpageoptionborder{0pt}
}
{
  \pgfpagesphysicalpageoptions
  {%
    logical pages=4,%
    physical height=\pgfpageoptionheight,%
    physical width=\pgfpageoptionwidth%
  }
  \pgfpageslogicalpageoptions{1}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=\pgfphysicalwidth,%
    resized height=0.25\pgfphysicalheight,%
    center=\pgfpoint{.5\pgfphysicalwidth}{.875\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{2}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=\pgfphysicalwidth,%
    resized height=0.25\pgfphysicalheight,%
    center=\pgfpoint{.5\pgfphysicalwidth}{.625\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{3}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=\pgfphysicalwidth,%
    resized height=0.25\pgfphysicalheight,%
    center=\pgfpoint{.5\pgfphysicalwidth}{.375\pgfphysicalheight}%
  }%
  \pgfpageslogicalpageoptions{4}
  {%
    border shrink=\pgfpageoptionborder,%
    resized width=\pgfphysicalwidth,%
    resized height=0.25\pgfphysicalheight,%
    center=\pgfpoint{.5\pgfphysicalwidth}{.125\pgfphysicalheight}%
  }%
}


\pgfpagesuselayout{Leporello4v}[physical paper height = 40in, physical paper width = 7in]

\pagestyle{empty}

%% From everypage.sty:
\AddEverypageHook{%
    \tikz[remember picture,overlay] \draw[thin] (current page.south east) -- ++(-1,0);%
}

\begin{document}

\centering

\foreach \i in {1,...,4}{%
\resizebox{!}{2in}{\Huge\i}%
\clearpage
}

\end{document}

它看起来像这样:

垂直 Leporello。

答案2

我不知道有任何专门为此目的而设计的包,最接近我想到的是@doncherry 提到的他们的评论. 不太优雅解决方法可以通过使用几何学多色软件包。geometry软件包可帮助您定义特定的纸张尺寸,同时multicol允许您创建虚拟(非技术意义上的)页面。以下是带有\columnbreak纸张折叠指示器选项的最小示例:

\documentclass{article}
\usepackage{lipsum}
\usepackage[paperwidth=50cm, paperheight=15cm,margin=1cm]{geometry}
\usepackage{multicol}
\setlength{\columnseprule}{0.4pt}

\pagestyle{empty}
\begin{document}
\begin{multicols*}{4}{
    \lipsum[1-4]
    \columnbreak
    \lipsum[5-10]
}
\end{multicols*}
\end{document}

在此处输入图片描述 点击放大

相关内容