Skip to content

Instantly share code, notes, and snippets.

@himajin315
Created March 12, 2015 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save himajin315/df7a7f20888224b9d5ef to your computer and use it in GitHub Desktop.
Save himajin315/df7a7f20888224b9d5ef to your computer and use it in GitHub Desktop.
review-ext.rb
ReVIEW::Compiler.definline :seqsplit
module ReVIEW
class LATEXBuilder
def inline_seqsplit(str)
escaped_str = escape_latex(str)
"\\seqsplit{#{escaped_str}}"
end
end
class HTMLBuilder
def inline_seqsplit(str)
str
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment