doc-src/prepare_document
author wenzelm
Tue, 28 Aug 2012 16:43:47 +0200
changeset 48971 5a4bcf466156
permissions -rwxr-xr-x
prepare document more uniformly; fewer latex runs, in accordance to "isabelle document"; apply fixbookmarks last to operate on final root.out;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48971
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     1
#!/bin/bash
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     2
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     3
set -e
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     4
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     5
FORMAT="$1"
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     6
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     7
"$ISABELLE_TOOL" latex -o sty
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     8
cp "$ISABELLE_HOME/doc-src/pdfsetup.sty" .
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
     9
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    10
"$ISABELLE_TOOL" latex -o "$FORMAT"
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    11
"$ISABELLE_TOOL" latex -o bbl
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    12
[ -f root.idx ] && "$ISABELLE_HOME/doc-src/sedindex" root
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    13
"$ISABELLE_TOOL" latex -o "$FORMAT"
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    14
[ -f root.out ] && "$ISABELLE_HOME/doc-src/fixbookmarks" root.out
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    15
"$ISABELLE_TOOL" latex -o "$FORMAT"
5a4bcf466156 prepare document more uniformly;
wenzelm
parents:
diff changeset
    16