提问于:
浏览数:
2773
## 编译环境
操作系统
* [x] Windows 7/8/10
* [ ] macOS
* [ ] Linux
`若需勾选,请把[ ]改成[x]`
Tex发行版
* [x] TexLive `2019`
* [ ] MikTeX `版本号`
* [ ] CTeX
`若需勾选,请把[ ]改成[x]`
## 我的问题
我在用latex排版一个双栏的简历,请问为什么表格的长度和\rule的长度都设置的是\linewidth却不一样长?
代码:
```
\documentclass{article}
\usepackage{ctex}
\usepackage{xprintlen}
\usepackage{zhlipsum}
\usepackage{paracol}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{fontawesome}
\usepackage{paracol}
\usepackage{calc}
\usepackage{dashrule}
\usepackage[top=1.5cm,bottom=1.5cm,left=1.5cm,right=1.5cm]{geometry}
\setCJKfamilyfont{wxz}{wxz.ttf}
\newcommand{\wxz}{\CJKfamily{wxz}}
\newcommand{\divider}{\textcolor{gray!30}{\hdashrule{\linewidth}{0.6pt}{0.5ex}}\medskip}
\begin{document}
\thispagestyle{empty}
\noindent
\begin{minipage}[b][3cm][t]{0.8\textwidth}
{ \zihao{-0} \wxz 铁憨憨}
\\[0.8em]{\zihao{3} \heiti \color{red!60!black!} 你的求职意向或口号或座右铭}
\\[0.8em]
{\zihao{5} \color{red!60!black!} \faAt}\hspace{0.2em}balabalabalabala@bala.com \hspace{1em} %
{\zihao{5} \color{red!60!black!} \faPhone}\hspace{0.2em}15511008888 \hspace{1em} %
{\zihao{5} \color{red!60!black!} \faEnvelope}\hspace{0.2em} 北京市朝阳区高碑店镇balabala\hspace{1em}%
\\{\zihao{5} \color{red!60!black!} \faMapMarker}\hspace{0.2em} 山西省西山县高老庄 \hspace{1em}%
{\zihao{5} \color{red!60!black!} \ttfamily \bfseries QQ}\hspace{0.2em} 888888888 \hspace{1em}%
\end{minipage}
\hfill
\includegraphics[height=3cm]{qie}
\bigskip
\bigskip
\setlength{\columnsep}{5em}
\columnratio{0.7,0.3}
\setlength{\parskip}{0.5em}
\begin{paracol}{2}
{\zihao{-2} \color{red!30!black!} \noindent \textbf{教育背景}}\\ {\color{orange!60} \rule[0.5ex]{\columnwidth}{2pt}}
\smallskip
\noindent
\begin{tabular*}{\columnwidth}{@{}p{0.2\columnwidth}p{0.55\columnwidth}p{0.25\columnwidth}}
\faCalendar \enspace 2000-2014 & 本科\quad 应用统计学&家里蹲大学 \\
&\multicolumn{2}{l}{\textcolor{orange!60}{\faAngleDoubleRight}\quad 毕业论文:balabala}\\
&\multicolumn{2}{l}{\textcolor{orange!60}{\faAngleDoubleRight}\quad balabala}
\end{tabular*}\\[0.2em]
\divider\\
\begin{tabular*}{\columnwidth}{@{}p{0.2\columnwidth}p{0.55\columnwidth}p{0.25\columnwidth}}
\faCalendar \enspace 2000-2004& 硕士\quad 统计学&家里蹲大学 \\
&\multicolumn{2}{l}{\textcolor{orange!60}{\faAngleDoubleRight}\quad 毕业论文:balabala}\\
&\multicolumn{2}{l}{\textcolor{orange!60}{\faAngleDoubleRight}\quad balabala}
\end{tabular*}
{\zihao{-2} \color{red!30!black!} \noindent \textbf{科研项目}}\\ {\color{orange!60} \rule[0.5ex]{\columnwidth}{2pt}}
\smallskip
\noindent
\begin{tabular*}{\columnwidth}{@{}p{0.2\columnwidth}p{0.75\columnwidth}}
\faCalendar \enspace 2000-2004 & 项目名称 \\
&{\textcolor{orange!60}{\faAngleDoubleRight}\quad The detailS of your project }
\end{tabular*}\\[0.2em]
\divider\\
\begin{tabular*}{\columnwidth}{@{}p{0.2\columnwidth}p{0.75\columnwidth}}
\faCalendar \enspace 2000-2004 & 项目名称 \\
&{\textcolor{orange!60}{\faAngleDoubleRight}\quad The detailS of your project意层般,单重总歼者新。每建马先口住月大,究平克满现易手,省否何安苏京。两今此叫证程 }
\end{tabular*}
\smallskip
\noindent
{\zihao{-2} \color{red!30!black!} \noindent \textbf{获奖\&荣誉}}\\ {\color{orange!60} \rule[0.5ex]{\linewidth}{2pt}}\\%分隔线
%%%%%%%%%%%%%%%%%%%%%%%first%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular*}{\linewidth}{|@{}p{0.2\linewidth}|p{0.55\linewidth}|p{0.25\linewidth}|}\hline
\faCalendar \enspace 2000-2014 & 国家励志奖学金& \\
\hline
\end{tabular*}\\[0.2em]
%%%%%%%%%%%%%%%%%%%%%%%second%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular*}{\columnwidth}{@{}p{0.2\columnwidth}p{0.55\columnwidth}p{0.25\columnwidth}}
\faCalendar \enspace 2000-2014 & 高教社杯全国大学生数学建模竞赛& 全国一等奖 \\
\end{tabular*}\\[0.2em]
%%%%%%%%%%%%%%%%%%%%%%%third%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular*}{\linewidth}{|@{}p{0.2\linewidth}p{0.55\linewidth}p{0.25\linewidth}|}
\faCalendar \enspace 2000-2014 & 高教社杯全国大学生数学建模竞赛& 河北赛区一等奖 \\
\end{tabular*}\\[0.2em]
%%%%%%%%%%%%%%%%%%%%%%%first%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular*}{\columnwidth}{@{}p{0.2\columnwidth}p{0.55\columnwidth}p{0.25\columnwidth}}
\faCalendar \enspace 2000-2014 & “正大杯”第九届市场调查与分析大赛& 二等奖 \\
\end{tabular*}\\[0.2em]
%%%%%%%%%%%%%%%%%%%%%%%forth%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabular*}{\columnwidth}{@{}p{0.2\linewidth}p{0.55\linewidth}p{0.25\linewidth}}
\faCalendar \enspace 2000-2014 & 第十六届五一数学建模竞赛& 三等奖 \\
\end{tabular*}\\[0.2em]
\smallskip
\noindent
{\zihao{-2} \color{red!30!black!} \noindent \textbf{工作经历}}\\ {\color{orange!60} \rule[0.5ex]{\linewidth}{2pt}}\\%分隔线
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%左边栏%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\switchcolumn
{\zihao{-2} \color{red!30!black!} \noindent \textbf{自我评价}}\\ {\color{orange!60} \rule[0.5ex]{\columnwidth}{2pt}}
水厂共当而面三张,白家决空给意层般,单重总歼者新。每建马先口住月大,究平克满现易手,省否何安苏京。两今此叫证程事元七调联派业你,全它精据间属医拒严力步青。厂江内立拉清义边指,况半严回和得话,状整度易芬列。再根心应得信飞住清增\par
\smallskip
{\zihao{-2} \color{red!30!black!} \noindent \textbf{生活哲学}}\\ {\color{orange!60} \rule[0.5ex]{\columnwidth}{2pt}}\\
全它精据间属医拒严力步青。厂江内立拉清义边指,况半严回和得话,状整度易芬列。再根心应得信飞住清增\par
\smallskip
{\zihao{-2} \color{red!30!black!} \noindent \textbf{专业技能}}\\ {\color{orange!60} \rule[0.5ex]{\columnwidth}{2pt}}
%定义进度条
\newcommand{\progressbar}[2][2cm]{%
\textcolor{red!50!black}{\rule{#1 * \real{#2} / 100}{1.5ex}}%
\textcolor{gray!15}{\rule{#1 - #1 * \real{#2} / 100}{1.5ex}}}
\noindent
Office 三件套 \hfill \progressbar{70}
\noindent
\LaTeX \hfill \progressbar{90}
\noindent
python \hfill \progressbar{90}
\noindent
r语言 \hfill \progressbar{90}
\noindent
MATLAB \hfill \progressbar{90}
\smallskip
\noindent
{\zihao{-2} \color{red!30!black!} \noindent \textbf{语言\&技能证书}}\\ {\color{orange!60} \rule[0.5ex]{\columnwidth}{2pt}}
\end{paracol}
\end{document}
```
在75行的表格处,为什么会超出边界?如下图:![](https://wenda.latexstudio.net/data/attach/200716/MfMfELwm.png)