带有是/否问题的表格

带有是/否问题的表格

我正在写一份关于一些 COVID 指南的重要健康文件,但我被困在这张表格里。我需要以乳胶格式制作它,但我似乎无法让它工作。当我尝试在右侧填写是或否时,会出现错误等,但表格仍然有效。在此处输入图片描述

我怎样才能做到这一点?

答案1

希望以下标签可以帮到您:

\documentclass{book}

\begin{document}

\begin{tabular}{|p{0.5\textwidth}|c|c|c|c|}
\hline
\multicolumn{1}{|c|}{\textbf{Guiding questions:}}
&\multicolumn{2}{|c|}{Samtale 1} &\multicolumn{2}{|c|}{Samtale 2}\\
\cline{2-5}
 &JA &NET &JA &NEI\\
\hline
Does this is for test this is for test this is for test & & & &\\
\hline
Has this is for test this is for test this is for test & & & &\\
\hline
\end{tabular}
\end{document}

输出

在此处输入图片描述

答案2

这是一个起点,带有tabularxeqparbox(以确保最后 4 列具有相同的最小宽度):

\documentclass[11pt]{article}
\usepackage{geometry}
\usepackage{tabularx, multirow, cellspace, makecell}
\usepackage{eqparbox}
\setlength{\cellspacetoplimit}{3pt}
\setlength{\cellspacebottomlimit}{3pt}
\addparagraphcolumntypes{X}
\newcommand{\Comments}{\newline Comments: \newline}


    \begin{document}

{\centering
\sffamily
\setlength{\extrarowheight}{2pt}
\setcellgapes{2pt}\makegapedcells
      \begin{tabularx}{\textwidth}{|X|*{4}{c|}} %
\hline
\multirow{2}{=}{\centering\textbf{\large Guiding questions:}} & \multicolumn{2}{Sc|}{Samtale 1} & \multicolumn{2}{Sc|}{Samtale 2} \\
\cline{2-5}
 & \eqmakebox[H]{JA} & \eqmakebox[H]{NEI} & \eqmakebox[H]{JA} & \eqmakebox[H]{NEI} \\ \hline%
 Does the employee have respiratory symptoms? \newline
For example: cough, sore throat, breathing difficulties
\Comments & & & & \\ \hline
Has the employee had a fever during the last 7 days?
\Comments & & & & \\ \hline
\end{tabularx}
}

\end{document} 

在此处输入图片描述

相关内容