Skip to content

Commit 164f2d1

Browse files
committed
Update publication styles
1 parent 2b45cde commit 164f2d1

File tree

5 files changed

+194
-95
lines changed

5 files changed

+194
-95
lines changed

_bibliography/papers.bib

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ @book{einstein1956investigations
1111
}
1212

1313
@article{einstein1950meaning,
14+
abbr={AJP},
1415
title={The meaning of relativity},
1516
author={Einstein, Albert and Taub, AH},
1617
journal={American Journal of Physics,},
@@ -22,6 +23,7 @@ @article{einstein1950meaning
2223
}
2324

2425
@article{PhysRev.47.777,
26+
abbr={PhysRev},
2527
title={Can Quantum-Mechanical Description of Physical Reality Be Considered Complete?},
2628
author={Einstein, A. and Podolsky, B. and Rosen, N.},
2729
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{einstein1905molekularkinetischen
5153
}
5254

5355
@article{einstein1905movement,
56+
abbr={Ann. Phys.},
5457
title={Un the movement of small particles suspended in statiunary liquids required by the molecular-kinetic theory 0f heat},
5558
author={Einstein, A.},
5659
journal={Ann. Phys.,},

_layouts/bib.html

+82-78
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,100 @@
11
---
22
---
33

4-
{% if entry.abbr %}
5-
{% if site.data.venues[entry.abbr] %}
6-
<abbr>[<a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a>]</abbr>
7-
{% else %}
8-
<abbr>[{{entry.abbr}}]</abbr>
4+
<div class="row">
5+
<div class="col-sm-2 abbr">
6+
{% if entry.abbr %}
7+
{% if site.data.venues[entry.abbr] %}
8+
<abbr class="badge"><a href="{{site.data.venues[entry.abbr].url}}" target="_blank">{{entry.abbr}}</a></abbr>
9+
{% else %}
10+
<abbr class="badge">{{entry.abbr}}</abbr>
11+
{% endif %}
912
{% endif %}
10-
{% endif %}
13+
</div>
1114

12-
<div id="{{entry.key}}">
13-
{% if entry.type == "thesis" %}
14-
{{reference}}
15-
{% else %}
16-
<span class="title">{{entry.title}}</span>
17-
<span class="author">
18-
{% for author in entry.author_array %}
19-
{% if forloop.length == 1 %}
20-
{% if author.last == site.scholar.last_name %}
21-
<em>{{author.last}}, {{author.first}}</em>
22-
{% else %}
23-
{{author.last}}, {{author.first}}
24-
{% endif %}
25-
{% else %}
26-
{% unless forloop.last %}
15+
<div id="{{entry.key}}" class="col-sm-8">
16+
{% if entry.type == "thesis" %}
17+
{{reference}}
18+
{% else %}
19+
<span class="title">{{entry.title}}</span>
20+
<span class="author">
21+
{% for author in entry.author_array %}
22+
{% if forloop.length == 1 %}
2723
{% if author.last == site.scholar.last_name %}
28-
<em>{{author.last}}, {{author.first}}</em>,
24+
<em>{{author.last}}, {{author.first}}</em>
2925
{% else %}
30-
{% if site.data.coauthors[author.last] %}
31-
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
32-
{% else %}
33-
{{author.last}}, {{author.first}},
34-
{% endif %}
26+
{{author.last}}, {{author.first}}
3527
{% endif %}
3628
{% else %}
37-
{% if author.last == site.scholar.last_name %}
38-
and <em>{{author.last}}, {{author.first}}</em>
29+
{% unless forloop.last %}
30+
{% if author.last == site.scholar.last_name %}
31+
<em>{{author.last}}, {{author.first}}</em>,
32+
{% else %}
33+
{% if site.data.coauthors[author.last] %}
34+
<a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>,
35+
{% else %}
36+
{{author.last}}, {{author.first}},
37+
{% endif %}
38+
{% endif %}
3939
{% else %}
40-
{% if site.data.coauthors[author.last] %}
41-
and <a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>
40+
{% if author.last == site.scholar.last_name %}
41+
and <em>{{author.last}}, {{author.first}}</em>
4242
{% else %}
43-
and {{author.last}}, {{author.first}}
43+
{% if site.data.coauthors[author.last] %}
44+
and <a href="{{site.data.coauthors[author.last].url}}" target="_blank">{{author.last}}, {{author.first}}</a>
45+
{% else %}
46+
and {{author.last}}, {{author.first}}
47+
{% endif %}
4448
{% endif %}
45-
{% endif %}
46-
{% endunless %}
47-
{% endif %}
48-
{% endfor %}
49-
</span>
49+
{% endunless %}
50+
{% endif %}
51+
{% endfor %}
52+
</span>
53+
54+
<span class="periodical">
55+
{% if entry.type == "article" %}
56+
<em>{{entry.journal}}</em>
57+
{% elsif entry.type == "inproceedings" %}
58+
<em>In {{entry.booktitle}}</em>
59+
{% endif %}
60+
{% if entry.year %}
61+
{{entry.year}}
62+
{% endif %}
63+
</span>
64+
{% endif %}
5065

51-
<span class="periodical">
52-
{% if entry.type == "article" %}
53-
<em>{{entry.journal}}</em>
54-
{% elsif entry.type == "inproceedings" %}
55-
<em>In {{entry.booktitle}}</em>
66+
<span class="links">
67+
{% if entry.abstract %}
68+
[<a class="abstract">Abs</a>]
69+
{% endif %}
70+
{% if entry.arxiv %}
71+
[<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">arXiv</a>]
72+
{% endif %}
73+
{% if entry.html %}
74+
[<a href="{{ entry.html }}" target="_blank">HTML</a>]
75+
{% endif %}
76+
{% if entry.pdf %}
77+
[<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" target="_blank">PDF</a>]
5678
{% endif %}
57-
{% if entry.year %}
58-
{{entry.year}}
79+
{% if entry.supp %}
80+
[<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Supp</a>]
81+
{% endif %}
82+
{% if entry.poster %}
83+
[<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Poster</a>]
84+
{% endif %}
85+
{% if entry.slides %}
86+
[<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Slides</a>]
87+
{% endif %}
88+
{% if entry.code %}
89+
[<a href="{{ entry.code }}" target="_blank">Code</a>]
5990
{% endif %}
6091
</span>
61-
{% endif %}
62-
63-
<span class="links">
64-
{% if entry.abstract %}
65-
[<a class="abstract">Abs</a>]
66-
{% endif %}
67-
{% if entry.arxiv %}
68-
[<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">arXiv</a>]
69-
{% endif %}
70-
{% if entry.html %}
71-
[<a href="{{ entry.html }}" target="_blank">HTML</a>]
72-
{% endif %}
73-
{% if entry.pdf %}
74-
[<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" target="_blank">PDF</a>]
75-
{% endif %}
76-
{% if entry.supp %}
77-
[<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Supp</a>]
78-
{% endif %}
79-
{% if entry.poster %}
80-
[<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Poster</a>]
81-
{% endif %}
82-
{% if entry.slides %}
83-
[<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" target="_blank">Slides</a>]
84-
{% endif %}
85-
{% if entry.code %}
86-
[<a href="{{ entry.code }}" target="_blank">Code</a>]
87-
{% endif %}
88-
</span>
8992

90-
<!-- Hidden abstract block -->
91-
{% if entry.abstract %}
92-
<span class="abstract hidden">
93-
<p>{{ entry.abstract }}</p>
94-
</span>
95-
{% endif %}
93+
<!-- Hidden abstract block -->
94+
{% if entry.abstract %}
95+
<span class="abstract hidden">
96+
<p>{{ entry.abstract }}</p>
97+
</span>
98+
{% endif %}
99+
</div>
96100
</div>

_layouts/publications.html

-13
This file was deleted.

_pages/publications.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
---
2-
layout: publications
2+
layout: page
33
permalink: /publications/
44
title: publications
5-
description: Publications by categories in reversed chronological order. Generated by jekyll-scholar.
5+
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
66
years: [1956, 1950, 1935, 1905]
77
nav: true
88
---
99

10+
<div class="publications">
11+
1012
{% for y in page.years %}
11-
<h3 class="year">{{y}}</h3>
13+
<h2 class="year">{{y}}</h2>
1214
{% bibliography -f papers -q @*[year={{y}}]* %}
1315
{% endfor %}
16+
17+
</div>

_sass/_base.scss

+102-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
a, table.table a {
88
color: $theme-color;
9-
display: inline-block;
109
&:hover {
1110
color: $theme-color;
1211
text-decoration: underline;
@@ -246,3 +245,105 @@ footer.sticky-bottom {
246245
width: 100%;
247246
}
248247
}
248+
249+
// Post
250+
251+
.post .post-header .post-description {
252+
font-style: italic;
253+
}
254+
255+
256+
// Publications
257+
258+
.publications {
259+
margin-top: 2rem;
260+
h2.year {
261+
color: $grey-color-light;
262+
border-top: 1px solid $grey-color-light;
263+
padding-top: 1rem;
264+
margin-top: 2rem;
265+
margin-bottom: -2rem;
266+
text-align: right;
267+
}
268+
ol.bibliography {
269+
list-style: none;
270+
padding: 0;
271+
margin-top: 0;
272+
273+
li {
274+
margin-bottom: 1rem;
275+
.abbr {
276+
height: 2rem;
277+
margin-bottom: 0.5rem;
278+
abbr {
279+
display: inline-block;
280+
background-color: $theme-color;
281+
padding-left: 1rem;
282+
padding-right: 1rem;
283+
}
284+
}
285+
span {
286+
display: block;
287+
}
288+
.title {
289+
font-weight: bolder;
290+
}
291+
.author {
292+
a {
293+
border-bottom: 1px dashed $theme-color;
294+
&:hover {
295+
border-bottom-style: solid;
296+
text-decoration: none;
297+
}
298+
}
299+
> em {
300+
border-bottom: 1px solid;
301+
font-style: normal;
302+
}
303+
}
304+
em.star {
305+
border-bottom: none;
306+
color: $theme-color;
307+
font-style: normal;
308+
}
309+
a.abstract, a.bibtex {
310+
cursor: pointer;
311+
}
312+
.hidden {
313+
font-size: 0.875rem;
314+
max-height: 0px;
315+
overflow: hidden;
316+
text-align: justify;
317+
-webkit-transition: 0.15s ease;
318+
-moz-transition: 0.15s ease;
319+
-ms-transition: 0.15s ease;
320+
-o-transition: 0.15s ease;
321+
transition: all 0.15s ease;
322+
323+
p {
324+
line-height: 1.4em;
325+
margin: 10px;
326+
}
327+
pre {
328+
font-size: 1em;
329+
line-height: 1.4em;
330+
padding: 10px;
331+
}
332+
}
333+
.hidden.open {
334+
max-height: 100em;
335+
-webkit-transition: 0.15s ease;
336+
-moz-transition: 0.15s ease;
337+
-ms-transition: 0.15s ease;
338+
-o-transition: 0.15s ease;
339+
transition: all 0.15s ease;
340+
}
341+
span.abstract.hidden {
342+
border: dashed 1px white;
343+
}
344+
span.abstract.hidden.open {
345+
border-color: $grey-color;
346+
}
347+
}
348+
}
349+
}

0 commit comments

Comments
 (0)