]> AND Private Git Repository - loba-papers.git/blob - supercomp11/data/genalltex2
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Include first fig.
[loba-papers.git] / supercomp11 / data / genalltex2
1 #!/bin/bash
2
3 types=( R I )
4 repartitions=( 1 N )
5 ratios=( 10:1 1:1 1:10 )
6 platforms=( cluster grid )
7 topologies=( line torus hcube )
8
9 cat <<EOF
10 \\documentclass[a4paper]{article}
11
12 \\usepackage[T1]{fontenc}
13 \\usepackage[utf8]{inputenc}
14 \\usepackage{lmodern}
15 \\usepackage[margin=1.5cm]{geometry}
16 \\usepackage{graphicx}
17 \\usepackage[francais]{babel}
18
19 %%% workaround warnings about PDF 1.5 not supported
20 \\pdfminorversion 5
21
22 \\AtBeginDocument{\\shorthandoff{:}}
23
24 \\newcommand{\\IG}[1]{%
25   \\includegraphics[width=6cm]{#1}}
26
27 \\begin{document}
28
29 EOF
30
31 for typ in "${types[@]}"; do
32     for rat in "${ratios[@]}"; do
33         cat <<EOF
34 \\begin{figure}
35   \\centering
36 EOF
37         for rep in "${repartitions[@]}"; do
38             for pla in "${platforms[@]}"; do
39                 for top in "${topologies[@]}"; do
40                     cat <<EOF
41   \\IG{graphs/${typ}${rep}-${rat}-${pla}-${top}.pdf}%
42 EOF
43                 done
44                 cat <<EOF
45
46 EOF
47             done
48         done
49         case $typ in
50             I) m="Integer";;
51             R) m="Real";;
52             *) m="??? $typ ???";;
53         esac
54         cat <<EOF
55   \\caption{$m mode, comp/comm ratio\${} = $rat\$.}
56 \\end{figure}
57 \\clearpage
58
59 EOF
60     done
61 done
62
63 cat <<EOF
64 \end{document}
65 EOF