initial code + examples commit
This commit is contained in:
36
examples/example4_include/MyDocument.tex
Normal file
36
examples/example4_include/MyDocument.tex
Normal file
@@ -0,0 +1,36 @@
|
||||
\documentclass[11pt,a4paper]{report}
|
||||
\usepackage[english]{babel}
|
||||
\usepackage{blindtext}
|
||||
|
||||
% 1. TeXDoclet output include
|
||||
\input{texdoclet_output/TeXDoclet_preamble}
|
||||
|
||||
% use behind of TeXDoclet_preamble.tex because of option clash with pdftex
|
||||
\usepackage{fullpage}
|
||||
\usepackage{hyperref}
|
||||
\hypersetup{
|
||||
colorlinks=true,allcolors=blue,pdfpagemode=UseOutlines,pdfpagelayout=TwoPageRight
|
||||
}
|
||||
\usepackage{hypcap}
|
||||
|
||||
\begin{document}
|
||||
|
||||
\date{\today}
|
||||
\title{TeXDoclet Java Documentation\bigskip\\ \Large Created with Javadoc TeXDoclet Doclet}
|
||||
\author{Greg Wonderly \and S\"oren Caspersen \and Stefan Marx}
|
||||
\maketitle
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\chapter{Foo} {\section{Foo1} {\blindtext}}
|
||||
|
||||
\chapter{Bar} {\section{Bar1} {\blindtext \newline \newline \blindtext }\section{Bar2} {\blindtext}}
|
||||
|
||||
\chapter{TeXdoclet Java Documentation} {
|
||||
% 2. TeXDoclet output include
|
||||
\input{texdoclet_output/TeXDoclet}
|
||||
}
|
||||
|
||||
\chapter{FooBar} {\section{FooBar1} {\blindtext}}
|
||||
|
||||
\end{document}
|
||||
31
examples/example4_include/createDocs.sh
Executable file
31
examples/example4_include/createDocs.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# - this example shows how to use the -include option
|
||||
# - TeXDoclet generated output (TeXDoclet.tex and TeXDoclet_preamble.tex)
|
||||
# is included in another Latex document (MyDocument.tex) here
|
||||
#
|
||||
|
||||
mkdir texdoclet_output
|
||||
|
||||
rm MyDocument.aux
|
||||
rm MyDocument.idx
|
||||
rm MyDocument.out
|
||||
rm MyDocument.toc
|
||||
rm MyDocument.pdf
|
||||
rm texdoclet_output/TeXDoclet.aux
|
||||
rm texdoclet_output/TeXDoclet_preamble.aux
|
||||
|
||||
# -imagespath ".." not needed here because path texdoclet_images is in subdir of MyDocument.tex
|
||||
|
||||
javadoc -docletpath ../../target/TeXDoclet.jar \
|
||||
-doclet org.stfm.texdoclet.TeXDoclet \
|
||||
-tree \
|
||||
-noindex \
|
||||
-hyperref \
|
||||
-output texdoclet_output/TeXDoclet.tex \
|
||||
-sourcepath ../../src/main/java \
|
||||
-subpackages com:org \
|
||||
-include \
|
||||
-sectionlevel section
|
||||
|
||||
pdflatex MyDocument.tex
|
||||
pdflatex MyDocument.tex
|
||||
Reference in New Issue
Block a user