bennyboer / thaw

Hierarchical organizable and versionable document tool with export to PDF
MIT License
4 stars 1 forks source link

Use Citeproc for citation styles #35

Closed bennyboer closed 4 years ago

bennyboer commented 4 years ago

We could use something like citeproc-java to support a lot of citation styles without a lot more work!

bennyboer commented 4 years ago

During testing I found that this will lead to a vast performance loss when building the document. We need to introduce some kind of caching for already built stuff (when the literature source file *.tdr) has not changed.

bennyboer commented 4 years ago

TODO

bennyboer commented 4 years ago

Estimated to be done by 18th of September

bennyboer commented 4 years ago

Example

Info file:

encoding = UTF-8
language = en

bibliography.file = refs.bib
bibliography.style = apa

Bibtex file (refs.bib)

@INPROCEEDINGS{Shor,
    author = {P. W. {Shor}},
    booktitle = {Proceedings 35th Annual Symposium on Foundations of Computer Science},
    title = {Algorithms for quantum computation: discrete logarithms and factoring},
    year = {1994},
    pages = {124-134} }

Thaw document text file (*.tdt)

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, 
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, 
sed diam voluptua #CITE, 'Shor, locator=page 124'#.

#REFERENCES#

Result (Screenshot)

grafik