首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RML段落垂直对齐?

RML段落垂直对齐?
EN

Stack Overflow用户
提问于 2011-10-02 03:23:17
回答 2查看 2.1K关注 0票数 0

我正在使用RML,并希望在段落的垂直中间对齐我的文本。我怎么才能做到这一点呢?

EN

回答 2

Stack Overflow用户

发布于 2012-04-17 12:51:32

你能用桌子吗?像这样吗?

代码语言:javascript
复制
<?xml version="1.0"?>
<!DOCTYPE document SYSTEM "rml.dtd" >
<document filename="example_08.pdf">
  <template showBoundary="0">
    <pageTemplate id="main">
      <pageGraphics/>
      <frame id="first" x1="100" y1="400" width="350" height="200" />
    </pageTemplate>
  </template>
  <stylesheet>
    <blockTableStyle id="blocktablestyle1">
      <blockValign value="MIDDLE" start="0,0" stop="-1,0"/>
    </blockTableStyle>
  </stylesheet>
  <story>
    <blockTable style="blocktablestyle1" colWidths="6cm,2cm">
      <tr>
        <td>
          <para>
              This is your paragraph. It's inside the &lt;para&gt; tags so the long 
              string of text is wrapped! You can set the horizontal space with 
              colWidths attribute on the blockTable.
          </para>
        </td>
        <td>The text valigned on the middle</td>
      </tr>
    </blockTable>
  </story>
</document>
票数 0
EN

Stack Overflow用户

发布于 2012-04-20 13:53:12

或者,您可以这样定义,例如:

代码语言:javascript
复制
 <paraStyle name="terp_header" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTRE" spaceBefore="12.0" spaceAfter="6.0"/>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7622423

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档