diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-01-03 08:58:07 +0100 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-01-03 08:58:07 +0100 |
commit | 39efd560f1f022e7350471891998072de6682b73 (patch) | |
tree | e533b0bccc66a0b02509993aebc995576f4280cf /mod | |
parent | e03d17810c41bf64c96091d06715840f89ad3086 (diff) | |
download | context-rst-39efd560f1f022e7350471891998072de6682b73.tar.gz |
added trivial formatting roles
Diffstat (limited to 'mod')
-rw-r--r-- | mod/tex/context/third/rst/rst_context.lua | 13 | ||||
-rw-r--r-- | mod/tex/context/third/rst/t-rst.mkiv | 5 |
2 files changed, 13 insertions, 5 deletions
diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua index 1b6e5e3..a18086b 100644 --- a/mod/tex/context/third/rst/rst_context.lua +++ b/mod/tex/context/third/rst/rst_context.lua @@ -141,13 +141,20 @@ rst_context.roles.emphasis = rst_context.emphasis rst_context.roles.strong_emphasis = rst_context.strong_emphasis rst_context.roles.literal = rst_context.literal rst_context.roles.bold = function(str) - return [[{\\bf ]] .. str .. [[}]] + return [[{\\bold ]] .. str .. [[}]] end +rst_context.roles.bf = rst_context.roles.bold -rst_context.roles.ss = function(str) +rst_context.roles.italic = function(str) + return [[{\\italic ]] .. str .. [[}]] +end +rst_context.roles.it = rst_context.roles.italic + +rst_context.roles.sans = function(str) return [[{\\ss ]] .. str .. [[}]] end -rst_context.roles.sans_serif = rst_context.roles.ss +rst_context.roles.sans_serif = rst_context.roles.sans +rst_context.roles.ss = rst_context.roles.sans rst_context.roles.uppercase = function(str) return utf.upper(str) diff --git a/mod/tex/context/third/rst/t-rst.mkiv b/mod/tex/context/third/rst/t-rst.mkiv index f514b57..e76d3db 100644 --- a/mod/tex/context/third/rst/t-rst.mkiv +++ b/mod/tex/context/third/rst/t-rst.mkiv @@ -30,11 +30,12 @@ parent=RST, ] -\setupreST[ ] - %D Loading the reStructuredText parser. \ctxlua{environment.loadluafile("rst_parser")} +%D Setting some globals. +\setupreST [ ] + %D This command loads and processes the \type{*.rst} file. \def\typesetRSTfile#1{\ctxlua{do_rst_file("#1")}} |