inukshuk/jekyll-scholar — pull request #16 by ashinkarov (2013-04-04 02:42:50+00:00)
Title: Proper detail generation

Hi

Thanks for maintaining this library. Recently I came across a bug, and I would like to pay your attention to it.

When I generate details for an entry a couple of things go wrong:
1) In the bibtex field of the page 'entry' the latex-style symbols are converted to unicode. The bibtex entry should be exactly the same as in my .bib file. Otherwise bibtex (latex one) might not process unicode symbols correctly.
2) Multiple paragraphs in the abstract are lost due to replacement of newlines. Which makes it more difficult to read and clumsy when you want to insert this entry in your bibtex file.

In essence that suggests that we need to keep the bibtex part of the details exactly as in the original file. In order to do that one has to remove 'latex' filter, add ':strip => false' and apply 'latex' filter only when generating html. That was my first attempt which unfortunately have failed -- when I convert an entry with a filter, bibtex-ruby fails with the error-message "Failed to load filter". After some time I gave up on this idea and simply added a raw bibliography in utilities.rb adjusting details.rb accordingly. This isn't the best solution, but it seems to work rather well.

Please have a look, may be you can come up with something more elegant. It would be just nice to fix it somehow.

Cheers,
Artem.