aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--citations.tex16
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%
}