将扫描的照片分割到多页上(具有预定义的分割点)

将扫描的照片分割到多页上(具有预定义的分割点)

我是一个 (La)TeX 新手!我想将 A4 扫描图像分割成两页!有没有可以实现此目的的软件包,或者是否可以手动完成此操作以便能够定义准确的分割点?

答案1

您没有提供任何有关图像和页面布局的具体细节,因此我将在此描述我使用的一般技术。您可以将图像分成两部分以实现中间插页,也可以隐藏其中的一部分,如下面两张图片所示,这是我从硬盘上获得的回答

在此处输入图片描述在此处输入图片描述

这是 MWE。您可以使用\hspace它来向左或向右移动图像。如果您只有一张图片,您可以让它溢出到右侧(如果超出页面,则不会显示),然后在下一页将其插入到相同的位置,但现在使用将\hspace*{-\textwidth}其拉到左侧。这样,您就不需要事先对图像进行切片。如果您想更详细地解释您想要实现的布局,我将扩展示例和代码。您还应该看看 LaTeX3棺材

\documentclass[a4paper]{article}
\usepackage[top=5mm,left=5mm,right=5mm,bottom=10mm]{geometry}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{lipsum}
\usepackage{caption}
\pagestyle{empty}
\begin{document}
\mbox{}
\clearpage

\vspace*{2\baselineskip}
\textbf{\LARGE FUN IN AMERICA}
\vspace*{0.8cm}
\begin{figure}[h] % can be left out
\hskip-0.5cm\includegraphics[width=1.055\textwidth]{./graphics/funinamerica}\\[-17pt]

\hfill{\tiny\bf Fun in America from a page spread in Life Magazine circa 1940's. \quad}\hfill\hfill\\

\par\bigskip
\centerline{\LARGE\bf AMERICANS ARE HAVING FUN}
\end{figure} % can be left out but do adjust spacing as needed
\unskip

\begin{multicols}{2}
\setlength{\linewidth}{0.3\textwidth}
\lipsum[1]

\end{multicols}

\clearpage
\vspace*{-2pt}
\begin{minipage}[c]{0.33\textwidth}
\hskip-1cm\includegraphics[width=\textwidth]{./graphics/funinamerica01}\\[3pt]
\hskip-1.5cm\begin{minipage}{4.7cm}
\footnotesize \textbf{AIRING} in Central Park during the 1860s was favorite Sunday diversion for rich New Yorkers who, between 4 and 5 o'clock, turned out in fashionable carriages for trot around the 10 miles of park roads.
\end{minipage}
\end{minipage}\hspace{20pt}
\begin{minipage}[c]{0.5\textwidth}
\hskip-0.5cm\begin{minipage}[c]{\textwidth}
\vspace{1cm}
\includegraphics[width=\textwidth]{./graphics/pologrounds}\\
\footnotesize\textbf{PROFESSIONAL BASEBALL} was well launched  by 1880s and teams like Giants were publicised by huge posters used grounds of New York Polo Club (above) unil 1889, then moved further uptown.
\end{minipage}
\vskip5pt
\hskip25pt\begin{minipage}[t]{\textwidth}
\includegraphics[width=\textwidth]{./graphics/amusementpark}\\[-17pt]
\captionof*{figure}{\footnotesize \textbf{AMUSEMENT PARK}, called Elysioan Fields, in Hoboken, NJ. sported a hand-operatedpleasure railway with tiny carriages for 6c visitors could ride the railway, row boats and swing in a big gondola.}
\end{minipage}
\vskip5pt
\hskip-0.5cm\begin{minipage}[t]{\textwidth}
\includegraphics[width=8cm]{./graphics/tippling}\\
\begin{minipage}[t]{8cm}\footnotesize \textbf{TIPPLING} is varying degrees was pastine from coast to frontier. New York rendevous was Gem Saloon where gentlemen in top hats should shake hands with mayor and swill down oysters and flips.\end{minipage}\vspace{-1cm}
\end{minipage}
\end{minipage}

\end{document}

可以使用更简单的图像和代码,如下所示。

在此处输入图片描述在此处输入图片描述

\minipage{\textwidth}
\includegraphics[height=\textheight]{./graphics/firesidecomfort}
\endminipage

\hspace*{-1\textwidth}\minipage[t]{\textwidth}\includegraphics[height=\textheight]{./graphics/firesidecomfort}
\endminipage

由于我们调整了图片大小,\textheight图片溢出到了右边。那么我们在下一页唯一需要做的就是把它拉下来\textwidth。非常简单而且功能强大。

相关内容