BEGIN { FS = "="; getline; out; i=0; loc; } {if (NF==2) {i++; gsub(/_/, "-", $1); print i"&" $1 "&" $2 "\\\\\\\\" > "pol.txt";}} END { print "\\begin{figure}[!t]\n\\begin{center}\n\ \\includegraphics[width=3.2in]{" loc "/Energy.pdf}\n\ \\includegraphics[width=3.2in]{" loc "/Defects.pdf}\n\ \\includegraphics[width=3.2in]{" loc "/Effort.pdf}\n\ \\includegraphics[width=3.2in]{" loc "/Threat.pdf}\n\ \\includegraphics[width=3.2in]{" loc "/Months.pdf}\n\ \n\ {\\scriptsize\n\ \\begin{tabular}{r|r@{~=~}l}\n\ X& feature & range\\\\\\hline\n\ \\input{" loc "/pol.txt}\n\ \\end{tabular}\n\ }\n\ \\end{center}\n\ \\caption{ analysis: results.}\\label{fig:}\n\ \\end{figure}\n" > "graphpol.tex" }