CTAN Comprehensive TeX Archive Network

Directory biblio/citation-style-language

README.md

citation-style-language

The Citation Style Language (CSL) is an XML-based language that defines the formats of citations and bibliography. There are currently thousands of styles in CSL including the most widely used APA, Chicago, Vancouver, etc. The citation-style-language package is aimed to provide another reference formatting method for that utilizes the CSL styles. It contains a citation processor implemented in pure Lua (citeproc-lua) which reads bibliographic metadata and performs sorting and formatting on both citations and bibliography according to the selected CSL style. A package (citation-style-language.sty) is provided to communicate with the processor.

This project is in early development stage and some features of CSL (especially collapsing and disambiguation) are not implemented yet. Comments, suggestions and bug reports are welcome.

example

A full example is in the examples/ directory.

  • document example.tex
\documentclass{article}

\usepackage{citation-style-language}
\cslsetup{style = apa}
\addbibresource{example.json}  % or example.bib or example.yaml

\begin{document}

\cite{ITEM-1}
\printbibliography

\end{document}
  • Compiling with Lua
lualatex example.tex
lualatex example.tex
  • Compiling with other engines
pdflatex example.tex
citeproc-lua example.aux
pdflatex example.tex

License

The package and Lua library are released under MIT license. The CSL locale files and styles are redistributed under the Creative Commons Attribution-ShareAlike 3.0 Unported license.

Download the contents of this package in one zip archive (4.5M).

citation-style-language – Bibliography formatting with Citation Style Language

The Citation Style Language (CSL) is an XML-based language that defines the formats of citations and bibliography. There are currently thousands of styles in CSL including the most widely used APA, Chicago, Vancouver, etc. The citation-style-language package is aimed to provide another reference formatting method for that utilizes the CSL styles. It contains a citation processor implemented in pure Lua (citeproc-lua) which reads bibliographic metadata and performs sorting and formatting on both citations and bibliography according to the selected CSL style. A package (citation-style-language.sty) is provided to communicate with the processor.

Packagecitation-style-language
Repositoryhttps://github.com/zepinglee/citeproc-lua
Version0.6.5 2024-10-05
LicensesMIT License
CC BY-SA 3.0
Copyright2021–2024 Zeping Lee
MaintainerZeping Lee
TDS archivecitation-style-language.tds.zip
Contained inTeX Live as citation-style-language
MiKTeX as citation-style-language
TopicsUse Lua
Experimental 3
Biblio
...
Guest Book Sitemap Contact Contact Author