Created
August 25, 2019 02:29
-
-
Save kmuto/296c2de7a85dfae7689e1855ea8c09c1 to your computer and use it in GitHub Desktop.
U+00A5 を\textyen (Yに=を重ねる)にする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ¥: U+00A5 を\textyen (Yに=を重ねる)にする | |
# ¥: U+FFE5 はそのまま | |
module ReVIEW | |
module LATEXBuilderOverride | |
def result | |
# 半角円記号を統合させず代替の\textyenのほうを使う | |
# 本当はhspaceするよりもコード環境のほうでxkanjiskipを設定したほうがよさそう | |
super.gsub('¥', '\hspace{0pt}\textyen{}\hspace{0pt}') | |
end | |
end | |
class LATEXBuilder | |
prepend LATEXBuilderOverride | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment