Skip to content

Commit

Permalink
better bibtex
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfdewolf committed Feb 13, 2024
1 parent 3dbf102 commit afc2d5f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion _bibliography/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def add_field_if_author_in_entry(bibtex_path, pis):
bib_database = bibtexparser.load(bibtex_file)
for entry in bib_database.entries:
if 'author' in entry:
entry["abbr"] = ", ".join(
entry["abbr"] = " x ".join(
[pi_label for pi, pi_label in pis.items() if pi in entry['author']])

writer = BibTexWriter()
Expand Down
6 changes: 3 additions & 3 deletions _bibliography/papers.bib
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ @ed.ac.uk
}

@article{WOS:000365766500020,
abbr = {NOLAN, SÜRMELI},
abbr = {NOLAN x SÜRMELI},
abstract = {Deep layers of the medial entorhinal cortex are considered to relay
signals from the hippocampus to other brain structures, but pathways for
routing of signals to and from the deep layers are not well established.
Expand Down Expand Up @@ -1524,7 +1524,7 @@ @ed.ac.uk
}

@article{WOS:000388572700024,
abbr = {NOLAN, SÜRMELI},
abbr = {NOLAN x SÜRMELI},
address = {600 TECHNOLOGY SQUARE, 5TH FLOOR, CAMBRIDGE, MA 02139 USA},
author = {Surmeli, Gulsen and Marcu, Daniel Cosmin and McClure, Christina and
Garden, Derek L. F. and Pastoll, Hugh and Nolan, Matthew F.},
Expand Down Expand Up @@ -2415,7 +2415,7 @@ @ed.ac.uk
}

@article{WOS:000711952200005,
abbr = {NOLAN, SÜRMELI},
abbr = {NOLAN x SÜRMELI},
abstract = {The deep layers of the entorhinal cortex are important for spatial
cognition, as well as memory storage, consolidation and retrieval. A
long-standing hypothesis is that deep-layer neurons relay spatial and
Expand Down
10 changes: 1 addition & 9 deletions _layouts/bib.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
---
<div class="row">
{% if site.enable_publication_thumbnails %}
<div class="col-sm-2 {% if entry.preview %}preview{% else %}
{% if entry.abbr is iterable %}
{% for abbr in entry.abbr %}
{{ abbr }}<br>
{% endfor %}
{% else %}
{{ entry.abbr }}
{% endif %}
{% endif %}">
<div class="col-sm-2 {% if entry.preview %}preview{% else %}abbr{% endif %}">
{% if entry.preview %}
{% if entry.preview contains '://' %}
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
Expand Down

0 comments on commit afc2d5f

Please sign in to comment.