# 中文排版测试

## 中文文章排版实例：论语学而篇第一

### 本篇引语

《学而》是《论语》第一篇的篇名。 《论语》 中各篇一般都是以第一章的前二三个字作为该篇的篇名。《学而》一篇包括16章，内容涉及诸多方面。其中重点是「吾日三省吾身」；「节用而爱人，使民以时」；「礼之用，和为贵」以及仁、孝、信等道德范畴。

## 表格

WrestlerOriginFinisher
Bret “The Hitman” HartCalgary, ABSharpshooter
Stone Cold Steve AustinAustin, TXStone Cold Stunner
Randy SavageSarasota, FLElbow Drop
Razor RamonChuluota, FLRazor’s Edge

## 代码块

 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218  // GetTitleFunc returns a func that can be used to transform a string to // title case. // // The supported styles are // // - "Go" (strings.Title) // - "AP" (see https://www.apstylebook.com/) // - "Chicago" (see https://www.chicagomanualofstyle.org/home.html) // // If an unknown or empty style is provided, AP style is what you get. func GetTitleFunc(style string) func(s string) string { switch strings.ToLower(style) { case "go": return strings.Title case "chicago": return transform.NewTitleConverter(transform.ChicagoStyle) default: return transform.NewTitleConverter(transform.APStyle) } } 

## 列表

1. Nested lists are rarely a good idea.
• You might feel like you are being really “organized” or something but you are just creating a gross shape on the screen that is hard to read.
• Nested navigation in UIs is a bad idea too, keep things as flat as possible.
• Nesting tons of folders in your source code is also not helpful.
2. Since we need to have more items, here’s another one.
• I’m not sure if we’ll bother styling more than two levels deep.
• Two is already too much, three is guaranteed to be a bad idea.
• If you nest four levels deep you belong in prison.
3. Two items isn’t really a list, three is good though.
• Nobody wants to look at this.
• I’m upset that we even have to bother styling this.

• If you wish to succeed, you should use persistence as your good friend, experience as your reference, prudence as your brother and hope as your sentry.
如果你希望成功，当以恒心为良友，以经验为参谋，以谨慎为兄弟，以希望为哨兵。
• Sometimes one pays most for the things one gets for nothing.
有时候一个人为不花钱得到的东西付出的代价最高。
• Only those who have the patience to do simple things perfectly ever acquire the skill to do difficult things easily.
只有有耐心圆满完成简单工作的人，才能够轻而易举的完成困难的事。

## 引用

我想：我同赵贵翁有什么仇，同路上的人又有什么仇；只有廿年以前，把古久先生的陈年流水簿子⑶，踹了一脚，古久先生很不高兴。赵贵翁虽然不认识他，一定也听到风声，代抱不平；约定路上的人，同我作冤对。但是小孩子呢？那时候，他们还没有出世，何以今天也睁着怪眼睛，似乎怕我，似乎想害我。这真教我怕，教我纳罕而且伤心。

## 数学公式

  1 2 3 4 5 6 7 8 9 10 11 12  这是一条行内公式：$E={\sqrt {p^{2}c^{2}+m^{2}c^{4}}}=\gamma mc^{2}$ $E={\sqrt {p^{2}c^{2}+m^{2}c^{4}}}=\gamma mc^{2}$ $$E_{0}=mc^{2}$$ \$3 < 4\$ \begin{align} p(v_i=1|\mathbf{h}) & = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \\ p(h_j=1|\mathbf{v}) & = \sigma\left(\sum_i w_{ij}v_i + c_j\right) \end{align} 

$$E_{0}=mc^{2}$$

$3 < 4$

\begin{align} \nonumber p(v_i=1|\mathbf{h}) & = \sigma\left(\sum_j w_{ij}h_j + b_i\right) \ p(h_j=1|\mathbf{v}) & = \sigma\left(\sum_i w_{ij}v_i + c_j\right) \end{align}