diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-05-08 17:07:24 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-05-08 17:07:24 +0200 |
commit | 3f33e70656de07a55c014276a23814d1dd968229 (patch) | |
tree | 240101bf4e8fc213e6627ce29293fd45e641dc26 /mod/doc/context/third/rst/hybridtest.tex | |
parent | 3f0ea559afbbfbe7c4642df946a2407800d29c68 (diff) | |
download | context-rst-3f33e70656de07a55c014276a23814d1dd968229.tar.gz |
xml interface; extended module documentation
Diffstat (limited to 'mod/doc/context/third/rst/hybridtest.tex')
-rw-r--r-- | mod/doc/context/third/rst/hybridtest.tex | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/mod/doc/context/third/rst/hybridtest.tex b/mod/doc/context/third/rst/hybridtest.tex new file mode 100644 index 0000000..bd509c0 --- /dev/null +++ b/mod/doc/context/third/rst/hybridtest.tex @@ -0,0 +1,42 @@ +\usemodule[rst][test=yes] +\setuphead[chapter][page=no,style=bold] + +\def\RSTCTX{{\em rst}\kern.5pt\CONTEXT} +\def\reST{{\rm re}{\ss Structured}{\rm Text}} + +\starttext + +\chapter{\RSTCTX\ Hybrid Documents} + +This example demonstrates the macro \type{\RST} which can be used +to process \reST\ markup directly in a normal \CONTEXT\ document. + +\RST{ +------------- +This Chapter, +------------- + +… for instance, was given entirely in *reST* markup. Naturally, +there are some :bold:`drawbacks` to expect when mixing markups: +directives and hyperlink targets that have already been specified +somewhere above the current section will *stay* accessible in +later passages until you redefine them. Also, certain letters +need to be thoroughly escaped in order for them to make it +through to the *reST*-parser, e.g. *\\\{* (<left brace>), and +you’ll have to be inventive to make a backslash +(*\\letterbackslash*) pass through the parser. + +} + +\startRST + +------------- +Alternatively +------------- +you may always use the matching environment ``\\[start|stop]RST`` +if you prefer. + +\stopRST + + +\stoptext |