diff options
Diffstat (limited to 'mod/tex')
-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")}} |