bibcite
Version:
Citations with Bibliography
16 lines (14 loc) • 511 B
text/typescript
import { Data } from "csl-json";
import { CiteStyle } from "./types";
import { insertion } from "../order";
import { defaultBibEntry, tabularBibEntry, tabularReferences } from "./helpers";
export const numeric: CiteStyle = {
name: "numeric",
order: { comparison: insertion, inform_citations: true },
enclosing: ["[", "]"],
multiSeparator: ",",
identifier: (_: Data, index: number) => String(index),
bib_entry: defaultBibEntry,
metaBibEntry: tabularBibEntry,
metaReference: tabularReferences
};