3

我想让一块文本向右对齐,它占用的水平空间比该页面上的其余文本少。我是怎么做的?

在文字 HTML 中完成它的问题是 org-mode 会自动将部分之外的任何文本放入<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
}

但我宁愿它是自动的...

4

1 回答 1

1

好的,我想我找到了一些与我想要的足够相似的东西:

#+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 可以将其格式化为看起来或多或少像题词的方式。不完美,但会做。

于 2013-05-26T15:11:55.223 回答