Public
Edited
Aug 27, 2024
Paused
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
allArticles = {
let fixMonth = (s) => s.replace(/month =\s+([A-Za-z]+)/g, "month = {$1}"); // wrap bare month in curly braces to prevent parsing error
return bib.parseBibFile(fixMonth(await src.text()));
}
Insert cell
entries = (await src.text())
.split("\n@")
.filter((s) => s)
.map((s) => s.split("{")[1].split(",")[0]) // slice the <ref> out of the @Type{...
.sort((a, b) => +b.slice(-4) - +a.slice(-4))
Insert cell
src = await FileAttachment("acmart.bib")
Insert cell
splat = bib.normalizeFieldValue
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more