我可能有一个愚蠢的问题,我该如何摆脱桌子顶部这个额外空间中的多余空间。
这是我在 latex 中写的。
\documentclass[11pt]{scrartcl}
\usepackage[utf8]{inputenc} %set encoding
\usepackage[T1]{fontenc} %fonts
\usepackage{lipsum}
%languages
\usepackage{lmodern}
\usepackage[ngerman]{babel}
\usepackage{scrlayer-scrpage}
\usepackage{graphicx} %for including graphics
\usepackage{lastpage} %for inserting the lastpage number
\usepackage{pdfpages} %for including pdfs
\usepackage{wrapfig} %for better text wrapable figures
\usepackage[labelsep=colon,justification=justified,labelfont=bf,textfont=sl]{caption,subcaption}
\usepackage[margin=3cm,a4paper]{geometry} %for layout
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{multirow}
% double Table caption fix
\usepackage[
singlelinecheck=false,
justification=centering
]{caption}
\newpage
\lipsum
\begin{wrapfigure}{l}{.6\linewidth}
\captionof{table}{Messreihe und Histogramm von 10 Schwingungsperioden bei der}
\begin{minipage}[t]{\linewidth}
\rule{\textwidth}{5cm}
\end{minipage}
\end{wrapfigure}
\begin{wraptable}{r}{.3\linewidth}
\centering
\caption{Table inside a wraptable}
\begin{tabular}{lr}
\toprule
{} & $T$ \\
\midrule
0 & 29.63 \\
1 & 29.70 \\
2 & 29.62 \\
3 & 29.65 \\
4 & 29.38 \\
5 & 29.75 \\
6 & 29.73 \\
7 & 29.62 \\
8 & 29.71 \\
9 & 29.82 \\
10 & 29.89 \\
11 & 29.76 \\
12 & 29.60 \\
13 & 29.68 \\
14 & 29.82 \\
15 & 29.62 \\
16 & 29.80 \\
17 & 29.87 \\
18 & 29.62 \\
19 & 29.76 \\
20 & 29.52 \\
21 & 29.79 \\
22 & 29.66 \\
23 & 29.81 \\
24 & 29.73 \\
25 & 29.80 \\
26 & 29.73 \\
27 & 29.53 \\
28 & 29.77 \\
29 & 29.60 \\
\bottomrule
\end{tabular}
\label{table:ta2}
\end{wraptable}
\lipsum
有人可以帮忙吗?
答案1
我找到了答案,但它可能不太好
\newpage
\lipsum
\begin{wrapfigure}{l}{.6\linewidth}
\captionof{table}{Messreihe und Histogramm von 10 Schwingungsperioden bei der}
\begin{minipage}[t]{\linewidth}
\rule{\textwidth}{5cm}
\end{minipage}
\end{wrapfigure}
\begin{wraptable}{r}{.3\linewidth}
\vspace{6cm} % here is my dirty fix
\centering
\caption{Table inside a wraptable}
\begin{tabular}{lr}
\toprule
{} & $T$ \\
\midrule
0 & 29.63 \\
1 & 29.70 \\
2 & 29.62 \\
3 & 29.65 \\
4 & 29.38 \\
5 & 29.75 \\
6 & 29.73 \\
7 & 29.62 \\
8 & 29.71 \\
9 & 29.82 \\
10 & 29.89 \\
11 & 29.76 \\
12 & 29.60 \\
13 & 29.68 \\
14 & 29.82 \\
15 & 29.62 \\
16 & 29.80 \\
17 & 29.87 \\
18 & 29.62 \\
19 & 29.76 \\
20 & 29.52 \\
21 & 29.79 \\
22 & 29.66 \\
23 & 29.81 \\
24 & 29.73 \\
25 & 29.80 \\
26 & 29.73 \\
27 & 29.53 \\
28 & 29.77 \\
29 & 29.60 \\
\bottomrule
\end{tabular}
\label{table:ta2}
\end{wraptable}
\lipsum