Skip to content

Commit

Permalink
Added BibTeX hidden block (#293)
Browse files Browse the repository at this point in the history
* Added BibTeX hidden block

* Minor adjustments

Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
  • Loading branch information
afonsocraposo and alshedivat authored May 30, 2021
1 parent 3051f8a commit f3efec5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _bibliography/papers.bib
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@string{aps = {American Physical Society,}}
@book{einstein1956investigations,
bibtex_show={true},
title={Investigations on the Theory of the Brownian Movement},
author={Einstein, Albert},
year={1956},
Expand All @@ -12,6 +13,7 @@ @book{einstein1956investigations

@article{einstein1950meaning,
abbr={AJP},
bibtex_show={true},
title={The meaning of relativity},
author={Einstein, Albert and Taub, AH},
journal={American Journal of Physics,},
Expand Down
10 changes: 10 additions & 0 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
{% if entry.arxiv %}
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
{% endif %}
{% if entry.bibtex_show %}
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
{% endif %}
{% if entry.html %}
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
{% endif %}
Expand Down Expand Up @@ -134,5 +137,12 @@
<p>{{ entry.abstract }}</p>
</div>
{% endif %}

<!-- Hidden bibtex block -->
{% if entry.bibtex_show %}
<div class="bibtex hidden">
{% highlight bibtex %}{{ entry.bibtex }}{% endhighlight %}
</div>
{% endif %}
</div>
</div>

0 comments on commit f3efec5

Please sign in to comment.