commit: b0fdf4d46dd99c72bb1b1131569ba1dc750e6608
parent: 6020ff2d9c351521f1d4aaabb972dfaf2ca28d76
author: Chris Noxz <chris@noxz.tech>
date: Sat, 11 Jul 2020 15:21:55 +0200
Add support for doi/other for journal articles
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tapas.c b/tapas.c
@@ -325,16 +325,19 @@ format_article()
|| !state.ref->journal_number
|| !state.ref->page_number)
return;
+ if (!state.ref->other)
+ strncpy(state.ref->other, "", BUF_SIZE);
switch (settings.macroset) {
case ms_ms:
fprintf(stdout,
- ".XP\n%s (%s). %s.\n.I \"%s\" \", %s, %s.\"\n",
+ ".XP\n%s (%s). %s.\n.I \"%s\" \", %s, %s. %s\"\n",
state.ref->author,
state.ref->publication_date,
state.ref->title,
state.ref->journal_name,
state.ref->journal_number,
- state.ref->page_number
+ state.ref->page_number,
+ state.ref->other /* assume doi to be stored in other */
); break;
}
}