<?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><para>本页说明 <ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/MoinMoin#">MoinMoin</ulink> 使用的维基语法（注意：只是基本语法，但不是唯一的语法）。其他语法参见 <ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/%E5%B8%AE%E5%8A%A9-%E5%88%86%E6%9E%90#">帮助-分析</ulink>。 </para><section><title>基本规则</title><itemizedlist><listitem><para>每个段落之间用一个或多个空行分隔。 </para></listitem><listitem><para>使用<code>&lt;&lt;BR&gt;&gt;</code><ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/%E5%B8%AE%E5%8A%A9-%E5%AE%8F#">宏</ulink>在段落内分行。 </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>斜体</emphasis>       </para></entry><entry colsep="1" rowsep="1"><para> <code>''斜体''</code>         </para></entry><entry colsep="1" rowsep="1"><para> 每边各用两个单引号        </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  <emphasis role="strong">粗体</emphasis>     </para></entry><entry colsep="1" rowsep="1"><para> <code>'''粗体'''</code>       </para></entry><entry colsep="1" rowsep="1"><para> 每边各用三个单引号        </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  等宽         </para></entry><entry colsep="1" rowsep="1"><para> <code>`等宽`</code>       </para></entry><entry colsep="1" rowsep="1"><para> 每边各用一个backticks '`'，其中的Wiki标记将被忽略。 </para><para>因为有的浏览器会产生换行问题，所以应当尽量避免大段文字使用这个标记，尤其是在表格中的文字。</para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  代码     </para></entry><entry colsep="1" rowsep="1"><para> <code>{{{代码}}}</code>       </para></entry><entry colsep="1" rowsep="1"><para> 其中的Wiki标记将被忽略。<link linkend="codeexample">示例</link> </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  <emphasis role="underline">下划线</emphasis>     </para></entry><entry colsep="1" rowsep="1"><para> <code>__下划线__</code>       </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  <superscript>上</superscript>标         </para></entry><entry colsep="1" rowsep="1"><para> <code>^上^标</code>           </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  <subscript>下</subscript>标       </para></entry><entry colsep="1" rowsep="1"><para> <code>,,下,,标</code>         </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  <!--"~-smaller-~" is not applicable to DocBook-->小号字体   </para></entry><entry colsep="1" rowsep="1"><para> <code>~-小号字体-~</code>     </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para>  <!--"~+bigger+~" is not applicable to DocBook-->大号字体   </para></entry><entry colsep="1" rowsep="1"><para> <code>~+大号字体+~</code>     </para></entry><entry colsep="1" rowsep="1"/></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <emphasis role="strikethrough">删除线</emphasis>    </para></entry><entry colsep="1" rowsep="1"><para> <code>--(删除线)--</code>     </para></entry><entry colsep="1" rowsep="1"><para> <ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/MoinMoin#">MoinMoin</ulink> 1.5 以上版本支持   </para></entry></row></tbody></tgroup></informaltable></section><section><title>彩色文字</title><para>如果不使用宏，那么彩色文字只能在表格中使用。（参见<ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/%E5%B8%AE%E5%8A%A9-%E8%A1%A8%E6%A0%BC#">帮助-表格</ulink>） </para></section><section><title>彩色源代码展示</title><para>有几种方法可以用来展示彩色的源程序代码: </para><orderedlist numeration="arabic"><listitem><para>在源程序代码的第一行插入并只包含 <code>{{{#!分析插件名</code> </para></listitem><listitem><para>通过<code>&quot;inline:&quot;</code>嵌入一个以&quot;.py&quot;为扩展名的附件。 </para></listitem><listitem><para>在网页的开始插入处理指令 <code>&quot;#format 分析插件名</code> </para></listitem></orderedlist><para><link linkend="SyntaxHighlighting">点击查看示例。</link> </para><para>MoinMoin 内置一个基于 <ulink url="http://pygments.org/">Pygments</ulink> 的名为<ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/%E5%B8%AE%E5%8A%A9-%E5%88%86%E6%9E%90%E6%8F%92%E4%BB%B6#The_highlight_parser">语法高亮</ulink>的特殊分析器。 </para><para>你可以使用它来高亮任何程序代码、配置文件或其他类型的文本文件。 </para></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>'''''混合'''在开头''</code>          </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis><emphasis role="strong">混合</emphasis>在开头</emphasis>     </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''''混合''在开头'''</code>          </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis role="strong"><emphasis>混合</emphasis>在开头</emphasis>     </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>'''混合''在结尾'''''</code>          </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis role="strong">混合<emphasis>在结尾</emphasis></emphasis>     </para></entry></row><row rowsep="1"><entry colsep="1" rowsep="1"><para> <code>''混合'''在结尾'''''</code>          </para></entry><entry colsep="1" rowsep="1"><para>  <emphasis>混合<emphasis role="strong">在结尾</emphasis></emphasis>     </para></entry></row></tbody></tgroup></informaltable></section><section><title>上标 &amp; 下标</title><para>标记语言： </para><screen><![CDATA[`You might recall ''a''^2^ `+` ''b''^2^ `=` ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.`]]></screen><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="codeexample"/> </para></section><section><title>代码</title><para>标记语言： </para><screen><![CDATA[{{{
10 PRINT "Hello, world!"
20 GOTO 10
}}}]]></screen><para>显示结果： </para><screen><![CDATA[10 PRINT "Hello, world!"
20 GOTO 10]]></screen><section><title>嵌套花括号</title><para>在<ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/%E5%B8%AE%E5%8A%A9-%E5%88%86%E6%9E%90%E6%8F%92%E4%BB%B6#">帮助-分析插件</ulink>中提到，花括号可以嵌套使用： </para><para>标记语言： </para><screen><![CDATA[{{{{ 
This is a preformatted text block.
{{{ with curly braces inside }}}
}}}}]]></screen><para>显示结果： </para><screen><![CDATA[This is a preformatted text block.
{{{ with curly braces inside }}}]]></screen><para><anchor id="SyntaxHighlighting"/> </para></section><section><title>彩色代码</title><para>标记语言： </para><screen><![CDATA[{{{#!highlight python
from colors import palette
palette.colorize('python')
}}}]]></screen><para>显示结果： </para><programlisting format="linespecific" language="highlight" 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><para>此页的英文版本：<ulink url="http://research.math.uvt.ro/wiki/%E5%B8%AE%E5%8A%A9-%E6%8E%92%E7%89%88/wiki/HelpOnFormatting#">HelpOnFormatting</ulink> </para></section></section></section></section></article>