首页  >  问答  >  正文

如何在四开本中证明抽象文本的合理性?

<p>我目前正在写一篇出于学术目的的论文,自然地,我使用 YAML 标头中的 <code>abstract</code> 选项添加了摘要。我知道您可以使用以下代码(见下文)来对齐四开本中的文本,但这似乎不适用于摘要本身文本的对齐。有没有办法对齐此文本?</p> <pre class="brush:php;toolbar:false;">{css, echo: FALSE} .justify { text-align: justify }</pre> <p>这个可重现的示例表明上面的代码不适用于 YAML 标头内的文本。</p> <pre class="brush:php;toolbar:false;">--- title: "How to align the text of an abstract" format: html abstract: "Text can also be "centered", or symmetrically aligned along an axis in the middle of a column. This is often used for the title of a work, headlines, and for poems and songs. As with flush-right alignment, centered text is often used to present data in tables. Centered text is considered less readable for a body of text made up of multiple lines because the ragged starting edges make it difficult for the reader to track from one line to the next.Centered text can also be commonly found on signs, flyers, and similar documents where grabbing the attention of the reader is the main focus, or visual appearance is important and the overall amount of centered text is small.Some modern typesetting programs offer four justification options: left justify, right justify, center justify and full justify. These variants respectively specify whether the full lines of a paragraph are aligned on the left or the right, centered (edges not aligned), or fully justified (spread over the whole column width). In programs that do not offer multiple kinds of justification, typically only left (for left-to-right languages) or right (for right-to-left languages) justification is provided." editor: visual ---</pre> <p>这是渲染的 HTML 版本</p> <p>我在四开本指南和在线论坛中寻找了这个特殊的功能,但找不到答案。 谢谢!</p>
P粉724737511P粉724737511415 天前482

全部回复(1)我来回复

  • P粉561323975

    P粉5613239752023-09-01 00:55:08

    使用 text-align: justify 作为 .abstract p CSS 选择器。

    ---
    title: "How to align the text of an abstract"
    format: html
    abstract: |
      Text can also be "centered", or symmetrically aligned along an axis in the middle of a column. This is often used for the title of a work, headlines, and for poems and songs. As with flush-right alignment, centered text is often used to present data in tables. Centered text is considered less readable for a body of text made up of multiple lines because the ragged starting edges make it difficult for the reader to track from one line to the next.Centered text can also be commonly found on signs, flyers, and similar documents where grabbing the attention of the reader is the main focus, or visual appearance is important and the overall amount of centered text is small.Some modern typesetting programs offer four justification options: left justify, right justify, center justify and full justify. These variants respectively specify whether the full lines of a paragraph are aligned on the left or the right, centered (edges not aligned), or fully justified (spread over the whole column width). In programs that do not offer multiple kinds of justification, typically only left (for left-to-right languages) or right (for right-to-left languages) justification is provided.
    css: style.css
    ---

    样式.css

    .abstract p {
      text-align: justify;
    }

    回复
    0
  • 取消回复