Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format cite-view list externally and include bibtex key #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/cite-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ class CiteView extends SelectListView

viewForItem: ({title, key, author}) ->
"""
<li><span style='display:block;'>#{title}</span>
<span style='display:block;font-size:xx-small;'>#{author}</span></li>
<li>
<span class='cite-view-title'>#{title}</span>
<span class='cite-view-key'>#{key}</span>
<span class='cite-view-author'>#{author}</span>
</li>
"""

hide: ->
Expand Down
18 changes: 18 additions & 0 deletions styles/latexer.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.cite-view-title {
display: block;
}

.cite-view-key {
font-size: xx-small;
}

.cite-view-key::before {
content:"["
}
.cite-view-key::after {
content:"]"
}

.cite-view-author {
font-size: xx-small;
}