This file contains 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
# 空白を~に置き換えることでseqsplitで空白が消えないようにするハックを入れたreview-ext.rb | |
# Re:VIEW 3.0〜Re:VIEW 3.1向け (Re:VIEW 3.2では不要) | |
# プロジェクトにこのファイルを配置し、techbooster-doujin-base.styの「tt/codeでの折り返しの許容」のロジックの「\iffalse」を「\iftrue」に置き換える | |
module ReVIEW | |
module LATEXBuilderOverride | |
def inline_tt(s) | |
escape_space(super(s)) | |
end | |
def inline_code(s) | |
escape_space(super(s)) | |
end | |
def inline_tti(s) | |
escape_space(super(s)) | |
end | |
def inline_ttb(s) | |
escape_space(super(s)) | |
end | |
def escape_space(s) | |
s.gsub(' ', '~') # 空白を~に置き換える | |
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