summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/texpower/MakeExamples.sh
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/texpower/MakeExamples.sh
Initial commit
Diffstat (limited to 'macros/latex/contrib/texpower/MakeExamples.sh')
-rw-r--r--macros/latex/contrib/texpower/MakeExamples.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/macros/latex/contrib/texpower/MakeExamples.sh b/macros/latex/contrib/texpower/MakeExamples.sh
new file mode 100644
index 0000000000..15b363b9b3
--- /dev/null
+++ b/macros/latex/contrib/texpower/MakeExamples.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# Script (for *nix) to compile all examples and demos.
+#
+# Remarks:
+# Not compiling bgndexample - too time consuming
+
+# Handling powersem based examples/demos which
+# must go the latex+dvips+ps2pdf route:
+for file in \
+ bckwrdexample \
+ divexample \
+ fancyexample \
+ hilitexample \
+ mathexample \
+ panelexample \
+ parexample \
+ picexample \
+ tabexample \
+ spanelexample \
+ prosperdemo \
+ seminardemo
+do
+ echo "Compiling $file.tex"
+ latex -interaction=batchmode $file.tex > /dev/null
+ latex -interaction=batchmode $file.tex > /dev/null
+ dvips -q $file.dvi
+ ps2pdf $file.ps
+done
+
+# Examples/demos which can be compiled with pdflatex:
+for file in \
+ verbexample \
+ foilsdemo \
+ ifmslidemo \
+ pdfslidemo \
+ simpledemo \
+ pdfscrdemo \
+ pp4sldemo \
+ slidesdemo
+do
+ echo "Compiling $file.tex"
+ pdflatex -interaction=batchmode $file > /dev/null
+ pdflatex -interaction=batchmode $file > /dev/null
+done
+