Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

citeproc-lua examples

Note that the API is not stable.

LaTeX example

  1. Intall the package
make install

This command uses l3build to install the .sty and .lua files to TEXMFHOME which is usually ~/texmf on Linux or ~/Library/texmf on macOS.

  1. Compile the document.

For LuaLaTeX, the citations and bibliography can be generated without triggering BibTeX. It takes at most two passes to get the correct labels.

cd example
lualatex example.tex
lualatex example.tex

The latexmk can also be used.

latexmk -cd -lualatex examples/example.tex

For engines other than LuaLaTeX, the citeproc executable is required to run as BibTeX.

cd examples
pdflatex example.tex
citeproc-lua example.aux
pdflatex example.tex

The following commands are used for uninstalling from TEXMFHOME.

make uninstall

Bib example

The citeproc can also run as a stanalone script to convert a .bib database to CSL-JSON format.

citeproc-lua examples/example.bib