Update publication styles

This commit is contained in:
Maruan Al-Shedivat 2020-05-17 07:05:09 -04:00
parent 2b45cde8a1
commit 164f2d1bee
5 changed files with 199 additions and 100 deletions

View File

@ -11,6 +11,7 @@
}
@article{einstein1950meaning,
abbr={AJP},
title={The meaning of relativity},
author={Einstein, Albert and Taub, AH},
journal={American Journal of Physics,},
@ -22,6 +23,7 @@
}
@article{PhysRev.47.777,
abbr={PhysRev},
title={Can Quantum-Mechanical Description of Physical Reality Be Considered Complete?},
author={Einstein, A. and Podolsky, B. and Rosen, N.},
abstract={In a complete theory there is an element corresponding to each element of reality. A sufficient condition for the reality of a physical quantity is the possibility of predicting it with certainty, without disturbing the system. In quantum mechanics in the case of two physical quantities described by non-commuting operators, the knowledge of one precludes the knowledge of the other. Then either (1) the description of reality given by the wave function in quantum mechanics is not complete or (2) these two quantities cannot have simultaneous reality. Consideration of the problem of making predictions concerning a system on the basis of measurements made on another system that had previously interacted with it leads to the result that if (1) is false then (2) is also false. One is thus led to conclude that the description of reality as given by a wave function is not complete.},
@ -51,6 +53,7 @@
}
@article{einstein1905movement,
abbr={Ann. Phys.},
title={Un the movement of small particles suspended in statiunary liquids required by the molecular-kinetic theory 0f heat},
author={Einstein, A.},
journal={Ann. Phys.,},

View File

@ -1,96 +1,100 @@
---
---
{% if entry.abbr %}
{% if site.data.venues[entry.abbr] %}
<abbr>[<a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a>]</abbr>
{% else %}
<abbr>[{{entry.abbr}}]</abbr>
<div class="row">
<div class="col-sm-2 abbr">
{% if entry.abbr %}
{% if site.data.venues[entry.abbr] %}
<abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a></abbr>
{% else %}
<abbr class="badge">{{entry.abbr}}</abbr>
{% endif %}
{% endif %}
{% endif %}
</div>
<div id="{{entry.key}}">
{% if entry.type == "thesis" %}
{{reference}}
{% else %}
<span class="title">{{entry.title}}</span>
<span class="author">
{% for author in entry.author_array %}
{% if forloop.length == 1 %}
{% if author.last == site.scholar.last_name %}
<em>{{author.last}}, {{author.first}}</em>
<div id="{{entry.key}}" class="col-sm-8">
{% if entry.type == "thesis" %}
{{reference}}
{% else %}
<span class="title">{{entry.title}}</span>
<span class="author">
{% for author in entry.author_array %}
{% if forloop.length == 1 %}
{% if author.last == site.scholar.last_name %}
<em>{{author.last}}, {{author.first}}</em>
{% else %}
{{author.last}}, {{author.first}}
{% endif %}
{% else %}
{{author.last}}, {{author.first}}
{% unless forloop.last %}
{% if author.last == site.scholar.last_name %}
<em>{{author.last}}, {{author.first}}</em>,
{% else %}
{% if site.data.coauthors[author.last] %}
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
{% else %}
{{author.last}}, {{author.first}},
{% endif %}
{% endif %}
{% else %}
{% if author.last == site.scholar.last_name %}
and <em>{{author.last}}, {{author.first}}</em>
{% else %}
{% if site.data.coauthors[author.last] %}
and <a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>
{% else %}
and {{author.last}}, {{author.first}}
{% endif %}
{% endif %}
{% endunless %}
{% endif %}
{% else %}
{% unless forloop.last %}
{% if author.last == site.scholar.last_name %}
<em>{{author.last}}, {{author.first}}</em>,
{% else %}
{% if site.data.coauthors[author.last] %}
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
{% else %}
{{author.last}}, {{author.first}},
{% endif %}
{% endif %}
{% else %}
{% if author.last == site.scholar.last_name %}
and <em>{{author.last}}, {{author.first}}</em>
{% else %}
{% if site.data.coauthors[author.last] %}
and <a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>
{% else %}
and {{author.last}}, {{author.first}}
{% endif %}
{% endif %}
{% endunless %}
{% endif %}
{% endfor %}
</span>
{% endfor %}
</span>
<span class="periodical">
{% if entry.type == "article" %}
<em>{{entry.journal}}</em>
{% elsif entry.type == "inproceedings" %}
<em>In {{entry.booktitle}}</em>
<span class="periodical">
{% if entry.type == "article" %}
<em>{{entry.journal}}</em>
{% elsif entry.type == "inproceedings" %}
<em>In {{entry.booktitle}}</em>
{% endif %}
{% if entry.year %}
{{entry.year}}
{% endif %}
</span>
{% endif %}
{% if entry.year %}
{{entry.year}}
<span class="links">
{% if entry.abstract %}
[<a class="abstract">Abs</a>]
{% endif %}
{% if entry.arxiv %}
[<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">arXiv</a>]
{% endif %}
{% if entry.html %}
[<a href="{{ entry.html }}" target="_blank">HTML</a>]
{% endif %}
{% if entry.pdf %}
[<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" target="_blank">PDF</a>]
{% endif %}
{% if entry.supp %}
[<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Supp</a>]
{% endif %}
{% if entry.poster %}
[<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Poster</a>]
{% endif %}
{% if entry.slides %}
[<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Slides</a>]
{% endif %}
{% if entry.code %}
[<a href="{{ entry.code }}" target="_blank">Code</a>]
{% endif %}
</span>
{% endif %}
<span class="links">
{% if entry.abstract %}
[<a class="abstract">Abs</a>]
{% endif %}
{% if entry.arxiv %}
[<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">arXiv</a>]
{% endif %}
{% if entry.html %}
[<a href="{{ entry.html }}" target="_blank">HTML</a>]
{% endif %}
{% if entry.pdf %}
[<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" target="_blank">PDF</a>]
{% endif %}
{% if entry.supp %}
[<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Supp</a>]
{% endif %}
{% if entry.poster %}
[<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Poster</a>]
{% endif %}
{% if entry.slides %}
[<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Slides</a>]
{% endif %}
{% if entry.code %}
[<a href="{{ entry.code }}" target="_blank">Code</a>]
{% endif %}
</span>
<!-- Hidden abstract block -->
{% if entry.abstract %}
<span class="abstract hidden">
<p>{{ entry.abstract }}</p>
</span>
{% endif %}
<!-- Hidden abstract block -->
{% if entry.abstract %}
<span class="abstract hidden">
<p>{{ entry.abstract }}</p>
</span>
{% endif %}
</div>
</div>

View File

@ -1,13 +0,0 @@
---
layout: default
---
<div class="publications">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<h5 class="post-description">{{ page.description }}</h5>
</header>
{{ content }}
</div>

View File

@ -1,13 +1,17 @@
---
layout: publications
layout: page
permalink: /publications/
title: publications
description: Publications by categories in reversed chronological order. Generated by jekyll-scholar.
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
years: [1956, 1950, 1935, 1905]
nav: true
---
<div class="publications">
{% for y in page.years %}
<h3 class="year">{{y}}</h3>
<h2 class="year">{{y}}</h2>
{% bibliography -f papers -q @*[year={{y}}]* %}
{% endfor %}
</div>

View File

@ -6,7 +6,6 @@
a, table.table a {
color: $theme-color;
display: inline-block;
&:hover {
color: $theme-color;
text-decoration: underline;
@ -246,3 +245,105 @@ footer.sticky-bottom {
width: 100%;
}
}
// Post
.post .post-header .post-description {
font-style: italic;
}
// Publications
.publications {
margin-top: 2rem;
h2.year {
color: $grey-color-light;
border-top: 1px solid $grey-color-light;
padding-top: 1rem;
margin-top: 2rem;
margin-bottom: -2rem;
text-align: right;
}
ol.bibliography {
list-style: none;
padding: 0;
margin-top: 0;
li {
margin-bottom: 1rem;
.abbr {
height: 2rem;
margin-bottom: 0.5rem;
abbr {
display: inline-block;
background-color: $theme-color;
padding-left: 1rem;
padding-right: 1rem;
}
}
span {
display: block;
}
.title {
font-weight: bolder;
}
.author {
a {
border-bottom: 1px dashed $theme-color;
&:hover {
border-bottom-style: solid;
text-decoration: none;
}
}
> em {
border-bottom: 1px solid;
font-style: normal;
}
}
em.star {
border-bottom: none;
color: $theme-color;
font-style: normal;
}
a.abstract, a.bibtex {
cursor: pointer;
}
.hidden {
font-size: 0.875rem;
max-height: 0px;
overflow: hidden;
text-align: justify;
-webkit-transition: 0.15s ease;
-moz-transition: 0.15s ease;
-ms-transition: 0.15s ease;
-o-transition: 0.15s ease;
transition: all 0.15s ease;
p {
line-height: 1.4em;
margin: 10px;
}
pre {
font-size: 1em;
line-height: 1.4em;
padding: 10px;
}
}
.hidden.open {
max-height: 100em;
-webkit-transition: 0.15s ease;
-moz-transition: 0.15s ease;
-ms-transition: 0.15s ease;
-o-transition: 0.15s ease;
transition: all 0.15s ease;
}
span.abstract.hidden {
border: dashed 1px white;
}
span.abstract.hidden.open {
border-color: $grey-color;
}
}
}
}