forked from JuliaLang/www.julialang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcitation.html
11 lines (10 loc) · 1.11 KB
/
citation.html
1
2
3
4
5
6
7
8
9
10
{% assign pub = include.pub %}
<b>{{ pub.title }}</b>.
{% for author in pub.authors %}{% if forloop.first %}{% elsif forloop.last %} and {% else %}, {% endif %}{{ author | split: ", " | reverse | join: " " }}{% endfor %}
({{ pub.year }})
{% if pub.journal %}<i>{{ pub.journal }}</i>{% endif %}{% if pub.booktitle %}<i>{{ pub.booktitle }}</i>{% endif %}{% if pub.volume %}, {{ pub.volume }}{% endif %}{% if pub.issue %}({{ pub.issue }}){% endif %}{% if pub.pages %}: {{ pub.pages | replace:'--','–'}}{% endif %}.
{% if pub.doi %}doi: <a href="http://dx.doi.org/{{ pub.doi }}">{{ pub.doi }}</a>. {% endif %}
{% if pub.pmid %}pmid: <a href="http://www.ncbi.nlm.nih.gov/pubmed/{{ pub.pmid }}">{{ pub.pmid }}</a>. {% endif %}
{% if pub.arxiv %}arXiv: <a href="https://arxiv.org/abs/{{ pub.arxiv }}">{{ pub.arxiv }}</a>. {% endif %}
{% if pub.link %}url: <a href="{{ pub.link }}">{{ pub.link }}</a>. {% endif %}
{% if pub.packages %}Packages: {% for pkg in pub.packages %}{% if forloop.first %}{% elsif forloop.last %} and {% else %}, {% endif %}<a href="{{ pkg[1] }}">{{ pkg[0] }}</a>{% endfor %}. {% endif %}