summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/tex4ht/jhsample.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/tex4ht/jhsample.tex')
-rw-r--r--Master/texmf-dist/doc/generic/tex4ht/jhsample.tex62
1 files changed, 31 insertions, 31 deletions
diff --git a/Master/texmf-dist/doc/generic/tex4ht/jhsample.tex b/Master/texmf-dist/doc/generic/tex4ht/jhsample.tex
index 1842c99a3e2..c17e002d6a7 100644
--- a/Master/texmf-dist/doc/generic/tex4ht/jhsample.tex
+++ b/Master/texmf-dist/doc/generic/tex4ht/jhsample.tex
@@ -16,20 +16,11 @@
\begin{itemize}
\item
-Make a subdirectory {\tt jobname-doc}.
-\item
-Compile the \LaTeX{} file with a command similar to
-\index{htlatex}%
-`{\tt htlatex
-jobname "html,3.2,javahelp,3" "" "-djobname-doc/"}'.
-\item
-\index{JavaHelp indexer}%
- Invoke the JavaHelp indexer to produce the search
-database at `jobname-doc/jobname-jhs' with a command
- similar to `{\tt java -jar
- \$\string{HOME\string}/jh1.1.3/javahelp/bin/jhindexer.jar -db
- jobname-doc/jobname-jhs
-jobname*.html}'.
+Compile this \LaTeX{} file with the
+\index{jhlatex}%
+`{\tt jhlatex
+jobname "html,3"}'
+command.
\item
\index{JavaHelp URL}%
The URL into the javahelp file, as provided by tex4ht, is
@@ -38,12 +29,12 @@ The URL into the javahelp file, as provided by tex4ht, is
The java programs should be compiled with commands similar to
\index{javac}%
`{\tt javac -classpath
- \$\string{HOME\string}/jh1.1.3/javahelp/lib/jh.jar program.java}'.
+ \$\string{HOME\string}/jh2.0/javahelp/lib/jh.jar program.java}'.
\item
The programs should run with commands similar to
\index{java}%
`{\tt java -classpath
- \$\string{HOME\string}/jh1.1.3/javahelp/lib/jh.jar;. program}'.
+ \$\string{HOME\string}/jh2.0/javahelp/lib/jh.jar:. program}'.
\end{itemize}
@@ -83,23 +74,17 @@ public class jhprog {
\section{Sample Script}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-The source file \edef\temp{\noexpand\url{\jobname.tex}}\temp{} of this
-document got compiled with the command `{\tt jhlatex jhsample "html,3"}', with
-{\tt jhlatex} being the following script.\index{htlatex}
+A source file \edef\temp{\noexpand\url{jhsample.tex}}\temp{} of this
+document may be compiled for JavHelp 2.0 with the following script.
-\begin{verbatim}
-mkdir jh-$1.dir
-mkdir jh-$1.dir/$1-doc
-htlatex $1 "html,3.2,javahelp,$2" "" "-djh-$1.dir/$1-doc/ -cjavahelp"
-tex '\def\filename{{$1}{idx}{4dx}{ind}} \input idxmake.4ht'
-makeindex -o $1.ind $1.4dx
-htlatex $1 "html,3.2,javahelp" "" "-djh-$1.dir/$1-doc/ -cjavahelp"
-cd jh-$1.dir; zip -r $1 * ; cd ..
-mv jh-$1.dir/$1.zip .
-rm -r -f jh-$1.dir
-\end{verbatim}
+\Verbatim
+jhlatex jhsample
+tex "\def\filename{{$1}{idx}{4dx}{ind}} \input idxmake.4ht"
+makeindex -o jhsample.ind jhsample.4dx
+jhlatex jhsample
+\EndVerbatim
-The compilation produced the following files.
+The compilation produces the following files.
\begin{verbatim}
jhprog.class
@@ -112,6 +97,21 @@ jhsample-doc/jhsample-jht.xml
jhsample-doc/jhprog.java
\end{verbatim}
+
+The following instruction can be used for compiling the program.
+
+\Verbatim
+javac -classpath ${HOME}/jh2.0/javahelp/lib/jh.jar jhprog.java
+\EndVerbatim
+
+
+The outcome could be viewed through the following command.
+
+\Verbatim
+java -cp ${\home}/jh2.0/javahelp/lib/jh.jar:. jhprog
+\EndVerbatim
+
+
\printindex
\end{document}