Parcolumns:不平衡列

Parcolumns:不平衡列

我正在使用 parcolumns 来帮助设计简历,但是在左右列中添加大量额外空间给我带来了一些麻烦。

代码(使用 XeLaTeX 编译):

\documentclass[10pt]{article}
\renewcommand*{\familydefault}{\sfdefault} % Sans serif font
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text}

\usepackage{xunicode,xltxtra,url,parskip}
\usepackage{parcolumns}
\usepackage{lipsum}

\usepackage[usenames,dvipsnames]{xcolor}
\definecolor{lightblue}{RGB}{48,138,255}
\newcommand{\blue}[1]{\color{lightblue}{#1}}

\usepackage[margin=0.5in]{geometry}

\usepackage{hyperref}

\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\raggedright\bfseries}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections
\titleformat{\subsection}{\Large\raggedright}{}{1em}{} % Formatting subsection
\titlespacing{\subsection}{0pt}{3pt}{3pt}



\begin{document}

\pagestyle{empty} % Removes page numbering

\begin{parcolumns}[sloppy,colwidths={1=0.28\textwidth}]{2}

%%%%%%%%%%%%%%%LEFT COLUMN
\colchunk[1]{%
\par{\Huge \bfseries Joel \\ Hawkins}
\section{}

\begin{center}
\begin{minipage}{0.26\textwidth} 
\lipsum[1]
\end{minipage}
\end{center}

\begin{center}
\includegraphics[width=0.28\textwidth]{square}
\end{center}

\begin{center}
Portland, OR \\
+1 (555) 555 - 5555 \\
\href{mailto:[email protected]}{[email protected]} \\
\href{http://google.com}{my webpage}
\end{center}

\null
}
%%%%%%%%%%%%%%%RIGHT COLUMN
\colchunk[2]{%


%%%%Education
\section{Education}

\begin{tabular}{l l}

\textbf{Reed College}                   & \textbf{\blue{Bachelor of Arts in Physics}} \\
\textbf{\blue{Current}}                         & \footnotesize \textbf{Class of 2015} \\
\footnotesize Portland, OR              & \\
\multicolumn{2}{c}{} \\
%------------------------------------------------

\textbf{Boise High}              & \footnotesize \textbf{Class of 2011} \\
\textbf{School}             & \small Recipient of Academic Achievement Award \\
\footnotesize{Boise, ID}        & \\
\multicolumn{2}{c}{} \\

\end{tabular}

%%%%Work
\section{Work}

\begin{tabular}{l l}

\textbf{Reed College}                   & \textbf{\blue{Apple Certified Hardware Technician}} \\
\textbf{\blue{Current}}                 & \textbf{Computer Hardware Services} \\
September 2011                      & Solve students' \& faculty's hardware/software problems \\
\footnotesize{Portland, OR}             & Facilitate \& automate software deployment for all machines \\
                                    & Repair machines \& provide support for students/faculty \\
\multicolumn{2}{c}{} \\
%------------------------------------------------

\textbf{PCS Learning Center}                & \textbf{\blue{Assistant Teacher}} \\
Summer 2012                         & Bolstered scientific skills in students (physics, robotics, code) \\
\footnotesize{Boise, ID}                    & Designed \& managed company website incl.~photo editing \\
\multicolumn{2}{c}{} \\
%------------------------------------------------

\textbf{AeroSpecialties Inc.}               & \textbf{\blue{Machine Shop Assistant}} \\
2010-2011                           & Operated CNC machines \\
\footnotesize{Boise, ID}                    & Assembled parts according to industry regulations \\
                                    & Performed extended data entry for migrating computer systems \\
\multicolumn{2}{c}{} \\
\end{tabular}

\null
}
\end{parcolumns}


\end{document}

得到如下结果(省略了一些不相关的代码):

分隔柱可增加额外空间

显然,左栏中我的名字之间有太多空白,工作和经验部分之间也有多余的空间,而这并不是我想要的。我觉得它试图以奇怪的方式平衡列?

也许您知道我在这里想做什么,但我还没有找到其他可以有效创建两列宽度不等的包(有点像并排显示两个小页面?)。我试过使用\vfill、,\null\mbox{}这些都不起作用。我如何让它不添加空间并均匀分布列?

答案1

只需使用两个小页面并手动添加所需的间距。

\documentclass[10pt]{article}
\renewcommand*{\familydefault}{\sfdefault} % Sans serif font
\usepackage{fontspec}

\usepackage{url,parskip,tabularx}
\usepackage{lipsum}

\usepackage[usenames,dvipsnames]{xcolor}
\definecolor{lightblue}{RGB}{48,138,255}
\newcommand{\blue}[1]{\color{lightblue}{#1}}

\usepackage[margin=0.5in]{geometry}

\usepackage{hyperref}

\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\raggedright\bfseries}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections
\titleformat{\subsection}{\Large\raggedright}{}{1em}{} % Formatting subsection
\titlespacing{\subsection}{0pt}{3pt}{3pt}



\begin{document}

\pagestyle{empty} % Removes page numbering

%%%%%%%%%%%%%%%LEFT COLUMN
\begin{minipage}[t]{.28\textwidth}
\vspace*{0pt}
{\Huge \bfseries Joel \\ Hawkins\par}

\bigskip
\hrule
\bigskip

\lipsum[1]

\begin{center}
\includegraphics[width=0.28\textwidth]{square}
\end{center}

\begin{center}
Portland, OR \\
+1 (555) 555 - 5555 \\
\href{mailto:[email protected]}{[email protected]} \\
\href{http://google.com}{my webpage}
\end{center}

\end{minipage}\hfill
\begin{minipage}[t]{.68\textwidth}
\vspace*{0pt}
%%%%Education
\section{Education}

\begin{tabularx}{\textwidth}{l X}

\textbf{Reed College}                   & \textbf{\blue{Bachelor of Arts in Physics}} \\
\textbf{\blue{Current}}                         & \footnotesize \textbf{Class of 2015} \\
\footnotesize Portland, OR              & \\
\multicolumn{2}{c}{} \\
%------------------------------------------------

\textbf{Boise High}              & \footnotesize \textbf{Class of 2011} \\
\textbf{School}             & \small Recipient of Academic Achievement Award \\
\footnotesize{Boise, ID}        & \\
\end{tabularx}

%%%%Work

\bigskip

\section{Work}

\begin{tabularx}{\textwidth}{l X}

\textbf{Reed College}                   & \textbf{\blue{Apple Certified Hardware Technician}} \\
\textbf{\blue{Current}}                 & \textbf{Computer Hardware Services} \\
September 2011                      & Solve students' \& faculty's hardware/software problems \\
\footnotesize{Portland, OR}             & Facilitate \& automate software deployment for all machines \\
                                    & Repair machines \& provide support for students/faculty \\
\multicolumn{2}{c}{} \\
%------------------------------------------------

\textbf{PCS Learning Center}                & \textbf{\blue{Assistant Teacher}} \\
Summer 2012                         & Bolstered scientific skills in students (physics, robotics, code) \\
\footnotesize{Boise, ID}                    & Designed \& managed company website incl.~photo editing \\
\multicolumn{2}{c}{} \\
%------------------------------------------------

\textbf{AeroSpecialties Inc.}               & \textbf{\blue{Machine Shop Assistant}} \\
2010-2011                           & Operated CNC machines \\
\footnotesize{Boise, ID}                    & Assembled parts according to industry regulations \\
                                    & Performed extended data entry for migrating computer systems \\
\multicolumn{2}{c}{} \\
\end{tabularx}

\end{minipage}


\end{document}

在此处输入图片描述

相关内容