summaryrefslogtreecommitdiff
path: root/macros/generic/cptex/btex8fmt/fmt.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/generic/cptex/btex8fmt/fmt.bat
Initial commit
Diffstat (limited to 'macros/generic/cptex/btex8fmt/fmt.bat')
-rw-r--r--macros/generic/cptex/btex8fmt/fmt.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/generic/cptex/btex8fmt/fmt.bat b/macros/generic/cptex/btex8fmt/fmt.bat
new file mode 100644
index 0000000000..144775d59a
--- /dev/null
+++ b/macros/generic/cptex/btex8fmt/fmt.bat
@@ -0,0 +1,21 @@
+echo off
+rem fmt.bat
+if exist hyphen.tex goto ex
+copy \emtex\texinput\hyphen.tex hyphen.tex
+btex -i -8 -o -r plain \dump
+if errorlevel 1 goto error
+btex -i -8 -o -r lplain \input 3 \dump
+if errorlevel 1 goto error
+goto done
+
+:ex
+echo The following files should be removed or renamed before running fmt:
+if exist hyphen.tex echo hyphen.tex
+goto end
+
+:error
+echo Error
+
+:done
+if exist hyphen.tex del hyphen.tex
+:end