我已经搜索了很长时间来寻找问题的答案,但我找不到任何可以使用的东西。当我的标题文本超出行宽时,它会像标准文本一样显示,而不是标题。例如,这是表格的标题,但它对图形的行为完全相同。
\begin{table}[htp]
\centering
\caption{Resultaten van de metingen van het potentiaalverschil \textit{V} tussen de paralleltakken van de brugschakeling op verschillende tijdstippen \textit{t}. \textit{u(t)} = 1 s en \textit{u(V)} = 4 $\mu$V.}
\label{spanningsmetingen}
\begin{tabular}{cc}
...
\end{tabular}
\end{table}
用 \\ 结束一行也不起作用。有什么方法可以解决这个问题吗?谢谢!
编辑:我无意中将此作为答案发布。
\documentclass{article}
\usepackage[a4paper,margin=3cm]{geometry}
\author{Mike}
\usepackage{pdfpages}
\usepackage[dutch]{babel}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[parfill]{parskip}
\usepackage{fancyhdr}
\begin{document}
Het potentiaalverschil tussen de paralleltakken in de brugschakeling, gemeten door de voltmeter op verschillende tijdstippen, is weergeven in tabel \ref{spanningsmetingen}. De onzekerheid in de waarden is vermeld in het bovenschrift.
\begin{table}[htp]
\centering
\caption{Resultaten van de metingen van het potentiaalverschil \textit{V} tussen de paralleltakken van de brugschakeling op verschillende tijdstippen \textit{t}. \textit{u(t)} = 1 s en \textit{u(V)} = 4 $\mu$V.}
\label{spanningsmetingen}
\begin{tabular}{cc}
\textit{t} (s) & \textit{V} ($\mu$V) \\ \hline
0 & 30 \\ \hline
20 & 26 \\ \hline
40 & 26 \\ \hline
\end{tabular}
\end{table}
\end{document}
这是源代码。显示如下:
当我缩短标题时,它显示如下:
你还需要什么吗?我只是一个 LateX 的初学者。
答案1
我认为这就是你要找的东西。正如@Johannes_B 提到的,你应该阅读一些关于 LaTeX 的介绍材料 - 你对如何编写数学公式的误解应该得到纠正。请将你自己的代码与我发布的答案进行比较。
\documentclass{article}
% \usepackage[a4paper,margin=3cm]{geometry} not needed for this MWE
%\author{Mike} not needed for this MWE
% \usepackage{pdfpages} not needed for this MWE
\usepackage[dutch]{babel}
% \usepackage{graphicx} not needed for this MWE
% \usepackage{amsmath} not needed for this MWE
\usepackage{siunitx} % for units
\usepackage[parfill]{parskip}
\usepackage[hang,bf,small]{caption} % added this to format the long caption in a nicer way. Remove the "hang" if you want the caption text to continue in the full textwidth
\usepackage{booktabs} % \toprule, \midrule and \bottomrule in the table
%\usepackage{fancyhdr} not needed for this MWE
\begin{document}
Het potentiaalverschil tussen de paralleltakken in de brugschakeling, gemeten door de voltmeter op verschillende tijdstippen, is weergeven in tabel \ref{spanningsmetingen}. De onzekerheid in de waarden is vermeld in het bovenschrift.
\begin{table}[htp]
\centering
\caption{Resultaten van de metingen van het potentiaalverschil $V$ tussen de paralleltakken van de brugschakeling op verschillende tijdstippen $t$.
$u(t) = \SI{1}{\second}$ en $u(V) = \SI{4}{\micro\volt}$}
\label{spanningsmetingen}
\begin{tabular}{cc}
\toprule
$t$ [\si{\second}] & $V$ [\si{\micro\volt}] \\
\midrule
0 & 30 \\
20 & 26 \\
40 & 26 \\
\bottomrule
\end{tabular}
\end{table}
\end{document}
生产