<Comment>% Single-line comment</Comment><br/>
<Section>\name</Section><Brace>{</Brace><NormalText>foo</NormalText><Brace>}</Brace><br/>
<Preprocessor>#ifdef </Preprocessor><Builtin>unix</Builtin><br/>
<Section>\alias</Section><Brace>{</Brace><Verbatim>bar</Verbatim><Brace>}</Brace><br/>
<Preprocessor>#endif</Preprocessor><Comment> ignored</Comment><br/>
<Section>\title</Section><Brace>{</Brace><NormalText>Foo</NormalText><Brace>}</Brace><br/>
<Section>\description</Section><Brace>{</Brace><br/>
<NormalText>    We have a list</NormalText><br/>
<NormalText>    </NormalText><Markup>\itemize</Markup><NormalText> </NormalText><Error>error</Error><Brace>{</Brace><br/>
<NormalText>        </NormalText><Markup>\item</Markup><NormalText> foo,</NormalText><br/>
<NormalText>        </NormalText><Markup>\item</Markup><NormalText> bar.</NormalText><br/>
<NormalText>    </NormalText><Brace>}</Brace><br/>
<NormalText>    Also a table: </NormalText><Markup>\tabular</Markup><Brace>{</Brace><Verbatim>lr</Verbatim><Brace>}{</Brace><br/>
<NormalText>        foo </NormalText><UserDefinedMacro>\tab</UserDefinedMacro><NormalText> </NormalText><Markup>\code</Markup><Brace>{</Brace><NormalText>foo</NormalText><Brace>}</Brace><NormalText> </NormalText><UserDefinedMacro>\cr</UserDefinedMacro><br/>
<NormalText>        bar </NormalText><UserDefinedMacro>\tab</UserDefinedMacro><NormalText> </NormalText><Markup>\preformatted</Markup><Brace>{</Brace><Verbatim>bar</Verbatim><Brace>}</Brace><br/>
<NormalText>    </NormalText><Brace>}</Brace><br/>
<Brace>}</Brace><br/>
<Section>\section</Section><Brace>{</Brace><ItemName>Section</ItemName><Brace>}{</Brace><br/>
<NormalText>    Escaped braces don't need balance </NormalText><Escape>\}</Escape><br/>
<NormalText>    </NormalText><Section>\subsection</Section><Brace>{</Brace><ItemName>Subsection</ItemName><Brace>}{</Brace><br/>
<NormalText>        </NormalText><Section>\subsection</Section><Brace>{</Brace><ItemName>Subsubsection</ItemName><Brace>}{</Brace><br/>
<NormalText>            Sections can be nested.</NormalText><br/>
<NormalText>        </NormalText><Brace>}</Brace><br/>
<NormalText>    </NormalText><Brace>}</Brace><br/>
<Brace>}</Brace><br/>
<Section>\usage</Section><Brace>{</Brace><br/>
<Keyword>foo</Keyword><Symbol>(</Symbol><Normal Text>a, </Normal Text><Identifier>b =</Identifier><Normal Text> default</Normal Text><Symbol>)</Symbol><br/>
<Brace>}</Brace><br/>
<Markup>\newcommand</Markup><Brace>{</Brace><UserDefinedMacro>\macro</UserDefinedMacro><Brace>}{</Brace><NormalText>Test</NormalText><UserDefinedMacroArgument>#1</UserDefinedMacroArgument><Brace>}</Brace><br/>
<Section>\arguments</Section><Brace>{</Brace><br/>
<NormalText>  </NormalText><Markup>\item</Markup><Brace>{</Brace><ItemName>a</ItemName><Brace>}{</Brace><Markup>\if</Markup><Brace>{</Brace><Builtin>html</Builtin><Brace>}{</Brace><NormalText>&pi; =</NormalText><Brace>}</Brace><NormalText> </NormalText><Markup>\Sexpr</Markup><Brace>[</Brace><Verbatim>stage=build</Verbatim><Brace>]</Brace><Error>error</Error><Brace>{</Brace><Int>4</Int><Operator>*</Operator><Keyword>atan</Keyword><Symbol>(</Symbol><Int>1</Int><Symbol>)</Symbol><Brace>}}</Brace><br/>
<NormalText>  </NormalText><Markup>\item</Markup><Brace>{</Brace><ItemName>b</ItemName><Brace>}{</Brace><UserDefinedMacro>\macro</UserDefinedMacro><Brace>{</Brace><NormalText>text</NormalText><Brace>}</Brace><NormalText> </NormalText><Markup>\link</Markup><Brace>[</Brace><Verbatim>pkg:bar</Verbatim><Brace>]{</Brace><NormalText>fooo</NormalText><Brace>}}</Brace><br/>
<Brace>}</Brace><br/>
<Section>\seealso</Section><Brace>{</Brace><br/>
<NormalText>  </NormalText><Markup>\code</Markup><Brace>{</Brace><Markup>\link</Markup><Brace>{</Brace><NormalText>bar</NormalText><Brace>}}</Brace><br/>
<Brace>}</Brace><br/>
<Section>\examples</Section><Brace>{</Brace><br/>
<Comment># R comment</Comment><br/>
<Comment>% Rdoc comment</Comment><br/>
<Keyword>foo</Keyword><Symbol>(</Symbol><Int>1</Int><Symbol>)</Symbol><br/>
<Control Structure>for</Control Structure><NormalText> </NormalText><Symbol>(</Symbol><Normal Text>i </Normal Text><Control Structure>in</Control Structure><Normal Text> </Normal Text><Int>1</Int><Operator>:</Operator><Int>10</Int><Symbol>)</Symbol><br/>
<NormalText>    </NormalText><Keyword>foo</Keyword><Symbol>(</Symbol><Normal Text>i</Normal Text><Symbol>)</Symbol><br/>
<Brace>}</Brace><br/>
<Section>\keyword</Section><Brace>{</Brace><NormalText>foo</NormalText><Brace>}</Brace><br/>
