manubot cite: automatically generate CSL metadata & formatted references from citation identifiers
by dhimmel
This recording demonstrates the manubot cite
command line utility to produce CSL Data and rendered references for standard citation identifiers. Learn more at https://github.com/greenelab/manubot.
The recording shows the following commands (although with different argument orders and newlines):
# Generate CSL JSON Data for citations
manubot cite url:https://greenelab.github.io/meta-review/
# Render citations into formatted references
manubot cite --render \
doi:10.1038/nbt.3780 pmid:29424689 pmcid:PMC5938574 arxiv:1407.3561 url:https://greenelab.github.io/meta-review/
# Change the bibliographic style
manubot cite --render \
--csl=https://github.com/citation-style-language/styles/raw/master/dependent/nature-communications.csl \
doi:10.1038/nbt.3780 pmid:29424689 pmcid:PMC5938574 arxiv:1407.3561 url:https://greenelab.github.io/meta-review/
The manubot program demonstrated here is written in Python and used by the larger Manubot project, which is a system for writing scholarly manuscripts on GitHub with continuous integration.
Share this recording
Link
Append ?t=30
to start the playback at 30s, ?t=3:20
to start the playback at 3m 20s.
Embed image link
Use snippets below to display a screenshot linking to this recording.
Useful in places where scripts are not allowed (e.g. in a project's README file).
HTML:
Markdown:
Embed the player
If you're embedding on your own page or on a site which permits script tags, you can use the full player widget:
Paste the above script tag where you want the player to be displayed on your page.
See embedding docs for additional options.
Download this recording
You can download this recording in asciicast v2 format, as a .cast file.
DownloadReplay in terminal
You can replay the downloaded recording in your terminal using the
asciinema play
command:
asciinema play 205085.cast
If you don't have asciinema CLI installed then see installation instructions.
Use with stand-alone player on your website
Download asciinema player from
the releases page
(you only need .js
and .css
file), then use it like this:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="asciinema-player.css" />
</head>
<body>
<div id="player"></div>
<script src="asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create(
'/assets/205085.cast',
document.getElementById('player'),
{ cols: 105, rows: 28 }
);
</script>
</body>
</html>
See asciinema player quick-start guide for full usage instructions.
Generate GIF from this recording
While this site doesn't provide GIF conversion at the moment, you can still do it yourself with the help of asciinema GIF generator utility - agg.
Once you have it installed, generate a GIF with the following command:
agg https://asciinema.org/a/205085 demo.gif
Or, if you already downloaded the recording file:
agg demo.cast demo.gif
Check agg --help
for all available options. You can change font
family and size, select color theme, adjust speed and more.
See agg manual for full usage instructions.