将页面垂直和水平划分为大小相同的部分

将页面垂直和水平划分为大小相同的部分

我是一篇面向数学家和物理学家的学生论文的编辑,该论文完全是通过 LaTeX 制作的。

现在我需要制作一个包含几个不同部分的页面,很像普通报纸的广告页面,但不知道从哪里开始让它工作。

我的主要问题是我想让水平分隔符跨列对齐,但我不知道该怎么做。我几乎在整份报纸中都使用了 multicols 包,但它只处理垂直分隔符。

有没有办法跳转到页面上的固定高度?比如

\vspace{*go down to the 1/4 mark of the page-height*}

或者甚至有一个更方便的解决方案,不需要多列(也许是迷你页面?不幸的是,我对此了解不多)?

下面是我想要的。左边这样就行了,但如果我可以在右边展示自由,那就太理想了。如果有办法给单个框框起来,我会非常高兴。

_____________       _____________
|     |     |       |     |     |
|_____|_____|       |_____|     |
|     |     |   /   |     |_____|
|_____|_____|       |_____|     |
|     |     |       |     |     |
|_____|_____|       |_____|_____|

答案1

编辑可能有更好的方法来实现这一点,但这是一个使用 的解决方案tikz。事实证明,将节点固定在角落更容易south west

\documentclass{article}
\usepackage{tikz}
\usepackage{lipsum}

\begin{document}

\begin{tikzpicture}[scale=\textwidth/15.2cm,
                    every node/.style={anchor=south west, rectangle,rounded corners}]
  \node at (0,0) [draw,text width=0.5\textwidth] {
     \vbox to 0.3\textheight{\lipsum[66]}
  };
  \node at (0,7.7) [draw,text width=0.5\textwidth] {
     \vbox to 0.3\textheight{\lipsum[75]}
  };
  \node at (0,15.4) [draw,text width=0.5\textwidth] {
     \vbox to 0.3\textheight{\lipsum[66]}
  };
  \node at (8,0) [draw,text width=0.5\textwidth] {
     \vbox to 0.46\textheight{\lipsum[75]}
  };
  \node at (8,11.5) [draw,text width=0.5\textwidth] {
     \vbox to 0.46\textheight{\lipsum[66]}
  };
\end{tikzpicture}

\end{document}

我认为这应该相当可靠,特别是如果你将内容放在minipge环境中。输出如下:

在此处输入图片描述

这是第一个等距布局的更简单的方法。

\documentclass{article}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{lipsum}
\begin{document}

\begin{tabularx}{\textwidth}{|X|X|}\hline
  \vbox to 0.3\textheight{\lipsum[66]}
& \vbox to 0.3\textheight{\lipsum[75]} \\ \hline
  \vbox to 0.3\textheight{\lipsum[66]}
& \vbox to 0.3\textheight{\lipsum[75]} \\ \hline
  \vbox to 0.3\textheight{\lipsum[66]}
& \vbox to 0.3\textheight{\lipsum[75]} \\ \hline
\end{tabularx}

\end{document}

得出的结果为:

在此处输入图片描述

相关内容