1 |
sashby |
1.1 |
#!/bin/sh
|
2 |
|
|
#
|
3 |
|
|
# Simple script to run latex2html with correct args
|
4 |
|
|
#
|
5 |
|
|
#
|
6 |
|
|
# latex2html
|
7 |
|
|
# [-split num]
|
8 |
|
|
# [-link num]
|
9 |
|
|
# [-toc_depth num]
|
10 |
|
|
# [-short_extn]
|
11 |
|
|
# [-iso_language]
|
12 |
|
|
# [-nolatex]
|
13 |
|
|
# [-no_fork]
|
14 |
|
|
# [-external_images]
|
15 |
|
|
# [-ps_images]
|
16 |
|
|
# [-font_size (10pt | 11pt | 12pt | ...)]
|
17 |
|
|
# [-no_tex_defs]
|
18 |
|
|
# [-ascii_mode]
|
19 |
|
|
# [-lcase_tags]
|
20 |
|
|
# [-t top_page_title]
|
21 |
|
|
# [-dir output_directory]
|
22 |
|
|
# [-no_subdir]
|
23 |
|
|
# [-root]
|
24 |
|
|
# [-rootdir output_directory]
|
25 |
|
|
# [-address author_address]
|
26 |
|
|
# [-long_titles num ]
|
27 |
|
|
# [-custom_titles]
|
28 |
|
|
# [-no_navigation]
|
29 |
|
|
# [-top_navigation]
|
30 |
|
|
# [-bottom_navigation]
|
31 |
|
|
# [-auto_navigation]
|
32 |
|
|
# [-index_in_navigation]
|
33 |
|
|
# [-contents_in_navigation]
|
34 |
|
|
# [-next_page_in_navigation]
|
35 |
|
|
# [-previous_page_in_navigation]
|
36 |
|
|
# [-prefix output_filename_prefix]
|
37 |
|
|
# [-auto_prefix]
|
38 |
|
|
# [-up_url up_url]
|
39 |
|
|
# [-up_title up_title]
|
40 |
|
|
# [-down_url down_url]
|
41 |
|
|
# [-down_title down_title]
|
42 |
|
|
# [-prev_url prev_url]
|
43 |
|
|
# [-prev_title prev_title]
|
44 |
|
|
# [-index index_url]
|
45 |
|
|
# [-biblio biblio_url]
|
46 |
|
|
# [-contents toc_url]
|
47 |
|
|
# [-external_file external.aux_file]
|
48 |
|
|
# [-info string]
|
49 |
|
|
# [-no_auto_link]
|
50 |
|
|
# [-discard]
|
51 |
|
|
# [-reuse reuse_option]
|
52 |
|
|
# [-no_reuse]
|
53 |
|
|
# [-no_images]
|
54 |
|
|
# [-no_math]
|
55 |
|
|
# [-no_math_parsing]
|
56 |
|
|
# [-no_accent_images]
|
57 |
|
|
# [-no_parbox_images]
|
58 |
|
|
# [-entities]
|
59 |
|
|
# [-images_only]
|
60 |
|
|
# [-transparent]
|
61 |
|
|
# [-no_transparent]
|
62 |
|
|
# [-antialias]
|
63 |
|
|
# [-no_antialias]
|
64 |
|
|
# [-antialias_text]
|
65 |
|
|
# [-no_antialias_text]
|
66 |
|
|
# [-white]
|
67 |
|
|
# [-no_white]
|
68 |
|
|
# [-local_icons]
|
69 |
|
|
# [-scalable_fonts]
|
70 |
|
|
# [-show_section_numbers]
|
71 |
|
|
# [-numbered_footnotes]
|
72 |
|
|
# [-no_footnode]
|
73 |
|
|
# [-init_file Perl_file]
|
74 |
|
|
# [-show_init]
|
75 |
|
|
# [-html_version (2.0|3.0|3.2|4.0)[,(math|i18n|table|frame|latin[1-9]|unicode)]* ]
|
76 |
|
|
# [-short_index]
|
77 |
|
|
# [-unsegment]
|
78 |
|
|
# [-debug]
|
79 |
|
|
# [-ldump]
|
80 |
|
|
# [-tmp]
|
81 |
|
|
# [-timing]
|
82 |
|
|
# [-verbosity num]
|
83 |
|
|
# [-h(elp)]
|
84 |
|
|
# [-v]
|
85 |
|
|
# file(s)
|
86 |
sashby |
1.2 |
DOCDIR=$1
|
87 |
|
|
|
88 |
|
|
# Exit if no base dir is given:
|
89 |
|
|
if [[ $DOCDIR == "" ]]; then
|
90 |
|
|
echo "** You must specify a SCRAM DOC directory!**"
|
91 |
|
|
exit 1
|
92 |
|
|
fi
|
93 |
|
|
|
94 |
|
|
# Which file to process (note that the .tex is not needed):
|
95 |
|
|
FILENAME=$DOCDIR/SCRAM
|
96 |
sashby |
1.1 |
LATEX2HTML=/usr/local/bin/latex2html; export LATEX2HTML
|
97 |
sashby |
1.3 |
HTMLDIR=`echo $DOCDIR |sed -e 's/tex\/manual/html/g'`
|
98 |
sashby |
1.1 |
|
99 |
|
|
# List of arguments to latex2html:
|
100 |
sashby |
1.4 |
ARGLIST="-font_size 12pt -show_section_numbers -dir $HTMLDIR -address scram.developers@cern.ch -no_footnode -numbered_footnotes"
|
101 |
sashby |
1.2 |
echo
|
102 |
|
|
echo "`basename $0`: Doc directory is $DOCDIR"
|
103 |
|
|
echo
|
104 |
|
|
echo "Running $LATEX2HTML using args "
|
105 |
|
|
echo "$ARGLIST"
|
106 |
|
|
echo
|
107 |
|
|
echo "....please wait....."
|
108 |
|
|
echo
|
109 |
sashby |
1.1 |
|
110 |
sashby |
1.2 |
# Run the command:
|
111 |
sashby |
1.1 |
$LATEX2HTML $ARGLIST $FILENAME
|
112 |
sashby |
1.4 |
|
113 |
sashby |
1.3 |
echo
|
114 |
|
|
echo "--- done ---"
|