tapas

A small program used for compiling refer output into the APA reference format.
git clone git://git.noxz.tech/tapas
Log | Files | Refs | README | LICENSE

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

Diffstat:
Mtapas.c | 7+++++--
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; } }