Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for citations #185

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add support for citations #185

wants to merge 8 commits into from

Conversation

mpastell
Copy link
Collaborator

@mpastell mpastell commented Mar 1, 2019

I'm looking into adding support for citations in m2html and md2pdf formats (#144). Current state and plans:

  • Parse citations from Markdown
  • Format citations for output as numbers (html)
  • Add list of references (html)
  • Convert citations to latex
  • Run bibtex when converting to pdf if needed

@ChrisRackauckas
Copy link
Member

@pfitzseb this seems like it's pretty far along, and mostly stalled because the HTML doesn't add the list of references? It would be nice if this got rebased and merged even if that HTML part isn't fully complete yet, since this would likely be mostly used with PDFs.

@jlperla how did you it with https://julia.quantecon.org/ ?

Xref @strangeli

@jlperla
Copy link

jlperla commented Oct 31, 2019

@ChrisRackauckas The QE is built around a very flexible but complicated RST/sphinx based tool: https://github.com/QuantEcon/jupinx and I think (but am not entirely sure) that the latex stuff comes out of sphinx. Not many lessons that can be learned from it for Weave, I fear.

@Tokazama
Copy link

Is anyone still working one this?

Comment on lines +23 to +26
cites = []
for c in citations.content
push!(cites, c.key)
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cites = []
for c in citations.content
push!(cites, c.key)
end
cites = map(c -> c.key, citations.content)

Can avoid potential dynamic resizing by not using push! here

@drbenvincent
Copy link

drbenvincent commented Mar 11, 2021

Just dropping by to say this feature would be very cool. Being able to drop in bibtex citations in .jmd files then weave that into pdf's would unlock the door to writing journal papers in .jmd. In my humble opinion, this would be a really really cool addition to the Julia ecosystem.

@storopoli
Copy link

Just dropping by to say this feature would be very cool. Being able to drop in bibtex citations in .rmd files then weave that into pdf's would unlock the door to writing journal papers in .rmd. In my humble opinion, this would be a really really cool addition to the Julia ecosystem.

I agree, looking forward to it. Did you mean .jmd?

@drbenvincent
Copy link

I agree, looking forward to it. Did you mean .jmd?

Yes! Thanks for spotting that. I've corrected the mistake.

@EvoArt
Copy link

EvoArt commented Mar 22, 2021

Just dropping by to say this feature would be very cool. Being able to drop in bibtex citations in .jmd files then weave that into pdf's would unlock the door to writing journal papers in .rmd. In my humble opinion, this would be a really really cool addition to the Julia ecosystem.

Agreed! This would be a brilliant addition.

@AhmedSalih3d
Copy link

Has this been deserted? 😊

Just so I don't try too deep into using it

@newptcai
Copy link
Contributor

newptcai commented May 2, 2024

Has this been deserted? 😊

Just so I don't try too deep into using it

It more or less works and you can always fork it by yourself. But I agree it is a bit disheartening to see so many pull requests remain unmerged as a Weave user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants