Add ability to export to plaintext and BibTeX
As a LaTeX user, I want to generate BibTeX citations via the command line so that I can easily generate citations before compiling.
Good deal! This is the second time I've heard this request this week - glad you opened the issue!
I think it's a solid plan and I've got an okay idea about how to implement it - I'll post an update shortly after I've got a moment to review the BibTeX standard.
I think how this would work from the user-side of things would be to write the BibTex snippet to stdout (current default behavior) and add a new flag so the result could be written to a file, i.e.
hardcider --tex -o myoutput.tex https://en.wikipedia.org/wiki/LaTeX
@kburk1997 LMK your thoughts - thanks!
@kburk1997 Also when you've got a moment please post an sample BibTex snippet that would be suitable for a website. The following is what's returned for a default (MLA) website citation:
“John Coltrane.” Wikipedia, Wikimedia Foundation, 24 Oct. 2018, en.wikipedia.org/wiki/John_Coltrane.
If you could format that into a suitable BibTex snippet it would be hugely helpful - thanks!
@kburk1997 I've added support for BibTeX in version 0.3.0 - I'll keep this ticket open for discussion since outputting the TeX to a file sounds like a valid use case