summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh')
-rw-r--r--Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh b/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh
new file mode 100644
index 00000000000..884b7bdbb76
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/confproc/example/papers_split_all.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+args=("$@")
+GPATH=${args[0]}
+TEXFILE=${args[1]} # example1
+INPATH=${args[2]} # papers_info
+SPPATH=${args[3]} #papers_split
+PDFPATH=${args[4]}
+
+cd ${GPATH}
+SPPATH=${GPATH}/${SPPATH}
+PDFFILE=${GPATH}/${TEXFILE}.pdf # PDF proceedings
+echo "PDF proc used for individual PDFs extraction:\n --> $PDFFILE"
+echo "saving tmp .ps and .pdf files into\n --> $SPPATH"
+gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=7 -dLastPage=12 -sOUTPUTFILE=${SPPATH}/p_001.pdf ${PDFFILE}
+gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=13 -dLastPage=17 -sOUTPUTFILE=${SPPATH}/p_003.pdf ${PDFFILE}
+gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=19 -dLastPage=22 -sOUTPUTFILE=${SPPATH}/p_005.pdf ${PDFFILE}
+gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=23 -dLastPage=28 -sOUTPUTFILE=${SPPATH}/p_007.pdf ${PDFFILE}
+gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=29 -dLastPage=35 -sOUTPUTFILE=${SPPATH}/p_009.pdf ${PDFFILE}