是否可以在重组文本中以两列样式书写? [英] Is it possible to write in a two-columns style in restructuredtext?
问题描述
我想用重组文本写一篇研究论文,这种文档是否有可能具有固有的两栏样式?我查看了 规范 但除了使用一个表格真的很痛苦,我一直找不到替代方案.
I would like to write a research paper using restructuredtext, is it possible to have the two-column style inherent to this kind of document? I looked at the specifications but apart using a table which will be a real pain I haven't been able to find an alternative.
推荐答案
您可以以 docutils 输出的任何格式输出 2-column.
You can output 2-column in any of the formats docutils outputs.
如果您想要的是一个 2 列的ReST 源,那就更难了.
If what you want is a 2-column ReST source then it's much harder.
因为没有页面,它甚至可能没有意义(想象一下,如果列有 5000 行长 ;-),所以我假设你的意思是在输出中,无论是 HTML、PDF 还是其他.
Since there are no pages, it may not even make sense (imagine if the columns are 5000 lines long ;-), so I will assume you mean in the output, be it HTML, PDF or whatever.
对于PDF,使用rst2pdf,很简单,只需要使用-s twocolumn选项即可.
For PDF, using rst2pdf, it's trivial, you only need to use the -s twocolumn option.
对于 HTML,它是 CSS 的东西,我相信谷歌可以帮助你.
For HTML, it's a CSS thing, and I am sure google can help you.
这篇关于是否可以在重组文本中以两列样式书写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!