33author=$3
44email=$4
55edition=$5
6+ basedir=$6
67
7- mkdir /exp/sbnd/data/users/hlay/crt_channel_mapping/${edition} /tex_work
8+ echo $version
9+ echo $gdml
10+ echo $author
11+ echo $email
12+ echo $edition
13+ echo $basedir
14+
15+ mkdir ${basedir} /${edition} /tex_work
816
917echo " \documentclass{article}
1018\usepackage[a4paper, margin=3cm]{geometry}
@@ -20,7 +28,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High")
2028
2129for wall in " ${walls[@]} "
2230do
23- list=$( ls /exp/sbnd/data/users/hlay/crt_channel_mapping /${edition} /${wall} _wall/* _front.pdf)
31+ list=$( ls ${basedir} /${edition} /${wall} _wall/* _front.pdf)
2432 echo -n " \newcommand*{\\ " $wall " ids}{" >> crt_channel_mapping_evds.tex
2533
2634 for item in ${list}
6371 \newpage
6472 \subsection{volCRTModule\x\_\x}
6573 \begin{center}
66- \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping /${edition} /${walls[i]} _wall/volCRTModule\x_\x_front.pdf}\\\\
67- \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping /${edition} /${walls[i]} _wall/volCRTModule\x_\x_top.pdf}\\\\
68- \includegraphics[width=.85\textwidth]{/exp/sbnd/data/users/hlay/crt_channel_mapping /${edition} /${walls[i]} _wall/volCRTModule\x_\x_side.pdf}
74+ \includegraphics[width=.85\textwidth]{${basedir} /${edition} /${walls[i]} _wall/volCRTModule\x_\x_front.pdf}\\\\
75+ \includegraphics[width=.85\textwidth]{${basedir} /${edition} /${walls[i]} _wall/volCRTModule\x_\x_top.pdf}\\\\
76+ \includegraphics[width=.85\textwidth]{${basedir} /${edition} /${walls[i]} _wall/volCRTModule\x_\x_side.pdf}
6977 \end{center}
7078}
7179\endgroup" >> crt_channel_mapping_evds.tex
7280done
7381
7482echo " \end{document}" >> crt_channel_mapping_evds.tex
7583
76- pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping /${edition} /tex_work crt_channel_mapping_evds.tex
77- pdflatex --shell-escape -output-directory /exp/sbnd/data/users/hlay/crt_channel_mapping /${edition} /tex_work crt_channel_mapping_evds.tex
84+ pdflatex --shell-escape -output-directory ${basedir} /${edition} /tex_work crt_channel_mapping_evds.tex
85+ pdflatex --shell-escape -output-directory ${basedir} /${edition} /tex_work crt_channel_mapping_evds.tex
0 commit comments