This repository was archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·37 lines (35 loc) · 1.38 KB
/
run.sh
File metadata and controls
executable file
·37 lines (35 loc) · 1.38 KB
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
#!/bin/sh
# Copyright (C) 2017 Stephan Kreutzer
#
# This file is an extension for the
# digital_publishing_workflow_tools package.
#
# This file is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License version 3 or any later version,
# as published by the Free Software Foundation.
#
# This file is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License 3 for more details.
#
# You should have received a copy of the GNU Affero General Public License 3
# along with part of this file. If not, see <http://www.gnu.org/licenses/>.
# Note: you can use any other XSL transformator instead of Apache FOP, for example
# xml_xslt_transformator_1 of the digital_publishing_workflow_tools package or
# xmlstarlet.
rm -f output_latex.pdf
rm -f output_latex.aux
rm -f output_latex.log
rm -f texput.log
rm -f output.tex
rm -f output_fop.pdf
rm -f output.fo
rm -f output.html
rm -f output.xml
./ntl_to_xml_1 input.ntl output.xml
fop -xml output.xml -xsl ntl_to_html_1.xsl -foout output.html
fop -xml output.xml -xsl ntl_to_latex_1.xsl -foout output.tex
pdflatex -jobname output_latex output.tex
fop -xml output.xml -xsl ntl_to_fo_1.xsl -foout output.fo
fop -c fop.xconf -fo output.fo -pdf output_fop.pdf