[英]Org-mode epigraph?
我想让一个文本块向右对齐,该文本块要比该页面上其余文本占用更少的水平空间。 我该怎么办?
用文字HTML完成的问题是,组织模式会自动将节外的任何文本放入<p>
标记中(它不是块元素,因此在其中浮动通常不是一件好事。 )
这是我现在的样子(它显示的很好,所以我希望它或多或少像这样):
#+BEGIN_HTML
<div style="width:100%;height:84pt">
<p class="epigraph">
<em>
I have not increased nor diminished the measure,<br/>
I have not diminished the palm,<br/>
I have not encroached upon fields,<br/>
I have not added to the balance weights,<br/>
I have not tempered with the plumb bob of the balance.</em>
<br/>
<span style="text-align:right;width:100%;display:block">
<b style="line-height:24pt;font-weight:bold">
The Book of the Dead, Spell 125.</b>
</span>
</p></div>
#+END_HTML
另外我有这个CSS:
.epigraph {
float:right;
font-size:10pt;
font-family:serif;
line-height:12pt;
color: #aaa
}
但我宁愿它是自动的...
好的,我想我发现了一些可以满足我想要的东西:
#+BEGIN_VERSE
I have not increased nor diminished the measure,
I have not diminished the palm,
I have not encroached upon fields,
I have not added to the balance weights,
I have not tempered with the plumb bob of the balance.
-- The Book of the Dead, Spell 125.
#+END_VERSE
这将生成HTML,此后在使用CSS的情况下可以按某种形式格式化,使其看起来或多或少像一段题词。 不完美,但会做到的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.