简体   繁体   English

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

[英]Latex: How to cells in tables which wrap, but can still be copied as a single line

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. 我的问题类似于Latex:我希望长行换行,因此如何用多行单元格编码表 The problem is that when I copy the text from the PDF using Acrobat Reader it does not copy the lines as a single. 问题是,当我使用Acrobat Reader从PDF复制文本时,它不会将行复制为一个。 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? 在将换行复制为单行时,是否有办法使其换行?

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. 您的编辑者和/或Acrobat是否将文本单行覆盖是与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. 也就是说,LaTeX不在乎文本是单行还是分成多行,至少在链接问题的答案中使用列宽规范时,输出是相同的。

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 (eg, wrapping at an incorrect spot)? 它对输出有什么影响(例如,包装在不正确的位置)吗? Some sample code that shows the problem would be helpful. 一些显示该问题的示例代码将很有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM