大家好,新年快乐!
我正在尝试创建一个纸笔表格,其外观应如下所示:
\documentclass[12pt,oneside,a4paper]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[landscape,left=2cm,right=0.5cm,top=1.5cm, bottom=1.5cm,headsep=1cm,headheight=1.0cm,]{geometry}
\usepackage{tabularx, ragged2e}
\usepackage{wasysym} % \Square
\begin{document}
\LARGE \textbf{My Long Informative Title} \par
\vspace{1em}
\normalsize
\begin{tabularx}{\linewidth}{p{3.3cm} X@{\hskip 3mm} X@{\hskip 3mm} X@{\hskip 3mm}}
\hline
\textbf{Items} & \textbf{Constellation 1} & \textbf{Constellation 2} & \textbf{Constellation 3} \\ \hline
The First Issue & \Square \, Lorem ipsum dolor. & \Square \, At vero eos et accusam. & \Square \, Duis autem vel eum iriure. \\ \hline
The Second and also the Third Issue & \Square \, Lorem ipsum dolor sit amet, consetetur sadipscing elitr. \par \Square \, At vero eos et accusam et justo duo dolores et ea rebum. \par \Square \,Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. & \Square \, Duis autem vel eum iriure dolor in hendrerit. \par \Square \, Ut wisi enim ad minim veniam, quis nostrud exerci & \Square \, Nam liber tempor cum soluta nobis eleifend option. \\
\hline
\end{tabularx}\par
\end{document}
也就是说,它有四列,其中三列是可选选项的描述。我没有找到适合这个任务的包,只能手动绘制这个表格。
这通常有效,但是如果选项的描述超过一行,布局会看起来很丑陋。后续行的文本应该缩进,而不是像现在这样从复选框下面开始。
所以我的问题是,如果没有特殊的包是否可以实现这一点,或者更好的是,是否有一个包可以提供我需要的布局。
非常感谢!
答案1
以下内容可能适合您的需求:
\documentclass[12pt,oneside,a4paper]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[landscape,left=2cm,right=0.5cm,top=1.5cm, bottom=1.5cm,headsep=1cm,headheight=1.0cm,]{geometry}
\usepackage{tabularx, ragged2e}
\usepackage{wasysym} % \Square
\usepackage{booktabs}
\begin{document}
\LARGE \textbf{My Long Informative Title} \par
\vspace{1em}
\normalsize
\noindent
\begin{tabularx}{\linewidth}{>{\raggedright\arraybackslash}p{3.3cm}*{3}{>{\Square}l@{~}X}}
\toprule
\textbf{Items} & \multicolumn{2}{l}{\textbf{Constellation 1}} & \multicolumn{2}{l}{\textbf{Constellation 2}} & \multicolumn{2}{l}{\textbf{Constellation 3}} \\
\midrule
The First Issue
&& Lorem ipsum dolor.
&& At vero eos et accusam.
&& Duis autem vel eum iriure.
\\
\midrule
The Second and also the Third Issue
&& Lorem ipsum dolor sit amet, consetetur sadipscing elitr. Ut wisi enim ad minim veniam, quis nostrud exerci
&& Duis autem vel eum iriure dolor in hendrerit.
&& Nam liber tempor cum soluta nobis eleifend option. \\
&& At vero eos et accusam et justo duo dolores et ea rebum. \\
&& Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. \\
\bottomrule
\end{tabularx}
\end{document}