style: format
This commit is contained in:
parent
6fd3a94fac
commit
c3473f135a
2 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ export type DocumentStatus =
|
||||||
| 'under review'
|
| 'under review'
|
||||||
| 'reviewed'
|
| 'reviewed'
|
||||||
| 'published no review'
|
| 'published no review'
|
||||||
|
|
||||||
export interface Document {
|
export interface Document {
|
||||||
manifest: DocumentManifest
|
manifest: DocumentManifest
|
||||||
abstract: string
|
abstract: string
|
||||||
|
|
|
@ -50,14 +50,14 @@ const VersionChooser = ({
|
||||||
className='ml-2 h-10 px-2.5 bg-slate-300 rounded-md'
|
className='ml-2 h-10 px-2.5 bg-slate-300 rounded-md'
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
const bibtex = `@article{
|
const bibtex = `@article{
|
||||||
author={${
|
author={${authors
|
||||||
authors.map((a: string, i) => {
|
.map((a: string, i) => {
|
||||||
const author = authorList[a].name.first + ' ' + authorList[a].name.last
|
const author = authorList[a].name.first + ' ' + authorList[a].name.last
|
||||||
if (i === 0) return author
|
if (i === 0) return author
|
||||||
else if (i === authors.length - 1) return ` and ${author}`
|
else if (i === authors.length - 1) return ` and ${author}`
|
||||||
else return `, ${author}`
|
else return `, ${author}`
|
||||||
}).join('')
|
})
|
||||||
}},
|
.join('')}},
|
||||||
title={${doc.manifest.title}},
|
title={${doc.manifest.title}},
|
||||||
journal={eeXiv journal},
|
journal={eeXiv journal},
|
||||||
year={${date.getFullYear()}},
|
year={${date.getFullYear()}},
|
||||||
|
|
Loading…
Reference in a new issue