File: MakeExamples.sh

package info (click to toggle)
texpower 0.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 964 kB
  • ctags: 14
  • sloc: makefile: 175; sh: 111
file content (46 lines) | stat: -rwxr-xr-x 995 bytes parent folder | download | duplicates (10)
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