我想将 b1 中的列拆分成两列。但是当我使用 \ 时它会滑落,我该如何解决这个问题。(不使用新包)(overleaf)
前:
\begin{tabular}{lll}
\textbf{Title} & \textbf{Text} & \textbf{Year} \\
a1 & Long text, TEST & 2016 \\
b1 & Very very very very very very very very very very very long text, TEST & 2019 \\
\end{tabular}
后:
\begin{tabular}{lll}
\textbf{Title} & \textbf{Text} & \textbf{Year} \\
a1 & Long text, TEST & 2016 \\
b1 & Very very very very very very very very very \\ very very long text, TEST & 2019 \\
\end{tabular}
答案1
我建议使用tabularx
。
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\textwidth}{lXl}
\textbf{Title} & \textbf{Text} & \textbf{Year} \\
a1 & Long text, TEST & 2016 \\
b1 & Very very very very very very very very very \newline very very long text, TEST & 2019 \\
\end{tabularx}
\end{document}
但我认为最好省略\newline
并让 LaTeX 决定在哪里换行。
关于 URL:howpublished =
表明它是参考书目的一部分。请提供 bib 条目和完整的最小文档(平均能量损失) 来展示如何使用它,因为在文本中使用 url 是可以正常工作的,至少当我在它前面加上前缀时是这样http://
(也许问题在于你忽略了这一点,因为严格来说,你的不是 URL)。