Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

thor book:build pdf doesn't work #49

Closed
lomereiter opened this Issue · 4 comments

2 participants

@lomereiter

The '#' symbol gets unescaped in the produced .tex file thus causing an error: 'You can't use `macro parameter character #' in horizontal mode.'

@zzak
Owner

I'm open to new ideas on how to build the PDF format of the book.. got any ideas?

@lomereiter

Urr... I found the source of this error. Maruku uses 1.8 syntax where '?#' returns 35 whereas in 1.9 it returns '#'. Thus the 'each_byte' cycle in 'maruku/output/to_latex_strings.rb' doesn't work as expected.
So the only thing I can suggest is to do something like 'if RUBY_VERSION >= '1.9' then String::LATEX_ADD_SLASH.map!(&:ord); String::LATEX_TO_CHARCODE.map!(&:ord); end'

@zzak
Owner

I started work on the build process: sinatra-book/rebuild

@zzak
Owner

New build process merged into master, please check it

@zzak zzak closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.