diff options
Diffstat (limited to 'reproduce')
-rw-r--r-- | reproduce/analysis/make/demo-plot.mk | 4 | ||||
-rw-r--r-- | reproduce/analysis/make/format.mk | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/reproduce/analysis/make/demo-plot.mk b/reproduce/analysis/make/demo-plot.mk index caf77af..ac05776 100644 --- a/reproduce/analysis/make/demo-plot.mk +++ b/reproduce/analysis/make/demo-plot.mk @@ -53,6 +53,10 @@ $(mtexdir)/demo-plot.tex: $(a2mk20f1c) $(pconfdir)/menke-demo-year.conf v=$$(awk 'NR==1{print $$1}' $(a2mk20f1c)) echo "\newcommand{\menkefirstyear}{$$v}" > $@ + # Find the number of rows in the plotted table. + v=$$(cat $(a2mk20f1c) | wc -l) + echo "\newcommand{\menkenumyears}{$$v}" >> $@ + # Find the number of papers in 1996. v=$$(awk '$$1==$(menke-demo-year){print $$3}' $(a2mk20f1c)) echo "\newcommand{\menkenumpapersdemocount}{$$v}" >> $@ diff --git a/reproduce/analysis/make/format.mk b/reproduce/analysis/make/format.mk index 868c411..d10034d 100644 --- a/reproduce/analysis/make/format.mk +++ b/reproduce/analysis/make/format.mk @@ -80,3 +80,7 @@ $(mtexdir)/format.tex: $(mk20tab3) v=$$(awk 'BEGIN{FIELDWIDTHS="41 10000"} !/^#/{print $$2}' \ $(mk20tab3) | uniq | wc -l) echo "\newcommand{\menkenumjournals}{$$v}" >> $@ + + # Count how many rows the original catalog has. + v=$$(awk '!/^#/{c++} END{print c}' $(mk20tab3)) + echo "\newcommand{\menkenumorigrows}{$$v}" >> $@ |