我想使用LaTeX对页面进行布局,并在预定义的位置分发文本片段/块。
像这样的东西
+--------------------------------------------------------+
| +-------------+ |
| |bla bla bla| |
| |bla bl ab lab| +-------------+ |
| |bla bla bla| |bla bla bla| |
| |bla bl ab lab| |bla bl ab lab| |
| +-------------+ |bla bla bla| |
| |bla bl ab lab| |
| +-------------+ +----+ |
| |more| |
| Ich und Du |text| |
| Müllers Kuh +----+ |
| |
+--------------------------------------------------------+我的猜测是我应该使用minipage或使用像这样的盒子
\begin{minipage}[b][2cm]{8cm}
\mbox{more} \newline
\mbox{text} \newline
\end{minipage}有没有你知道的教程或者“怎么做”的页面,告诉我怎么做--不是list all LaTeX idioms,我有一些关于这方面的书。但我的书更专注于命令列表,科学出版和数学..
发布于 2010-04-25 23:48:51
如果你想要更“固定”的布局,那么我可能会考虑Tikz,并使用它提供的绝对定位。Tikz手册详细介绍了这一点(在执行texdoc pgf之后搜索“引用当前页面节点-绝对定位”)。一个简单的例子:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[remember picture,overlay]
\node [xshift=1cm,yshift=1cm] at (current page.south west)
[text width=7cm,fill=red!20,rounded corners,above right]
{
This is an absolutely positioned text in the
lower left corner. No shipout-hackery is used.
};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay]
\node [xshift=10cm,yshift=5cm] at (current page.south west)
[text width=7cm,fill=green!20,rounded corners,above right]
{
A second box placed absolutely.
};
\end{tikzpicture}
\end{document}https://stackoverflow.com/questions/2707725
复制相似问题