diff options
author | Robert Alessi <alessi@robertalessi.net> | 2018-11-06 10:56:20 +0100 |
---|---|---|
committer | Robert Alessi <alessi@robertalessi.net> | 2018-11-06 10:56:20 +0100 |
commit | 17be6d449481e7580f18825b342fbef97d13b067 (patch) | |
tree | 8f387cfb968938da77bc71047925ecf4545ad64f /arabluatex.lua | |
parent | 4a37f31851d48d04c9d9ddebdd124146fd7760df (diff) | |
download | arabluatex-17be6d449481e7580f18825b342fbef97d13b067.tar.gz |
make \aemph use ulem instead of \overline and \underline
Diffstat (limited to 'arabluatex.lua')
-rw-r--r-- | arabluatex.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arabluatex.lua b/arabluatex.lua index 66bbbde..43167eb 100644 --- a/arabluatex.lua +++ b/arabluatex.lua | |||
@@ -705,7 +705,7 @@ local function processarbtoutf(str) | |||
705 | bbody = string.sub(bbody, 2, -2) | 705 | bbody = string.sub(bbody, 2, -2) |
706 | if tonumber(bbody) ~= nil then | 706 | if tonumber(bbody) ~= nil then |
707 | bbody = abjadify(bbody) | 707 | bbody = abjadify(bbody) |
708 | return string.format("\\aemph{\\arb[novoc]{%s}}", bbody) | 708 | return string.format("\\oline*{\\arb[novoc]{%s}}", bbody) |
709 | else | 709 | else |
710 | return string.format("%s{%s}", btag, bbody) | 710 | return string.format("%s{%s}", btag, bbody) |
711 | end | 711 | end |
@@ -1149,12 +1149,12 @@ end | |||
1149 | 1149 | ||
1150 | function aemph(str, opt) | 1150 | function aemph(str, opt) |
1151 | if tex.textdir == "TRT" then | 1151 | if tex.textdir == "TRT" then |
1152 | str = "$\\overline{\\text{\\textdir TRT{}"..str.."}}$" | 1152 | str = "\\oline{\\textdir TRT{}"..str.."}" |
1153 | elseif tex.textdir == "TLT" then | 1153 | elseif tex.textdir == "TLT" then |
1154 | if opt == "over" then | 1154 | if opt == "over" then |
1155 | str = "$\\overline{\\text{"..str.."}}$" | 1155 | str = "\\oline{"..str.."}" |
1156 | else | 1156 | else |
1157 | str = "$\\underline{\\text{"..str.."}}$" | 1157 | str = "\\uline{"..str.."}" |
1158 | end | 1158 | end |
1159 | end | 1159 | end |
1160 | return str | 1160 | return str |