diff options
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 48e5987..f6890ed 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -719,3 +719,12 @@ function abraces(str) | |||
719 | end | 719 | end |
720 | return str | 720 | return str |
721 | end | 721 | end |
722 | |||
723 | function aemph(str) | ||
724 | if tex.textdir == "TRT" then | ||
725 | str = "$\\overline{\\text{"..str.."}}$" | ||
726 | elseif tex.textdir == "TLT" then | ||
727 | str = "$\\underline{\\text{"..str.."}}$" | ||
728 | end | ||
729 | return str | ||
730 | end | ||