summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/texpower/MakeExamples.sh
blob: 15b363b9b37ea0801fa195b40ac54f7a83ce4e18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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