将页面拆分为四个部分

将页面拆分为四个部分

我正在尝试弄清楚如何将页面分成四个象限(2 行 2 列)来模拟时间管理矩阵。我尝试使用 longtable,但第二行只能在第一行之后开始。我想要做的是每页都有固定大小的行和列,并且特定单元格的内容应该溢出到下一页的相应单元格,而无需调整行的大小。我在 minipage 上遇到了类似的问题。这就是我现在的情况,

\documentclass{article}

\usepackage{lipsum}
\usepackage{longtable}

\begin{document}

\begin{longtable}{p{0.5\textwidth}|p{0.4\textwidth}}
    \endfirsthead
    \endhead
    \endfoot
    \endlastfoot

    \lipsum[2] & \lipsum[1] \\
    \hline
    \lipsum[3] & \\
\end{longtable}

\end{document}

还有另一个类似的问题但在同一页上,单元格 1 中的文本流入单元格 2。这不是我想要的。

编辑:我想要做的一个例子是向第 1 页的单元格 (1,1) 添加内容。当单元格已满时,即使第 1 页上的其他单元格为空,内容也应该继续到第 2 页的单元格 (1,1)。

答案1

仅记录一个不太优雅的单阶段过程示例,其中包含静力学、动力学和流程框架(如果我看到了 Werner 的回应,我就不会这么写):

\documentclass{article}
\usepackage{xcolor}
\usepackage[margin=2cm]{geometry}
\usepackage{flowfram}
\usepackage{lipsum}
\usepackage{microtype}

\newstaticframe*[all]{0.45\textwidth}{.4\textheight}
{0\textwidth}{.6\textheight}[UI]

\newdynamicframe*[1]{0.45\textwidth}{.4\textheight}
{0\textwidth}{0.15\textheight}[UN]

\newdynamicframe*[2]{0.45\textwidth}{.4\textheight}
{0\textwidth}{0.15\textheight}[UNb]

\newstaticframe*[1]{0.45\textwidth}{.4\textheight}
{.5\textwidth}{.6\textheight}[NI]

\newstaticframe*[2]{0.45\textwidth}{.4\textheight}
{.5\textwidth}{.6\textheight}[NIb]

\newflowframe*[all]{0.45\textwidth}{.4\textheight}
{0.5\textwidth}{0.15\textheight}[NN]

\begin{document}

\begin{staticcontents*}{UI}
\color{red} 
{\bf The urgent and important}\\
\begin{itemize}
\item Remove your hand from the fire.
\item Get dressed before going outside. 
\item Remember to breathe.
\item Remember to breathe again.    
\item Urgent and important issues should always 
be visible, put them on every page.
\end{itemize}
\end{staticcontents*}


\begin{dynamiccontents*}{UN}
\color{blue} 
{\bf The urgent but not important}\\
\begin{itemize}
\item Meeting of prevention of UFO invasion in ten minutes. 
\item Pick up the **** rining phone
\item Call some day to my girldfriend 
\item Writing my diary  
\end{itemize}
\continueonframe[More in next page]{UNb} 
\color{blue}
Who is calling so many times by the ******* phone? It's a bore. 

\end{dynamiccontents*}


\begin{staticcontents*}{NI}
\color{magenta} {\bf The really important, but no urgent}\\
\begin{itemize}
\item Remember to go to sleep
\item Remember to eat   
\end{itemize}
\continueonframe[More in next page]{NIb} 
\color{magenta} 
\begin{itemize}
\item Go to work tomorrow
\item Don't worry   
\item Be happy  
\end{itemize}
\end{staticcontents*}


% Text with free flow 
{\bf The wasting time things}\\
\begin{enumerate}
\item \lipsum[2]
\item \lipsum[1]    
\item \lipsum[3] \appenddynamiccontents*{UNb}
{Calling again.I will ask my girlfriend if she know who is.}
\item \lipsum[4]
\item \lipsum[5]
\item \lipsum[6]
\item \lipsum[7]
\item \lipsum[8]
\item \lipsum[9]
\item \lipsum[10]
\end{enumerate}

\end{document}

答案2

以下需要两个阶段的过程:

  1. 创建 4 个文档:4 个象限各一个,并使用flowfram在页面上定位该块。例如:

    • \newflowframe{.45\textwidth}{.45\textheight}{0pt}{.55\textheight}
    • \newflowframe{.45\textwidth}{.45\textheight}{.55\textwidth}{.55\textheight}
    • \newflowframe{.45\textwidth}{.45\textheight}{0pt}{0pt}
    • \newflowframe{.45\textwidth}{.45\textheight}{.55\textwidth}{0pt}

    将是 Q1(左上)、Q2(右上)、Q3(左下)和 Q4(右下)的适当定义。

  2. 创建一个辅助/最终文档,其中包含四个相互叠加的初步文档。

相关内容