summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-08-26 22:17:31 +0000
committerKarl Berry <karl@freefriends.org>2011-08-26 22:17:31 +0000
commit80219992c1ed63efeca5390194411fcdcedb17bb (patch)
tree71fa8ca43e70073fc77a5ff97454bf43549dee9a /Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex
parent87f1685a45c8f23851013817d1ead13ff8c20677 (diff)
nicetex 0.43 (24aug11)
git-svn-id: svn://tug.org/texlive/trunk@23703 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex')
-rw-r--r--Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex b/Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex
new file mode 100644
index 00000000000..81353508933
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/nicetext/run/fdtxttex.tex
@@ -0,0 +1,39 @@
+\ProvidesFile{fdtxttex.tex}[2011/08/23 txt to TeX by dialogue (UL)]
+\RequirePackage{fddial0g}
+%% Dialogue settings:
+\newcommand\CorrectionFile{\def\mdoc_corr}
+%% Default settings (modify for your own):
+\input{fdtxttex.cfg}
+%% Screen:
+\Announce{ *fdtxttex.tex* txt to TeX by dialogue^^J
+ (apply \string\MakeDocCorrectHook)^^J}
+ {fdtxttex.cfg}
+\newcommand*{\Dialogue}{%
+ \FD_dialogue_screen{%
+ \string\CorrectionFile{\mdoc_corr}
+ \space (define \BackslashChar MakeDocCorrectHook)^^J%
+ \string\InputFile \space\space\space\space\space
+ {\input_file_name}^^J%
+ \string\ResultFile\space\space\space\space
+ {\result_file_dialogue}
+ \space\space\space
+ \string\toscreen\iftoscreen true\else false\fi
+ }%
+}%
+\newcommand*{\RunWithSettings}{%
+ \run_with_settings_gen{%
+ \input{\mdoc_corr}%
+ \WriteProvides
+ \ProcessFileWith{\input_file_name}{%
+ \WriteResult{\FD_corrected_input_line}%
+ \iftoscreen
+ \typeout{\FD_corrected_input_line}%
+ \else
+ \message{.}%
+ \fi}%
+ }%
+}
+ \errorcontextlines=4
+\Dialogue
+
+\stop