【问题标题】:How to include a horizontal line in the header?如何在标题中包含一条水平线?
【发布时间】:2022-11-11 11:16:56
【问题描述】:

我定义了以下自定义主题:

extends:
  - default-with-fallback-font
footer:
  recto:
    right:
      content: '{chapter-title} | *{page-number}*'
  verso:
    left:
      content: '*{page-number}* | {chapter-title}'
header:
  height: $base_line_height_length * 4
  recto:
    center:
      content: '{document-title}'
  verso:
    center:
      content: '{document-title}'

现在我想通过引入一条水平线在视觉上更多地分离标题。 在“普通” asciidoc 文本中,我可以使用''' 来做一条水平线/规则

当我尝试将此应用于标题时,标题将不再呈现。

header:
  height: $base_line_height_length * 4
  recto:
    center:
      content: '{document-title}' '''
  verso:
    center:
      content: '{document-title}' '''

如何在我的 asciidoc 的标题部分添加水平线/规则?

【问题讨论】:

    标签: asciidoc asciidoctor-pdf


    【解决方案1】:

    您在寻找页眉边框吗?这会在您的标题正下方创建一条水平线。您可以像这样在样式中执行此操作:

    extends: default
    header:
      height: 0.75in
      border-color: #DDDDDD
      border-width: 0.25
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多