aboutsummaryrefslogtreecommitdiff
path: root/tex/src
diff options
context:
space:
mode:
Diffstat (limited to 'tex/src')
-rw-r--r--tex/src/figure-mk20tab3.tex19
1 files changed, 14 insertions, 5 deletions
diff --git a/tex/src/figure-mk20tab3.tex b/tex/src/figure-mk20tab3.tex
index ebeac0e..96468bb 100644
--- a/tex/src/figure-mk20tab3.tex
+++ b/tex/src/figure-mk20tab3.tex
@@ -1,6 +1,6 @@
\begin{tcolorbox}
\footnotesize
- \texttt{\mkcomment{Define and build the directory hosting the final table.}}
+ \texttt{\mkcomment{1ST MAKE RULE: build the directory hosting the used table.}}
\texttt{\mkvar{a1dir} = \$(\mkvar{BDIR})/analysis-1}
@@ -8,8 +8,8 @@
\texttt{\mktab{}\mkprog{mkdir} \$@}
- \vspace{1.5em}
- \texttt{\mkcomment{Define and build the main target.}}
+ \vspace{2em}
+ \texttt{\mkcomment{2ND MAKE RULE: Convert the XLSX table to a simple plain-text table.}}
\texttt{\mkvar{mk20tab3} = \$(\mkvar{a1dir})/menke20-table-3.txt}
@@ -37,8 +37,8 @@
\texttt{\mktab{}\mkprog{rm} table-3.csv}
- \vspace{1.5em}
- \texttt{\mkcomment{Main LaTeX macro file}}
+ \vspace{2em}
+ \texttt{\mkcomment{3RD MAKE RULE: Main LaTeX macro file for reported values.}}
\texttt{\mktarget{\$(mtexdir)/analysis1.tex}: \$(\mkvar{mk20tab3)}}
@@ -47,4 +47,13 @@
\texttt{\mktab{}v=\$\$(\mkprog{awk} '\!/\^{}\#/\{c+=\$\$2\} END\{print c\}' \$(\mkvar{mk20tab3)})}
\texttt{\mktab{}\mkprog{echo} "\textbackslash{}newcommand\{\textbackslash{}menkenumpapers\}\{\$\$v\}" > \$@}
+
+ \vspace{0.5em}
+ \texttt{\recipecomment{Count total number of journals in that study.}}
+
+ \texttt{\mktab{}v=\$\$(awk 'BEGIN{FIELDWIDTHS="31 10000"} !/\^\#/\{print \$\$2\}' \$(mk20tab3) \textbackslash}
+
+ \texttt{\mktab{ }{ }{ }{ }{ }{ }{ }{ }{ }{ }| uniq | wc -l)}
+
+ \texttt{\mktab{}\mkprog{echo} "\textbackslash{}newcommand\{\textbackslash{}menkenumjournals\}\{\$\$v\}" >> \$@}
\end{tcolorbox}