# eleventy-plugin-bibtex

> Converts Bibtex references into APA-styled HTML

Latest version **0.1.1** (published 2021-05-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install eleventy-plugin-bibtex
pnpm add eleventy-plugin-bibtex
yarn add eleventy-plugin-bibtex
bun add eleventy-plugin-bibtex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-05-20 |
| First published | 2021-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Xavier Decuyper |
| Maintainers | savjee |
| Keywords | eleventy, staticgen, bibtex |

## Links

- npm: https://www.npmjs.com/package/eleventy-plugin-bibtex
- Repository: https://github.com/Savjee/eleventy-plugin-bibtex
- Homepage: https://github.com/Savjee/eleventy-plugin-bibtex#readme
- Issues: https://github.com/Savjee/eleventy-plugin-bibtex/issues
- npm.io page: https://npm.io/package/eleventy-plugin-bibtex

## Dependencies (3)

- [eslint](https://npm.io/package/eslint.md) ^7.26.0
- [autolinker](https://npm.io/package/autolinker.md) ^3.14.3
- [citation-js](https://npm.io/package/citation-js.md) ^0.5.1

## Alternatives

- [async-exit-hook](https://npm.io/package/async-exit-hook.md) — 3.7M weekly downloads
- [evnty](https://npm.io/package/evnty.md) — 7.2K weekly downloads
- [eleventy-plugin-asciidoc](https://npm.io/package/eleventy-plugin-asciidoc.md) — 3.5K weekly downloads
- [@jswork/next-get2get](https://npm.io/package/@jswork/next-get2get.md) — 945 weekly downloads
- [@dashersw/axon](https://npm.io/package/@dashersw/axon.md) — 934 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2021-05-20
- 0.1.0 — 2021-05-19

## README

# eleventy-plugin-bibtex

Converts Bibtex references to APA notation in HTML

## Installation
Install with npm:

```
npm install --save-dev eleventy-plugin-bibtex
```

Add to your `.eleventy.js` config file:

```js
eleventyConfig
    .addPairedShortcode("bibtex", require('eleventy-plugin-bibtex'));
```

## Usage
In Liquid:

```liquid
{% bibtex %}
@article{kocher2018spectre,
  title={Spectre Attacks: Exploiting Speculative Execution},
  author={Kocher, Paul and Genkin, Daniel and Gruss, Daniel and Haas, Werner and Hamburg, Mike and Lipp, Moritz and Mangard, Stefan and Prescher, Thomas and Schwarz, Michael and Yarom, Yuval},
  journal={arXiv preprint arXiv:1801.01203},
  year={2018},
  url={https://arxiv.org/pdf/1801.01203},
}
{% endbibtex %}
```

Will output:

```html
<div data-csl-entry-id="2" class="csl-entry">Kocher, P., Genkin, D., Gruss, D., Haas, W., Hamburg, M., Lipp, M., Mangard, S., Prescher, T., Schwarz, M., &amp; Yarom, Y. (2018). Spectre Attacks: Exploiting Speculative Execution. <i>ArXiv Preprint ArXiv:1801.01203</i>. <a href="https://arxiv.org/pdf/1801.01203" class="no-underline no-underline-url" target="_blank" rel="noopener noreferrer">https://arxiv.org/pdf/1801.01203</a></div>
```

## Notes

* If the output APA contains URLs, it will create actual `a hrefs` for them using [Autolinker.js](https://github.com/gregjacobs/Autolinker.js).

* Bibtex requires unique IDs for all citations. This plugin does not require that, so be aware of possible duplicates.

---
_Source: https://npm.io/package/eleventy-plugin-bibtex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
