We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[rejour-relatex] make latex cite command setting more modular and customizable
https://github.com/JournalOfTrialAndError/JOTE/blob/cf52c8d4e0e45a1364ad7be39ca535593835c3ff/libs/rejour/jast-util-to-texast/src/lib/handlers/xref.ts#L52
// TODO: [rejour-rehype/citations] make citation parsing less hardcoded // Maybe add a new type to texast: citation. const labelToText: { [key: string]: string } = { page: 'pp.', appendix: 'App.', } // TODO: [rejour-rehype/citations] make checks for the kind of citations used. switch (node.attributes.refType) { case 'bibr': { const customType = node.attributes.customType // TODO: [rejour-relatex] make latex cite command setting more modular and customizable let command let pre let post if (customType) { const customData = JSON.parse(customType) const { prefix, infix, label, locator, mode, suffix } = customData const pref = (mode ? infix : prefix) || '' const suff = `${ label && label !== 'none' ? `${labelToText[label] || label || 'pp.'} ` : '' }${locator || ''}` command = mode ? 'textcite' : 'parencite' if (pref) pre = pref if (suff) post = suff } const optCommandArgs = createOptCiteArgs(pre, post) return j( node, 'command', { name: command || j.citationAnalyzer(node) || 'autocite' }, [ ...optCommandArgs, { type: 'commandArg', children: [
c0fa605e4d86bc398d0d0222c8f6f38059efad35
The text was updated successfully, but these errors were encountered:
No branches or pull requests
[rejour-relatex] make latex cite command setting more modular and customizable
https://github.com/JournalOfTrialAndError/JOTE/blob/cf52c8d4e0e45a1364ad7be39ca535593835c3ff/libs/rejour/jast-util-to-texast/src/lib/handlers/xref.ts#L52
c0fa605e4d86bc398d0d0222c8f6f38059efad35
The text was updated successfully, but these errors were encountered: