<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>說明/排版</title></articleinfo><section><title>一般法則</title><itemizedlist><listitem><para>用一個以上的空白行來分開不同段落 </para></listitem><listitem><para>用 <code>&lt;&lt;BR&gt;&gt;</code> 可在段落中強迫斷行 </para></listitem></itemizedlist></section><section><title>字體</title><informaltable><tgroup cols="3"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strong">字體變化</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">語法標記</emphasis>    </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">說明</emphasis> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis>italic</emphasis>     </para></entry><entry colsep="1" rowsep="1"><para> <code>''italic''</code>      </para></entry><entry colsep="1" rowsep="1"><para> 斜體字 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strong">bold</emphasis>     </para></entry><entry colsep="1" rowsep="1"><para> <code>'''bold'''</code>      </para></entry><entry colsep="1" rowsep="1"><para> 粗體字 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>monospace</code>    </para></entry><entry colsep="1" rowsep="1"><para> <code>`monospace`</code> </para></entry><entry colsep="1" rowsep="1"><para> 打字機字體。Wiki 語法標記無效 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>code</code>     </para></entry><entry colsep="1" rowsep="1"><para> <code>{{{code}}}</code>      </para></entry><entry colsep="1" rowsep="1"><para> 用在程式範例。Wiki 語法標記無效 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="underline">underline</emphasis>  </para></entry><entry colsep="1" rowsep="1"><para> <code>__underline__</code>   </para></entry><entry colsep="1" rowsep="1"><para> 加底線 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <superscript>super</superscript>script  </para></entry><entry colsep="1" rowsep="1"><para> <code>^superscript^</code>   </para></entry><entry colsep="1" rowsep="1"><para> 上標字 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <subscript>sub</subscript>script  </para></entry><entry colsep="1" rowsep="1"><para> <code>,,subscript,,</code>   </para></entry><entry colsep="1" rowsep="1"><para> 下標字  </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <!--"~-smaller-~" is not applicable to DocBook-->smaller    </para></entry><entry colsep="1" rowsep="1"><para> <code>~-smaller-~</code>     </para></entry><entry colsep="1" rowsep="1"><para> 縮小字體 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <!--"~+bigger+~" is not applicable to DocBook-->larger     </para></entry><entry colsep="1" rowsep="1"><para> <code>~+larger+~</code>      </para></entry><entry colsep="1" rowsep="1"><para> 放大字體 </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strikethrough">stroke</emphasis>   </para></entry><entry colsep="1" rowsep="1"><para> <code>--(stroke)--</code>    </para></entry><entry colsep="1" rowsep="1"><para> 刪除線 </para></entry></row></tbody></tgroup></informaltable></section><section><title>程式語法加強顯示</title><para>程式語法加強顯示是針對不同的程式語言做特別的處理。程式語言的保留字、常數等經過解析器的處理，會以不同的顏色顯示，以方便閱讀。啟用解析器的方法有下列幾種： </para><orderedlist numeration="arabic"><listitem><para>在以 <code>{{{</code> 和 <code>}}}</code> 包起來的區塊中，指定解析器種類。如：<code>{{{#!parsername</code> </para></listitem><listitem><para>使用 <code>inline:</code> 嵌入有支援副檔名的附件。如：附件副檔名是 <code>&quot;.py&quot;</code> </para></listitem><listitem><para>用 #format 指示定義頁面內容的格式。如：<code>#format parsername</code> </para></listitem></orderedlist><para>關於目前支援的解析器，請參考 <ulink url="http://research.math.uvt.ro/wiki/%E8%AA%AA%E6%98%8E/%E6%8E%92%E7%89%88/wiki/HelpOnParsers#">HelpOnParsers</ulink>。 </para><!--rule (<hr>) is not applicable to DocBook--></section><section><title>範例</title><section><title>混合 ''斜體字'' 與 '''粗體字'''</title><para><anchor id="italic_bold_example"/> </para><informaltable><tgroup cols="2"><colspec colname="col_0"/><colspec colname="col_1"/><tbody><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strong">語法標記</emphasis>                    </para></entry><entry colsep="1" rowsep="1"><para> <emphasis role="strong">呈現結果</emphasis>                   </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''''Mix''' at the beginning''</code>  </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis><emphasis role="strong">Mix</emphasis> at the beginning</emphasis>  </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''''Mix'' at the beginning'''</code>  </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis role="strong"><emphasis>Mix</emphasis> at the beginning</emphasis>  </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''Mix at the ''end'''''</code>        </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis role="strong">Mix at the <emphasis>end</emphasis></emphasis>        </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>''Mix at the '''end'''''</code>        </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis>Mix at the <emphasis role="strong">end</emphasis></emphasis>        </para></entry></row></tbody></tgroup></informaltable></section><section><title>程式顯示</title><para><anchor id="code_example"/> </para><para><code>{{{</code> </para><para> <code>10 PRINT &quot;Hello, world!&quot;</code> </para><para> <code>20 GOTO 10</code> </para><para> <code>}}}</code> </para><para>結果： </para><screen><![CDATA[10 PRINT "Hello, world!"
20 GOTO 10]]></screen></section><section><title>上標字與下標字</title><para><code>You might recall ''a''^2^ </code>+<code> ''b''^2^ </code>=<code> ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.</code> </para><para>結果： </para><para>You might recall <emphasis>a</emphasis><superscript>2</superscript> <code>+</code> <emphasis>b</emphasis><superscript>2</superscript> <code>=</code> <emphasis>c</emphasis><superscript>2</superscript> from your math lessons, unless your head is filled with H<subscript>2</subscript>O. </para><para><anchor id="color_code_example"/> </para></section><section><title>程式語法加強顯示</title><para><code>{{{#!python</code> </para><para> <code>from colors import palette</code> </para><para> <code>palette.colorize('python')</code> </para><para> <code>}}}</code> </para><para>結果： </para><programlisting format="linespecific" language="python" linenumbering="numbered" startinglinenumber="1"><token><![CDATA[from]]></token><![CDATA[ ]]><methodname><![CDATA[colors]]></methodname><![CDATA[ ]]><token><![CDATA[import]]></token><![CDATA[ ]]><methodname><![CDATA[palette]]></methodname>
<methodname><![CDATA[palette]]></methodname><![CDATA[.]]><methodname><![CDATA[colorize]]></methodname><![CDATA[(]]><phrase><![CDATA[']]></phrase><phrase><![CDATA[python]]></phrase><phrase><![CDATA[']]></phrase><![CDATA[)]]>
</programlisting></section></section></article>