我正在创建一个简历我对布局的要求相当严格。
我希望每页都有一个固定的页眉。我希望在页面左侧有一栏包含我的个人介绍。它以一张图片开始,然后是我的个人信件。如果第一页放不下,我希望它继续出现在后续页面上。
列的右侧是我实际的简历区域,我在这里以结构化的方式写下以前的工作、教育等。这部分内容也延续到后面的页面,直到所有内容都包括在内。为了清晰起见,我创建了一张布局图片,它基本正确,唯一的例外是我不想要一个参差不齐的右侧:
我使用过不少 LaTeX,但我不知道如何实现这种布局。我并不局限于 LaTeX,只要是基于 TeX 的我就很高兴。也许使用 ConTeX 更容易?或者甚至是纯 TeX?
我考虑过使用 Scribus 并渲染包含 LaTeX 输出的框架。这会变得有点混乱,因为我必须在页面开始和结束处手动剪切和粘贴。
答案1
我最初的想法是使用flowfram
。这绝对是可行的,但我不认为这是最好的方法。无论如何,这里有一个使用的解决方案flowfram
:
\documentclass{article}
\usepackage[margin=1in]{geometry}% http://ctan.org/pkg/geometry
\usepackage[draft]{flowfram}% http://ctan.org/pkg/flowfram
\usepackage{graphicx,lipsum}% http://ctan.org/pkg/{graphicx,lipsum}
% First page setup
\newstaticframe{\textwidth}{0.1\textheight}
{0pt}{.9\textheight}[headertext]
\newdynamicframe[1]{0.30\textwidth}{0.85\textheight}
{0pt}{0pt}[leftcolumn1]
\newdynamicframe[2]{0.30\textwidth}{0.85\textheight}
{0pt}{0pt}[leftcolumn2]
\newdynamicframe[3]{0.30\textwidth}{0.85\textheight}
{0pt}{0pt}[leftcolumn3]
\newflowframe{0.65\textwidth}{0.85\textheight}
{0.35\textwidth}{0pt}[rightcolumn]
\begin{document}
\begin{staticcontents*}{headertext}
This is your header text. This is your header text. This is your header text.
This is your header text. This is your header text. This is your header text.
This is your header text. This is your header text. This is your header text.
\end{staticcontents*}
\begin{dynamiccontents*}{leftcolumn1}
\centering\includegraphics[width=.8\linewidth]{example-image-a}\par\bigskip
\raggedright Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Ut purus elit, vestibulum ut, placerat ac,
adipiscing vitae, felis. Curabitur dictum gravida
mauris. Nam arcu libero, nonummy eget, consectetuer
id, vulputate a, magna. Donec vehicula augue eu
neque. Pellentesque habitant morbi tristique
senectus et netus et malesuada fames ac turpis egestas.
Mauris ut leo. Cras viverra metus rhoncus sem.
Nulla et lectus vestibulum urna fringilla ultrices.
Phasellus eu tellus sit amet tortor gravida placerat.
Integer sapien est, iaculis in, pretium quis, viverra
ac, nunc. Praesent eget sem vel leo ultrices
bibendum. Aenean faucibus. Morbi dolor nulla,
malesuada eu, pulvinar at, mollis ac, nulla. Curabitur
auctor semper nulla. Donec varius orci eget risus.
Duis nibh mi, congue eu, accumsan eleifend,
sagittis quis, diam. Duis eget orci sit amet orci dignissim
rutrum. Nam dui ligula, fringilla a, euismod sodales,
sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam
lacus libero, pretium at, lobortis vitae, ultricies et,
tellus.
\continueonframe[\textit{\small \ldots continued}]{leftcolumn2}
\raggedright Donec aliquet, tortor sed accumsan
bibendum, erat ligula aliquet magna, vitae ornare odio
metus a mi. Morbi ac orci et nisl hendrerit mollis.
Suspendisse ut massa. Cras nec ante. Pellentesque
a nulla. Cum sociis natoque penatibus et magnis
dis parturient montes, nascetur ridiculus mus.
Aliquam tincidunt urna. Nulla ullamcorper vestibulum
turpis. Pellentesque cursus luctus mauris.
Nulla malesuada porttitor diam. Donec felis erat,
congue non, volutpat at, tincidunt tristique, libero.
Vivamus viverra fermentum felis. Donec nonummy
pellentesque ante. Phasellus adipiscing semper elit.
Proin fermentum massa ac quam. Sed diam turpis,
molestie vitae, placerat a, molestie nec, leo. Maece-
nas lacinia. Nam ipsum ligula, eleifend at, accumsan
nec, suscipit a, ipsum. Morbi blandit ligula feugiat
magna. Nunc eleifend consequat lorem. Sed lacinia
nulla vitae enim. Pellentesque tincidunt purus vel
magna. Integer non enim. Praesent euismod nunc
eu purus. Donec bibendum quam in tellus. Nullam
cursus pulvinar lectus. Donec et mi. Nam vulpu-
tate metus eu enim. Vestibulum pellentesque felis
eu massa.\par
\end{dynamiccontents*}
\section{Some heading}\lipsum[1]
\section{Some heading}\lipsum[2]
\section{Some heading}\lipsum[3]
\section{Some heading}\lipsum[4]
\section{Some heading}\lipsum[5]
\end{document}
标题设置在 中staticframe
,而左侧列是一组dynamicframe
。实际的“结构化方式”内容包含在常规 中flowframe
。手动的决定使用 break 来让“个人陈述”从一页流到下一页。请注意使用 break\par
来“完成”最后一段并获得设置\raggedright
。
我用过geometry
增加文本块,同时激活draft
包选项以flowfram
显示网格布局。
额外的使用参考flowfram
:三栏文字,包含2\columnwidth