所以我有下面的表格。例如,第二行第二个单元格的内容被拆分,这非常丑陋。我希望自动拆分只发生在单词之间——也就是说,我不希望它拆分任何单词/符号字符串。有什么办法吗?非常感谢。
\documentclass[11pt,a4paper]{book} \setcounter{secnumdepth}{4}
\usepackage{graphicx} \usepackage{gb4e} \usepackage{tipa}
\usepackage{setspace} \usepackage[T1]{fontenc} \usepackage{multirow}
\setcounter{part}{-1} \setcounter{subsection}{0}
\begin{document}
\begin{table}
\begin{center}
\begin{tabular}{ |p{0.18\textwidth}| p{0.18\textwidth}| p{0.18\textwidth} p{0.18\textwidth}|p{0.18\textwidth} |} \hline \textbf{S>O} &
\textbf{A'rau} & \textbf{Northern (Zam)} & \textbf{Intermediate(Ba'ro)} &\textbf{Southern (nGora)}\\ \hline 1(>3) & -isratha $\sim$ -sajana & -iriska:ta & -ira:tha & irijatha\\ \hline
\end{tabular}
\end{center}
\caption{Past counterfactual paradigm}
\label{pastCFcompare}
\end{table}
\end{document}
答案1
经过一些修改,特别是\\
,而不是\
之前\hline
。据我了解,字符串sajana
应该出现在下一行。如果-
属于字符串,则所有都可能被 包围\mbox
。
\documentclass[11pt,a4paper]{book}
\setcounter{secnumdepth}{4}
\usepackage{graphicx}
\usepackage{gb4e}
\usepackage{tipa}
\usepackage{setspace}
\usepackage[T1]{fontenc}
\usepackage{multirow}
\begin{document}
\setcounter{part}{-1} \setcounter{subsection}{0}
\begin{table}
\begin{center}
\begin{tabular}{ |p{0.18\textwidth}| p{0.18\textwidth}| p{0.18\textwidth}| p{0.18\textwidth}|p{0.18\textwidth} |}
\hline
\textbf{S>O} & \textbf{A'rau} & \textbf{Northern (Zam)} & \textbf{Intermediate (Ba'ro)} &\textbf{Southern (nGora)}\\
\hline
1(>3) & -isratha $\sim$ -sajana & -iriska:ta & -ira:tha & irijatha\\
\hline
\end{tabular}
\end{center}
\caption{Past counterfactual paradigm}
\label{pastCFcompare}
\end{table}
\end{document}