Skip to content

Commit f3efec5

Browse files
Added BibTeX hidden block (alshedivat#293)
* Added BibTeX hidden block * Minor adjustments Co-authored-by: Maruan Al-Shedivat <alshedivat.maruan@gmail.com>
1 parent 3051f8a commit f3efec5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

_bibliography/papers.bib

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@string{aps = {American Physical Society,}}
55
66
@book{einstein1956investigations,
7+
bibtex_show={true},
78
title={Investigations on the Theory of the Brownian Movement},
89
author={Einstein, Albert},
910
year={1956},
@@ -12,6 +13,7 @@ @book{einstein1956investigations
1213

1314
@article{einstein1950meaning,
1415
abbr={AJP},
16+
bibtex_show={true},
1517
title={The meaning of relativity},
1618
author={Einstein, Albert and Taub, AH},
1719
journal={American Journal of Physics,},

_layouts/bib.html

+10
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
{% if entry.arxiv %}
8787
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button" target="_blank">arXiv</a>
8888
{% endif %}
89+
{% if entry.bibtex_show %}
90+
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
91+
{% endif %}
8992
{% if entry.html %}
9093
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button" target="_blank">HTML</a>
9194
{% endif %}
@@ -134,5 +137,12 @@
134137
<p>{{ entry.abstract }}</p>
135138
</div>
136139
{% endif %}
140+
141+
<!-- Hidden bibtex block -->
142+
{% if entry.bibtex_show %}
143+
<div class="bibtex hidden">
144+
{% highlight bibtex %}{{ entry.bibtex }}{% endhighlight %}
145+
</div>
146+
{% endif %}
137147
</div>
138148
</div>

0 commit comments

Comments
 (0)