cboettig / knitcitations

:package: Generate citations for knitr markdown and html files
http://carlboettiger.info
Other
220 stars 28 forks source link

Wrong format of the superscript numeric citations. #79

Open wolass opened 9 years ago

wolass commented 9 years ago

Hello,

when I use the following options

cite_options(citation_format = "compatibility", style = "text",
hyperlink = FALSE, cite.style = "numeric", super = TRUE,
max.names = 4, longnamesfirst = FALSE, check.entries = FALSE)

I get such formatted citations which are not superscript:

^{[5]}

These should rather be:

^[5]^

Am I right?

cboettig commented 8 years ago

looks like a latex vs markdown format distinction. Guessing you're going for markdown with the goal of rendering to html then? (instead of markdown -> tex -> pdf, which is also a popular workflow.) Will have to dig into it and see if there's a good way to handle both use cases.