如何在四開本中證明抽象文本的合理性?
P粉724737511
P粉724737511 2023-08-31 12:43:58
0
1
529
<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 son.used for the flgs of a work, headlines, and for poems and son.used with Asgs. 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 trackrack the next. 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. 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 (p. . 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粉724737511
P粉724737511

全部回覆(1)
P粉561323975

使用 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;
}

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板