我想在行之间画虚线,但是当我尝试芳基化物在文本中我收到错误。我不能在用创建的表格中使用虚线吗?禁忌。
\documentclass{article}
\usepackage{array}
\usepackage{multirow}
\usepackage{longtable}
\usepackage[tableposition=below]{caption}
\usepackage{tabu}
\begin{document}
\begin{longtabu} to \textwidth {XXX}
\hline \textbf{Model Ref.} & \textbf{Change Date} & \textbf{Description of Changes} \\ \hline
\endfirsthead
\hline \textbf{Model Ref.} & \textbf{Change Date} & \textbf{Description of Changes} \\ \hline
\endhead
PD-5&01/2005&New Internet Disclosure rules.\\\hline
PD-4.1&07/2005&Small definition change to consumer loans.\\\hline
PD-4.1&072005&Small definition change to consumer loans.\\
\end{longtabu}
上面是可以的。但正如我所说的,当我尝试芳基化物文本无法编译。
\documentclass{article}
\usepackage{array}
\usepackage{multirow}
\usepackage{longtable}
\usepackage[tableposition=below]{caption}
\usepackage{tabu}
\usepackage{arydshln}
\begin{document}
\begin{longtabu} to \textwidth {XXX}
\hline \textbf{Model Ref.} & \textbf{Change Date} & \textbf{Description of Changes} \\ \hline
\endfirsthead
\hline \textbf{Model Ref.} & \textbf{Change Date} & \textbf{Description of Changes} \\ \hline
\endhead
PD-5&01/2005&New Internet Disclosure rules.\\\hdashline
PD-4.1&07/2005&Small definition change to consumer loans.\\\hdashline
PD-4.1&072005&Small definition change to consumer loans.\\
\end{longtabu}
谢谢。
答案1
虚线与 配合得很好,它将的ltablex
功能带到(并加载两个包)。我还使用 包为水平线添加了一些填充:longtable
tabularx
booktabs
\documentclass{article}
\usepackage{array}
\usepackage{multirow}
\usepackage{ltablex, booktabs}
\renewcommand{\tabularxcolumn}[1]{>{\raggedright\arraybackslash}m{#1}}
\usepackage{arydshln}
\usepackage[tableposition=below]{caption}
\newcommand{\myhdashline}{%
\addlinespace
\hdashline
\addlinespace}
\begin{document}
\setlength{\defaultaddspace}{0.5ex}
\begin{tabularx}{\textwidth}{*{2}{>{\hsize=0.6\hsize}X}>{\hsize=1.8\hsize}X}
\toprule \textbf{Model Ref.} & \textbf{Change Date} & \textbf{Description of Changes} \\
\midrule
\endfirsthead
\midrule
\textbf{Model Ref.} & \textbf{Change Date} & \textbf{Description of Changes} \\
\midrule
\endhead
\bottomrule
\endfoot
PD-5&01/2005&New Internet Disclosure rules.\\
\myhdashline
PD-4.1&07/2005&Small definition change to consumer loans.\\
\myhdashline
PD-4.1&072005&Small definition change to consumer loans.\
\end{tabularx}
\end{document}