Closed postylem closed 3 years ago
Sorry I’ve never used pandoc with citations. Feel free to contribute whatever styles you think you need!
Ok. I just made a pull request here https://github.com/jez/tufte-pandoc-css/pull/6#issue-677603271 with this addition. It doesn't provide complete support (I've only tested it with the default chicago-author-date
style), but it should work for people who just use the default settings which is better than nothing :).
I was compiling HTML from markdown using pandoc with the
--citeproc
option, and I noticed that the bibliography looked bad (basically because there's no hanging indent).Here is an example with tufte-pandoc-css
Compare to the following (with the default css), it's clear that the lack of hanging indent makes it pretty unreadable.
This seems to be caused by the fact that no classes such as
div.csl-entry
are defined in tufte-css, or in the additional css files in this repo. I hacked together a quick fix by copying things from the default css. This is what I added:to get the following
This is better. But, a more comprehensive fix would be needed to make this work with arbitrary CSLs, I think (I'm just using the default Chicago author-year CSL, ones that make numbered references (e.g. Springer, or IEEE) would need additional attention.) Am I missing something, and is this fix not needed? Is fixing this something within the scope of this project?
(Also, This repo is great. Thanks for putting it up!)