两桌问题

两桌问题

我们不知道如何删除“游戏”,所以只有两列。我们不知道如何在左侧用“1. 分析”创建一个新行(字母应该变成框中的文本,并带有下划线或类似的东西。

在此处输入图片描述

\documentclass[a4paper,11pt,oneside]{article}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage[left=3.0cm,right=3.0cm,top=3.0cm,bottom=3.0cm]{geometry}
\usepackage{array}
\usepackage{booktabs,threeparttable}
\newcommand\mc[1]{\multicolumn{1}{@{}c@{}}{#1}} % handy shortcut macro
\renewcommand{\TPTnoteSettings}{\footnotesize}
\renewcommand{\TPTnoteLabel}[1]{#1}
\begin{document}

\begin{table}[H]
\begin{threeparttable}
\renewcommand\arraystretch{1.1}
%\renewcommand\tabcolsep{1pt}
\begin{tabular}{@{}>{\centering}p{0.15\textwidth}>{\raggedright}m{0.68\textwidth}
    p{\dimexpr0.17\textwidth-4\tabcolsep\relax}@{}}
\toprule
\mc{Hypotese nr.}& \mc{Method} & \mc{Game}  \\
\midrule
1 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  & FALSIFY \\
2 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  & FALSIFY \\
3 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  & FALSIFY \\
4 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  & FALSIFY \\
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}
\vspace{-0.6em}
\end{document}

答案1

我不清楚你的目的到底是什么,但这是一个非常糟糕的表格设计。

\documentclass[a4paper,11pt,oneside]{article}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage[left=3.0cm,right=3.0cm,top=3.0cm,bottom=3.0cm]{geometry}
\usepackage{array}
\usepackage{booktabs,threeparttable,multirow,graphicx}
\newcommand\mc[1]{\multicolumn{1}{@{}c@{}}{#1}} % handy shortcut macro
\renewcommand{\TPTnoteSettings}{\footnotesize}
\renewcommand{\TPTnoteLabel}[1]{#1}
\usepackage{tabularx}
\renewcommand\tabularxcolumn[1]{m{#1}}

\begin{document}

\begin{table}[H]
\begin{threeparttable}
\renewcommand\arraystretch{1.1}
%\renewcommand\tabcolsep{1pt}
\begin{tabularx}{\textwidth}{@{}ccX@{}}
\cmidrule[1pt]{2-3}
  & Hypotese nr.& \mc{Method}  \\
\cmidrule{2-3}
\multirow{4}{*}[-1cm]{\rotatebox{90}{1. analyze}}& 1 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 2 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 3 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 4 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  \\
\cmidrule[1pt]{2-3}
\end{tabularx}
\end{threeparttable}
\end{table}
\end{document}

在此处输入图片描述

有 4 列:

\documentclass[a4paper,11pt,oneside]{article}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage[left=3.0cm,right=3.0cm,top=3.0cm,bottom=3.0cm]{geometry}
\usepackage{array}
\usepackage{booktabs,threeparttable,multirow,graphicx}
\newcommand\mc[1]{\multicolumn{1}{@{}c@{}}{#1}} % handy shortcut macro
\renewcommand{\TPTnoteSettings}{\footnotesize}
\renewcommand{\TPTnoteLabel}[1]{#1}
\usepackage{tabularx}
\renewcommand\tabularxcolumn[1]{m{#1}}

\begin{document}

\begin{table}[H]
\begin{threeparttable}
\renewcommand\arraystretch{1.1}
%\renewcommand\tabcolsep{1pt}
\begin{tabularx}{\textwidth}{@{}c|cXl@{}}
\cmidrule[1pt]{2-4}
\mc{}  & Hypotese nr. & \mc{Method} &\mc{Game} \\
\cmidrule{2-4}
\multirow{4}{*}[-1cm]{\rotatebox{90}{1. analyze\quad\qquad}}& 1 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT & Some  \\
& 2 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT & Some  \\
& 3 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  & Some \\
& 4 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT & Some \\
\cmidrule[1pt]{2-4}
\end{tabularx}
\end{threeparttable}
\end{table}
\end{document}

在此处输入图片描述

答案2

Harish Kumar 的稍加修改的版本回答

在此处输入图片描述

代码:

\documentclass[a4paper,11pt,oneside]{article}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage[left=3.0cm,right=3.0cm,top=3.0cm,bottom=3.0cm]{geometry}
\usepackage{array}
\usepackage{booktabs,threeparttable,multirow,graphicx}
\newcommand\mc[1]{\multicolumn{1}{@{}c@{}}{#1}} % handy shortcut macro
\renewcommand{\TPTnoteSettings}{\footnotesize}
\renewcommand{\TPTnoteLabel}[1]{#1}
\usepackage{tabularx}
\renewcommand\tabularxcolumn[1]{m{#1}}

\begin{document}

\begin{table}[H]
\begin{threeparttable}
\renewcommand\arraystretch{1.1}
%\renewcommand\tabcolsep{1pt}
\begin{tabularx}{\textwidth}{@{}m{.4cm}cX@{}}
\cmidrule[1pt]{2-3}
  & Hypotese nr.& \mc{Method}  \\
\cmidrule{2-3}
\multirow{4}{.4cm}[-1cm]{1. a n a l y z e}
& 1 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 2 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 3 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 4 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
\multirow{4}{.4cm}[-1cm]{2. a n a l y z e}
& 5 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 6 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 7 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
& 8 & TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT  TEXT TEXT TEXT  TEXT TEXT TEXT   \\
\cmidrule[1pt]{2-3}
\end{tabularx}
\end{threeparttable}
\end{table}
\end{document} 

相关内容