groff master 😎 (proper apa references, math macro file fixes)

This commit is contained in:
tavo-wasd 2023-09-28 20:10:01 -06:00
parent fe99acd428
commit 795bb1dd9b
2 changed files with 36 additions and 11 deletions

View file

@ -1,7 +1,26 @@
\" Apa format for citation \" Taken from /usr/share/groff/current/tmac
\" and references section \" Here is the specification of the five possible reference styles
\" provided by 'refer'. The example entries are taken from the ms
\" macro package.
\"
\" ref*spec!0 Q A T S V N P I C D O -- other
\" ref*spec!1 Q A T J S V N P I C D O -- journal article
\" ref*spec!2 Q A T S V P I C D O -- book
\" ref*spec!3 Q A T B E S V P I C D O -- article within book
\" ref*spec!4 Q A T R G P I C D O -- technical report
\"
\" Here I rearrrange items to match APA format
.ds ref*spec!0 Q A D T S V N P I C O
.ds ref*spec!1 Q A D T J S V N P I C O
.ds ref*spec!2 Q A D T S V P I C O
.ds ref*spec!3 Q A D T B E S V P I C O
.ds ref*spec!4 Q A D T R G P I C O
\" Place references with format \" This swaps a comma for a dot after the date
.ds ref*spec!T:0 ". " " "\fI" "" "\fP"
.ds ref*spec!T ". " " "\\*Q" "" "\\*U"
\" Common options
.R1 .R1
label "(A.n|Q) ', ' (D.y|D)"; bracket-label " (" ) "; " label "(A.n|Q) ', ' (D.y|D)"; bracket-label " (" ) "; "
join-authors ", " ", " join-authors ", " ", "

View file

@ -4,14 +4,20 @@
.EQ .EQ
delim $$ delim $$
define / 'over' define / 'over'
define grad '\[gr]' define deg '{\[de]}'
define . '~ \[md] ~' define . '{~ \[md] ~}'
define * '~ \[mu] ~' define * '{~ \[mu] ~}'
define +- '~ \[+-] ~' define +- '{~ \[+-] ~}'
define -+ '~ + bar ~' define -+ '{~ + bar ~}'
define tf '~ \[tf] ~' define tf '{~ \[tf] ~}'
define and '~ \[AN] ~' define << '{~ \[la] ~}'
define div '~ \[di] ~' define >> '{~ \[ra] ~}'
define ok '{~ \[OK] ~}'
define grad '{ \[gr] }'
define and '{~ \[AN] ~}'
define div '{~ \[di] ~}'
define <<< '{~ \[<<] ~}'
define >>> '{~ \[>>] ~}'
define sen 'roman "sen"' define sen 'roman "sen"'
define tan 'roman "tan"' define tan 'roman "tan"'