Latex:如何将表格中的单元格换行,但仍然可以复制为单行

发布于 2024-09-11 19:52:34 字数 497 浏览 2 评论 0原文

我正在尝试创建一个关于工具输入的表,该工具要求整个输入位于一行上。

我的问题类似于Latex:如何使用多行编码表行单元格,因为我希望长行换行。 问题是,当我使用 Acrobat Reader 从 PDF 复制文本时,它不会将各行复制为单个行。 如果我复制示例中的第一个多行单元格,我会得到“

Betty Botter Bought a Bit of Butter
but the Butter's Bitter 

我的目标是将其作为单行”。

Betty Botter Bought a Bit of Butter but the Butter's Bitter 

有没有办法让它在将换行的行复制为单行的同时将文本换行?

I am trying to create a table over inputs to a tool which requires the entire input to be on a single line.

My question is similar to Latex: How to code tables with multi-line cells in that I want the long lines to wrap.
The problem is that when I copy the text from the PDF using Acrobat Reader it does not copy the lines as a single.
If I copy the first multi-line cell in the example I get

Betty Botter Bought a Bit of Butter
but the Butter's Bitter 

My goal is to get it as a single line.

Betty Botter Bought a Bit of Butter but the Butter's Bitter 

Is there a way to make it wrap the text while copying the wrapped line as a single line?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

在梵高的星空下 2024-09-18 19:52:34

我正在尝试弄清楚你的问题是什么。您的编辑器和/或 Acrobat 是否将文本复制为一行是与 LaTeX 无关的问题。也就是说,LaTeX 不关心文本是在单行中还是分成多行,输出是相同的,至少在您链接的问题的答案中使用列宽规范时是这样。

如果您澄清为什么不希望将文本复制到多行中,您可能会得到更好的答案。它是否会对输出产生一些影响(例如,在不正确的位置换行)?一些显示问题的示例代码会有所帮助。

I'm trying to figure out what your issue is. Whether your editor and/or Acrobat coies the text as a single line is an issue unrelated to LaTeX. That is, LaTeX doesn't care whether the text is in a single line or whether it's broken into multiple lines, the output is the same, at least when using the column width specification in the answer to the question you linked.

You might get a better response to your question if you clarify why you don't want the text to be copied in multiple lines. Is it making some difference in the output (e.g., wrapping at an incorrect spot)? Some sample code that shows the problem would be helpful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文