Skip to content

Commit 2134fb7

Browse files
committed
More configurable
1 parent b36419c commit 2134fb7

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

sbndcode/CRT/CRTEventDisplay/build_tex.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@ gdml=$2
33
author=$3
44
email=$4
55
edition=$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

917
echo "\documentclass{article}
1018
\usepackage[a4paper, margin=3cm]{geometry}
@@ -20,7 +28,7 @@ wallnames=(Bottom South North West East "Top Low" "Top High")
2028

2129
for wall in "${walls[@]}"
2230
do
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}
@@ -63,15 +71,15 @@ do
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
7280
done
7381

7482
echo "\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

Comments
 (0)