如何解决在乳胶表中包装与 / 符号连接的多个单词
我正在尝试制作一个乳胶桌,我想插入一个字符串,格式为 word/anotherword/athirdword/afourthword/andsoon。但这不起作用,因为它会溢出而不是换行到下一行。如果我只是删除所有“/”字符,它运行良好。以下是一些示例:
不带“/”的正确自动换行:
\begin{center}
\begin{tabular}{ |p{10em}|p{10em}|p{10em}| }
\hline
a wordanotherwordathirdwordafourthwordandsoon &
Next column &
Third column \\
\hline
\end{tabular}
\end{center}
用“/”溢出:
\begin{center}
\begin{tabular}{ |p{10em}|p{10em}|p{10em}| }
\hline
a word/anotherword/athirdword/afourthword/andsoon &
Next column &
Third column \\
\hline
\end{tabular}
\end{center}
另一个奇怪的是,如果我从单元格中删除第一个单词“a”,无论如何该单词都会溢出。
我试图搜索 SO 以寻求帮助,但最接近我的是 this SO post,这并没有真正解决我的问题。
编辑:这是我在评论中提到的最小reprex:
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Title}
\author{}
\date{}
\begin{document}
\maketitle
\begin{center}
\begin{tabular}{ |p{10em}|p{10em}|p{10em}| }
\hline
a wordanotherwordathirdwordafourthwordandsoon &
Next column &
Third column \\
\hline
\end{tabular}
\end{center}
\begin{center}
\begin{tabular}{ |p{10em}|p{10em}|p{10em}| }
\hline
a word/anotherword/athirdword/afourthword/andsoon &
Next column &
Third column \\
\hline
\end{tabular}
\end{center}
\end{document}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。