在表格单元格中的 @ 符号上中断

在表格单元格中的 @ 符号上中断

我有一个表格,它经常超出页面宽度。我发现,如果我将单元格格式化为具有设置宽度的段落,那么 LaTeX 将自动换行单元格的内容。但是,最需要这样做的是包含电子邮件地址的列。由于电子邮件地址没有空格,因此它们不会在单元格内换行。我想让它在电子邮件地址中的 @ 符号之前断开并换行。我在网上找不到有关如何执行此操作的任何信息。

\begin{longtabu}{|p{3cm}|p{3cm}|p{3cm}|p{3cm}|p{2cm}|p{4cm}|}
\hline
\textbf{Name} & \textbf{Title} & \textbf{City} & \textbf{State/Province} & \textbf{Phone} & \textbf{Email}
\\
\hline
\raggedright
\nohyphens{Doe, John} &
\raggedright
\nohyphens{Electrical Engineer} &
\raggedright
\nohyphens{New York} &
\raggedright
\nohyphens{New York} &
555-555-5555 & 
john_doe@really_long_email_address.com
\\
\hline
\end{longtabu}

答案1

url包装和

\url{john_doe@really_long_email_address.com}

有一种可能性是——

相关内容