我正在尝试按照 APA7 来格式化我的表格,因此我需要在标题中留出额外的空间。
我尝试应用这篇文章中提出的解决方案:论文中的表格标题间距
但遗憾的是它没有起作用。
我需要的输出如下所示:
但是我得到的输出如下所示:
不幸的是,我无法在表格中添加正确的间距。您知道如何解决这个问题吗?非常感谢!
查找附件中的 MWE
\documentclass[parskip=full,oneside, 12pt]{scrartcl}
\usepackage[left=2.8cm, right=2.8cm,top=2.1cm, bottom=19mm,includehead=false,footskip=10mm, bindingoffset=0mm]{geometry}
\usepackage[style=apa, datelabel=comp, uniquelist=minyear, backend=biber]{biblatex}
\addbibresource{lit_memes.bib}
\usepackage[colorlinks=true, linktoc = all, draft = false, linkcolor=black, citecolor=black, urlcolor=blue]{hyperref}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{caption}
\renewcommand{\baselinestretch}{1.2}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\DeclareCaptionLabelSeparator{twolines}{\newline\newline}
\captionsetup[table]{
labelsep=twolines,
textfont=it,
singlelinecheck=off,
aboveskip=0pt
}
\begin{document}
\input{Text-Ab}
\begin{table}[h]
\captionsetup{font=normalsize}
\tiny
\caption{Übersicht über das Kategoriensystem (Hauptkategorien)}
\label{tab:my-table}
\resizebox{\textwidth}{!}{%
\begin{tabular}{@{}lll@{}}
\toprule
Forschungsfrage & Hauptkategorien & Beispiel-Ausprägungen \\ \midrule
A & B & C \\
D & E & F
\end{tabular}%
}
\end{table}
\clearpage
\printbibliography[heading=bibintoc]
\end{document}
答案1
我认为,这段代码应该或多或少可以完成你想要的事情:
\documentclass[parskip=full,oneside, 12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[hmargin=2.8cm,top=2.1cm, bottom=19mm,includehead=false,footskip=10mm, bindingoffset=0mm]{geometry}
\usepackage[style=apa, datelabel=comp, uniquelist=minyear, backend=biber]{biblatex}
\addbibresource{lit_memes.bib}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage[table,xcdraw]{xcolor}
\usepackage{caption}
\usepackage[colorlinks=true, linktoc = all, draft = false, linkcolor=black, citecolor=black, urlcolor=blue]{hyperref}
\renewcommand{\baselinestretch}{1.2}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\DeclareCaptionLabelSeparator{twolines}{\medskip\newline}
\captionsetup[table]{
format =plain,
labelsep=twolines,
labelfont=bf,
textfont=it,
singlelinecheck=off,
aboveskip=0pt,
belowskip=2.5ex
}
\begin{document}
\begin{table}[h]
\captionsetup{font=normalsize}
\tiny
\caption{Übersicht über das Kategoriensystem (Hauptkategorien)}
\label{tab:my-table}
\resizebox{\textwidth}{!}{%
\begin{tabular}{@{}lll@{}}
\toprule
Forschungsfrage & Hauptkategorien & Beispiel-Ausprägungen \\ \midrule
A & B & C \\
D & E & F
\end{tabular}%
}
\end{table}
\end{document}