微型页面链接

微型页面链接

假设您有一组 4 页:A、B、C 和 D。每页都有自己的图画和文字。我需要第 5 页由 A、B、C 和 D 组成,例如:

在此处输入图片描述

我希望它们可以相互关联,这样如果我对其中一个做了任何更改,它就会自动调整。我甚至不知道这是否可行,但我想我可以问一下。有人知道怎么做吗?

答案1

要生成“链接”到原始页面 A、B、C 和 D 的最后一个页面,您必须存储这些页面的内容并重新使用相同的存储内容来构建最后一个页面。

我们将定义四个盒子(\newsavebox),\savebox用每个页面的内容保存它们()并在相应的位置使用它们(\usebox)。

由于每个页面的内容会有几段,我们将其封装在一个 parbox 中\parbox{\linewidth}{<page content>}

最后,我们利用这些框构建最后一页。为了使框适合 2x2 阵列,我们对它们进行了缩放\scalebox{<factor>}{<box>}

对任何一个框所做的更改都将反映在相应的页面和最后一页上。

b

\documentclass[12pt,a4paper]{article}

\usepackage{graphicx}
    
\newsavebox{\PageA}
\savebox{\PageA}{% to page A
\parbox{\linewidth}{%
    \centering
    \includegraphics[width=0.7\linewidth]{example-image-a}
    \vspace*{50pt}
    
    text A
    
    Let us suppose that the noumena have nothing to do
    with necessity, since knowledge of the Categories is a
    posteriori.
}}
    
\newsavebox{\PageB}
\savebox{\PageB}{%to page B
    \parbox{\linewidth}{%
    \includegraphics[width=0.5\linewidth]{example-image-b}
    \vspace*{50pt}
    
    text B
    
    As is shown in the writings of Aristotle, the things
    in themselves (and it remains a mystery why this is the case) are a
    representation of time. Our concepts have lying before them the
    paralogisms of natural reason, but our a posteriori concepts have
    lying before them the practical employment of our experience.
}}

\newsavebox{\PageC}
\savebox{\PageC}{%to page C
    \parbox{\linewidth}{%
    \includegraphics[width=\linewidth]{example-image-c}
    \vspace*{50pt}
    
    text C
    
Therefore, we can deduce that the objects in space and
time (and I assert, however, that this is the case) have lying before
them the objects in space and time. Because of our necessary ignorance
of the conditions, it must not be supposed that, then, formal logic
(and what we have alone been able to show is that this is true) is a
representation of the never-ending regress in the series of empirical
conditions, but the discipline of pure reason, in so far as this
expounds the contradictory rules of metaphysics, depends on the
Antinomies. 

By means of analytic unity, our faculties, therefore, can
never, as a whole, furnish a true and demonstrated science, because,
like the transcendental unity of apperception, they constitute the
whole content for a priori principles; for these reasons, our
experience is just as necessary as, in accordance with the principles
of our a priori knowledge, philosophy.
}}

\newsavebox{\PageD}
\savebox{\PageD}{% to page D
    \parbox{\linewidth}{%
    \centering
    \includegraphics[width=0.3\linewidth]{example-image}
    \vspace*{50pt}
    
    text D
    
    Let us suppose that the noumena have nothing to do
    with necessity, since knowledge of the Categories is a
    posteriori. \vspace*{50pt}
    
    \includegraphics[width=0.3\linewidth]{example-image}
}}
    

\begin{document}
\centering  
    \usebox{\PageA}
    \clearpage
    
    \usebox{\PageB}
    \clearpage
    
    \usebox{\PageC}
    \clearpage
    
    \usebox{\PageD}
    \clearpage
    
    \scalebox{0.45}{\usebox{\PageA}}\hfill\scalebox{0.45}{\usebox{\PageB}} %first row
    
    \vspace*{100pt}
    
    \scalebox{0.4}{\usebox{\PageC}}\hfill\scalebox{0.55}{\usebox{\PageD}} %second row
\end{document}

相关内容