diff options
author | Holden Rohrer <hdawg7797@yahoo.com> | 2019-07-30 13:17:59 -0400 |
---|---|---|
committer | Holden Rohrer <hdawg7797@yahoo.com> | 2019-07-30 13:17:59 -0400 |
commit | 91b82a1f493d3356b543285f6b668748c3317639 (patch) | |
tree | 6c5b2af5e3a9afa87c9e5ab13a5381ab2970a4fc | |
parent | d55019e9356e13967cba1bf70521f3a5ef23bea9 (diff) |
working non-alphabetized citation
-rw-r--r-- | citations.tex | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/citations.tex b/citations.tex index 12ea915..addb4ec 100644 --- a/citations.tex +++ b/citations.tex @@ -1,6 +1,6 @@ \long\edef\citations{} -\long\def\newcitation#1#2{% - \long\edef\citations{{#2}%allows alphabetization by including sanitized relevant data +\long\def\newcitation#1{% + \long\edef\citations{ \hangafter=-1 \hangindent=0.5in%hanging indents must be inserted every paragraph \citations\par #1}% } @@ -28,7 +28,7 @@ \ifx\@pubdate\empty \else \advance \commas by 1\fi% \ifx\@locator\empty \else \advance \commas by 1\fi% \def\comma{\advance\commas by -1 \noexpand\ifnum\noexpand\commas>0 ,\noexpand\fi}% - \ifnewcite\newcitation{\@namedisp \@title \@contain \@contrib \@version \@relnums \@publish \@pubdate \@locator.}\fi{\@namedisp\cltitle\clcontain}\fi% + \ifnewcite\newcitation{\@namedisp \@title \@contain \@contrib \@version \@relnums \@publish \@pubdate \@locator.}\fi% (\ifnameinline \ifx\@last\empty \@title @@ -41,13 +41,5 @@ \long\def\biblio{ %generates a bibliography \vfil \eject %prints all previous pages and starts bibliography \line{\hfil Works Cited \hfil}% - %%Alphabetization - \immediate\openout0=sort.tex% - \immediate\write0{\citations}% - \immediate\closeout0 - \immediate\write18{python3 sort.py}%sort sort.tex alphabetically by the first group (also remove first group) - \immediate\openin0=sort.tex - \immediate\read0 to \data - \immediate\data - \immediate\closein0 + \citations% } |