Skip to content

Commit

Permalink
add multiple last names in bibliography (alshedivat#905)
Browse files Browse the repository at this point in the history
Multiple last names can be defined to be highlighted in the bibliography
(alshedivat#904)
  • Loading branch information
johanneshoerner authored and zkotti committed Dec 10, 2022
1 parent 60636f6 commit fcd2584
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ You can also add new `*.bib` files and customize the look of your publications h

<details><summary>(click to expand) <strong>Author annotation:</strong></summary>

In publications, the author entry for yourself is identified by string `scholar:last_name` and string array `scholar:first_name` in `_config.yml`:
In publications, the author entry for yourself is identified by string array `scholar:last_name` and string array `scholar:first_name` in `_config.yml`:
```
scholar:
last_name: Einstein
last_name: [Einstein]
first_name: [Albert, A.]
```
If the entry matches the last name and one form of the first names, it will be underlined.
If the entry matches one form of the last names and the first names, it will be underlined.
Keep meta-information about your co-authors in `_data/coauthors.yml` and Jekyll will insert links to their webpages automatically.
The coauthor data format in `_data/coauthors.yml` is as follows,
```
Expand Down
10 changes: 1 addition & 9 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,7 @@ work_url: # work page URL
keybase_username: # your keybase user name
wikidata_id: # your wikidata id
dblp_url: # your DBLP profile url
stackoverflow_id: # your stackoverflow id
kaggle_id: # your kaggle id
lastfm_id: # your lastfm id
spotify_id: # your spotify id
pinterest_id: # your pinterest id
unsplash_id: # your unsplash id
instagram_id: # your instagram id
facebook_id: # your facebook id
discord_id: # your discord id (18-digit unique numerical identifier)
stackoverflow_id: #your stackoverflow id

contact_note: >
For further information feel free to contact me via <a href="mailto:zoekotti@aueb.gr" target="_blank">e-mail</a>.
Expand Down
10 changes: 3 additions & 7 deletions _layouts/bib.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
<div class="col-sm-2 abbr">
{%- if entry.abbr -%}
{%- if site.data.venues[entry.abbr] -%}
{%- assign venue_style = nil -%}
{%- if site.data.venues[entry.abbr].color != blank -%}
{%- assign venue_style = site.data.venues[entry.abbr].color | prepend: 'style="background-color:' | append: '"' -%}
{%- endif -%}
<abbr class="badge" {% if venue_style %}{{venue_style}}{% endif %}><a href="{{site.data.venues[entry.abbr].url}}">{{entry.abbr}}</a></abbr>
<abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}">{{entry.abbr}}</a></abbr>
{%- else -%}
<abbr class="badge">{{entry.abbr}}</abbr>
<abbr class="badge">{{entry.abbr}}</abbr>
{%- endif -%}
{%- endif -%}
</div>
Expand Down Expand Up @@ -89,7 +85,7 @@
<!-- Journal/Book title and date -->
{% if entry.type == "article" -%}
{%- capture entrytype -%}<em>{{entry.journal}}</em>{%- endcapture -%}
{%- elsif ["inproceedings", "incollection"] contains entry.type -%}
{%- elsif entry.type == "inproceedings" -%}
{%- capture entrytype -%}<em>In {{entry.booktitle}}</em> {%- endcapture -%}
{%- endif -%}
{%- if entry.month -%}
Expand Down

0 comments on commit fcd2584

Please sign in to comment.