Did someone already waste spend time to research the fllowing:
Which of the hundreds of the available csl files is closest to the bibtex style amsplain (or maybe just plain)?
I.e., ideally exactly the fields as in amsplain should be used, and the fields should be printed in the same order and in more or less the same style.
Note that many csl files seem to ignore the note
entry, which would be important to me, but this can be fixed manually; but there might be other fields I am not aware of that might be missing as well? I would ignore the MRNUMBER
entry anyway, btw; and it is not important whether URL
is handled as in amsplain.
Remark: The reason I am interested in that is the following: I would like to convert bibtex bibliographies to html (using katex), with the output being close to the result I would get with latex and (for example) the amsplain bibstyle. It seems that pandoc would be a good tool for that. (And I might replace the printed url field with a hyperlink, so this will have to be handled seperately anyway.)
Update:
- Thanks for the suggestion, but I do not want to use bibtex2html. While this is really very fast and robust and true to bibtex, cannot use it as I need katex compatible output. E.g., if I have
$a+b$
somewhere in a title, thenpandoc --katex --bibliography test.bib test.tex
gives...<span class="math inline">\(a+b\)</span>...
which can then be efficiently used with katex to produce beautiful html. bibtex2html produces somehting like...<em>a</em>+<em>b</em>...
. - Thanks for the linkt to the CSL editor etc. Indeed it seems quite managable to produce something reasonable there. Just for completeness I would like to mentioan another problem I ran into: pandoc-citeproc (which reads the bib file and prepares a pandoc-compatible format from it, before any CSL file comes into play) refuses to parse non-date
year
entries. As it seems ususal to abuse the bibtex year field withto appear
or similar information, it seems that another workaround is required to preserve this infromation. (In my case, I might automatically duplicate everyyear
bibfield to anoriginalyear
field or similar; and then use theorginalyear
in the CSL)
bibtex2html -s amsplain bibliography.bib
should give you a reasonably formattedbibliography.html