
我希望頂線和底線是暗線。
\PassOptionsToPackage{svgnames,x11names}{xcolor}
\documentclass[paper=legapaper,9pt]{scrartcl} %class
\usepackage[left=1.0cm,right=1cm,top=1.5cm,bottom=1cm]{geometry} %for layout
\usepackage{setspace} % for spacing between lines
\usepackage{graphicx} %for including images
\usepackage{eso-pic} %package for including background image
\usepackage{color,tikz}
\usepackage{wallpaper}
\usepackage{ulem}
\usepackage{anyfontsize}
\usepackage{pdflscape}
\usepackage{calligra}
\usepackage[T1]{fontenc}
\usepackage{niceframe}
\usepackage[object=vectorian]{pgfornament}
\usepackage{ragged2e}
\usepackage{ifthen}
\newboolean{long}
\usepackage[pdftex]{eforms}
\usepackage{arydshln}
\usepackage{eurosym,datatool,longtable,booktabs}
\begin{document}
\begin{tabular}{l|ccccc|c|c|c|ccc}
\toprule
\bfseries Exams. Passed & &&\bfseries Name of && &\bfseries Examination & \bfseries Year of & \bfseries Division/ & &\bfseries Name of& \\
&&& \bfseries Board/University &&& \bfseries Roll No. & \bfseries Passing & \bfseries Class && \bfseries School/College&\\ \toprule
H.S.L.C. &&&&& & & & & &&\\ \hline
H.S.S.L.C. &&&&& & & & &&& \\ \hline
B.A/B.Sc./B.Com/L.L.B & &&&& & & & & &&\\
B.E/M.B.B.S/B.Mus. &&&&& & & & & &&\\ \hline
M.A/M.Sc./M.Com. & &&&& & & & & &&\\ \hline
Others & &&&& & & & & &&\\
\bottomrule
\end{tabular}
\end{document}
答案1
這是您的表格設定(使用和不使用booktabs
)。我只是旋轉了表格以使它們適合您的頁面。但您應該考慮以下幾點:
booktabs
手冊中給予的建議- 您的表格有兩行標題(也許您應該使用
p{}
基於中心的解決方案) - 也許如果您使用這些垂直規則,您還應該讓它們關閉桌子的左側和右側
代碼:
\PassOptionsToPackage{svgnames,x11names}{xcolor}
\documentclass[paper=legapaper,9pt]{scrartcl}
\usepackage[margin=1cm]{geometry}
\usepackage{booktabs}
\usepackage{rotating}
\begin{document}
\rotatebox{90}{\begin{tabular}{l|ccccc|c|c|c|ccc}
\hline
\bfseries Exams. Passed & &&\bfseries Name of && &\bfseries Examination & \bfseries Year of & \bfseries Division/ & &\bfseries Name of& \\
&&& \bfseries Board/University &&& \bfseries Roll No. & \bfseries Passing & \bfseries Class && \bfseries School/College&\\ \hline
H.S.L.C. &&&&& & & & & &&\\ \hline
H.S.S.L.C. &&&&& & & & &&& \\ \hline
B.A/B.Sc./B.Com/L.L.B & &&&& & & & & &&\\
B.E/M.B.B.S/B.Mus. &&&&& & & & & &&\\ \hline
M.A/M.Sc./M.Com. & &&&& & & & & &&\\ \hline
Others & &&&& & & & & &&\\
\hline
\end{tabular}}
\renewcommand{\arraystretch}{1.5}
\rotatebox{90}{\begin{tabular}{l*{11}{c}}
\toprule
\bfseries Exams. Passed & &&\bfseries Name of && &\bfseries Examination & \bfseries Year of & \bfseries Division/ & &\bfseries Name of& \\
&&& \bfseries Board/University &&& \bfseries Roll No. & \bfseries Passing & \bfseries Class && \bfseries School/College&\\ \midrule
H.S.L.C. &&&&& & & & & &&\\ \hline
H.S.S.L.C. &&&&& & & & &&& \\ \hline
B.A/B.Sc./B.Com/L.L.B & &&&& & & & & &&\\
B.E/M.B.B.S/B.Mus. &&&&& & & & & &&\\ \hline
M.A/M.Sc./M.Com. & &&&& & & & & &&\\ \hline
Others & &&&& & & & & &&\\
\bottomrule
\end{tabular}}
\end{document}