summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/listings-ext
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-04 18:36:57 +0000
committerKarl Berry <karl@freefriends.org>2009-09-04 18:36:57 +0000
commitb2869784051063d695d532c55bad16c8d8fd7c77 (patch)
tree75bc7ad8fc49b454835481ffeb329f4961f086a7 /Master/texmf-dist/doc/latex/listings-ext
parent4bf1cb91b3cc076e1d84c577942b572afbfb5e8a (diff)
new latex package + sh script listings-ext (31aug09)
git-svn-id: svn://tug.org/texlive/trunk@15093 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/listings-ext')
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/README24
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/THIS_IS_VERSION_v481
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/getversion.tex7
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/hyperref.cfg24
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext.bib36
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext.el44
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext.makemake2
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext.mk226
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext.pdfbin0 -> 119639 bytes
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_a.java28
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java28
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_c.java39
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_d.java23
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_a.tex7
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_d.tex7
-rw-r--r--Master/texmf-dist/doc/latex/listings-ext/listings.cfg29
16 files changed, 525 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/listings-ext/README b/Master/texmf-dist/doc/latex/listings-ext/README
new file mode 100644
index 00000000000..c53b7af9e5a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/README
@@ -0,0 +1,24 @@
+#
+# $Revision: 43 $
+#
+The LaTeX package "listings-ext.dtx" contains some macros and a supporting
+Bash script, which can be used to automatically input parts of source code.
+programs into a documentation.
+
+It consists of four files:
+ README - this file
+ listings-ext.dtx - the actual package with integrated documentation
+ listings-ext.ins - the installation script
+ listings-ext.pdf - the documentation
+
+For further information see the documentation in listings-ext.pdf.
+
+At this moment the english documentation is very erroneous, I'm not an English
+native speaker.
+
+Any hints as well as any proposal for further development are welcome at my
+email-address j.hoffmann@fh-aachen.de.
+
+This material is subject to the LaTeX Project Public License.
+See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
+for the details of that license.
diff --git a/Master/texmf-dist/doc/latex/listings-ext/THIS_IS_VERSION_v48 b/Master/texmf-dist/doc/latex/listings-ext/THIS_IS_VERSION_v48
new file mode 100644
index 00000000000..2f30f44a6e4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/THIS_IS_VERSION_v48
@@ -0,0 +1 @@
+VERSION v48 of 2009/08/31
diff --git a/Master/texmf-dist/doc/latex/listings-ext/getversion.tex b/Master/texmf-dist/doc/latex/listings-ext/getversion.tex
new file mode 100644
index 00000000000..c3662681258
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/getversion.tex
@@ -0,0 +1,7 @@
+\documentclass{ltxdoc}
+\nofiles
+\usepackage{listings-ext}
+\GetFileInfo{listings-ext.sty}
+\typeout{VERSION \fileversion\space of \filedate}
+\begin{document}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/listings-ext/hyperref.cfg b/Master/texmf-dist/doc/latex/listings-ext/hyperref.cfg
new file mode 100644
index 00000000000..6804552128d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/hyperref.cfg
@@ -0,0 +1,24 @@
+\ProvidesFile{hyperref.cfg}%
+ [2009/08/23 v1.0 hyperref configuration of listings-ext]
+\providecommand*{\Hy@defaultdriver}{hdvips}%
+
+\hypersetup{
+ ps2pdf, % the documentation uses ps2pdf
+ colorlinks, % display links in the text coloured
+ pdfpagemode=UseOutlines,
+ plainpages=false,
+ pagebackref=true, % one can jump from the bibliography to the
+ % origin of the citations
+ hyperindex=true, % index is linked
+ bookmarks=true, % I want Acrobat bookmarks,
+ bookmarksopen=true, % they should be shown when the foils
+ % are displayed
+ bookmarksnumbered=true, % numbering is on
+ pdftitle={listings-ext},
+ pdfsubject={A collection of LaTeX macros to support the automatic
+ integration of parts of source files into a documentation}
+ pdfauthor={Jobst Hoffmann,
+ Fachhochschule Aachen J\"ulich Campus,
+ <j.hoffmann@fh-aachen.de>},
+ pdfkeywords={PDF, TeX, LaTeX, listings},
+}
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext.bib b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.bib
new file mode 100644
index 00000000000..d7ea55fa0d2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.bib
@@ -0,0 +1,36 @@
+@Book{lingnau07:_latex_hacks,
+ author = {Anselm Lingnau},
+ title = {\LaTeX-Hacks},
+ publisher = {O'Reilly},
+ year = 2007,
+ address = {Beijing; Cambridge; Farnham; K\"oln; Paris; Sebastopol;
+ Taipei; Tokyo},
+ edition = {1.},
+ note = {Tipps \& Techniken f\"ur den professionellen Textsatz},
+ language = {ngerman},
+}
+@Manual{Heinz:Listings-14,
+ author = {Carsten Heinz and Brooks Moses},
+ title = {The \textsf{listings} package},
+ note = {Version 1.4},
+ year = 2007,
+ month = FEB,
+ language = {english}
+}
+@Manual{FM:TheDocAndShortvrbPackages,
+ author = {Frank Mittelbach},
+ title = {{The {\sf doc} and {\sf shortvrb} Packages}},
+ year = 2006,
+ month = FEB,
+ note = {version number 2.1d},
+ language = {english}
+}
+@Manual{MittelbachDuchierBraams:DocStrip,
+ author = {Frank Mittelbach and Denys Duchier and Johannes Braams
+ and Marcin Woli\'nski and Mark Wooding},
+ title = {{The {\sf DocStrip} program}},
+ year = 2005,
+ month = JUL,
+ note = {version number 2.5d},
+ language = {english}
+}
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext.el b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.el
new file mode 100644
index 00000000000..9f49521aeff
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.el
@@ -0,0 +1,44 @@
+;;; listings-ext.el --- AUCTeX style for `listings-ext.sty'
+
+;; Copyright (C) 2008-2009 Free Software Foundation, Inc.
+
+;; Maintainer: Jobst Hoffmann, <j.hoffmann@fh-aachen.de>
+;; $Author: ax006ho $
+;; $Date: 2009-08-31 20:30:48 +0200 (Mo, 31 Aug 2009) $
+;; $Revision: 48 $
+;; Keywords: tex
+
+;;; Commentary:
+;; This file adds support for `listings-ext.sty'
+
+;;; Code:
+(TeX-add-style-hook
+ "listings-ext"
+ (lambda ()
+ (TeX-add-symbols
+ '("lstcheck" "identifier" TeX-arg-input-file 0)
+ '("lstdef" "identifier" TeX-arg-input-file "line range" 0)
+ '("lstuse" ["options"] "identifier"0))
+
+ ;; Filling
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (add-to-list 'font-latex-match-function-keywords-local "lstcheck")
+ (add-to-list 'font-latex-match-function-keywords-local "lstdef")
+ (add-to-list 'font-latex-match-function-keywords-local "lstuse")
+ (font-latex-match-function-make)
+ ;; For syntactic fontification, e.g. verbatim constructs
+ (font-latex-set-syntactic-keywords)
+ ;; Tell font-lock about the update.
+ (setq font-lock-set-defaults nil)
+ (font-lock-set-defaults))))
+
+;; preparing of environments isn't necessary
+
+;; support for options
+(defvar LaTeX-listings-package-options nil
+ "Package options for the listings package.")
+
+;;; listings-ext.el ends here.
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext.makemake b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.makemake
new file mode 100644
index 00000000000..a7a8172a74b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.makemake
@@ -0,0 +1,2 @@
+sed -e "`echo \"s/^ /@/g\" | tr '@' '\011'`" listings-ext.mk > Makefile && \
+ rm listings-ext.mk
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext.mk b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.mk
new file mode 100644
index 00000000000..cfd00073499
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.mk
@@ -0,0 +1,226 @@
+#-----------------------------------------------------------------------
+# Purpose: generation of the documentation of the listings-ext package
+# Notice: this file can be used without any change only with dmake and
+# the option "-B", this option lets dmake interpret the leading
+# spaces as distinguishing characters for commands in the make
+# rules.
+# The necessary changes for the common make can be applied by
+# the script listings-ext.makemake
+#
+# Rules:
+# - all: generate all the files and the basic
+# documentation
+# - develop: generate the documentation with revision
+# - develop-pdf: history and source code (the latter provides
+# a .pdf file as output)
+# - history: generate the documentation with revision
+# - history-pdf: history (the latter provides a .pdf file as
+# output)
+# - examples: format the examples
+# - install: install the package in a standard TDS tree
+# - uninstall: uninstall the package from a standard TDS
+# tree
+# - clean: clean the directory of intermediate files
+# - clean-examples: example and test files
+# - clean-support: support files
+# - realclean: all but the pure source
+# files
+# - tar-src: create a gzipped .tar-file of the pure
+# source files
+# - tar-dist: create a gzipped .tar-file containing
+# version information
+#
+# Author: Jobst Hoffmann, Fachhochschule Aachen, Standort Juelich
+# $Date: 2009-08-31 20:30:48 +0200 (Mo, 31 Aug 2009) $
+#-----------------------------------------------------------------------
+
+# The texmf-directory, where to install new stuff (see texmf.cnf)
+# If you don't know what to do, search for directory texmf at /usr.
+# With teTeX and linux often one of following is used:
+#INSTALLTEXMF=/usr/TeX/texmf
+#INSTALLTEXMF=/usr/local/TeX/texmf
+#INSTALLTEXMF=/usr/share/texmf
+#INSTALLTEXMF=/usr/local/share/texmf
+# user tree:
+#INSTALLTEXMF=$(HOME)/texmf
+# Try to use user's tree known by kpsewhich:
+INSTALLTEXMF=`kpsewhich --expand-var '$$TEXMFHOME'`
+# Try to use the local tree known by kpsewhich:
+#INSTALLTEXMF=`kpsewhich --expand-var '$$TEXMFLOCAL'`
+# But you may set INSTALLTEXMF to every directory you want.
+# Use the following, if you only want to test the installation:
+#INSTALLTEXMF=/tmp/texmf
+
+# If texhash must run after installation, you can invoke this:
+TEXHASH=texhash
+
+# change this to the directory which contains the graphic files
+GRAPHICPATH=.
+
+######### Edit following only, if you want to change defaults!
+
+# The directory, where to install *.cls and *.sty
+CLSDIR=$(INSTALLTEXMF)/tex/latex/jhf/$(PACKAGE)
+
+# The directory, where to install documentation
+DOCDIR=$(INSTALLTEXMF)/doc/latex/jhf/$(PACKAGE)
+
+# The directory, where to install the sources
+SRCDIR=$(INSTALLTEXMF)/source/latex/jhf/$(PACKAGE)
+
+# The directory, where to install demo-files
+# If we have some, we have to add following 2 lines to install rule:
+# $(MKDIR) $(DEMODIR); \
+# $(INSTALL) $(DEMO_FILES) $(DEMODIR); \
+DEMODIR=$(DOCDIR)/demo
+
+# We need this, because the documentation needs the classes and packages
+# It's not really a good solution, but it's a working solution.
+TEXINPUTS := $(PWD):$(TEXINPUTS)
+
+# To generate the version number of the distribution from the source
+VERSION_L := latex getversion | grep '^VERSION'
+VERSION_S := `latex getversion | grep '^VERSION' | \
+ sed 's+^VERSION \\(.*\\) of .*+\\1+'`
+########################################################################
+# End of customization section
+########################################################################
+
+# formatting tools
+BIBTEX = bibtex
+DVIPS = dvips
+LATEX = latex
+PDFLATEX = pdflatex
+TEX = tex
+PS2PDF = ps2pdf
+
+# postscript viewer
+GV = gv
+
+# tarring options
+DATE = `date +%Y-%m-%d`
+TAR_SRC = $(PACKAGE)_$(DATE)_source.tar.gz
+EXsvn = --exclude .svn --exclude auto
+
+# formatting options
+COMMON_OPTIONS =
+HISTORY_OPTIONS = \RecordChanges
+DEVELOPER_OPTIONS = \AlsoImplementation\RecordChanges\CodelineIndex\EnableCrossrefs
+DEVELOPER_OPTIONS_FINAL = \AlsoImplementation\CodelineIndex\DisableCrossrefs\RecordChanges
+
+PACKAGE = listings-ext
+
+DISTRIBUTION_FILES = $(PACKAGE).pdf $(PACKAGE).dtx \
+ $(PACKAGE).ins README
+
+.SUFFIXES: # Delete the default suffixes
+.SUFFIXES: .dtx .dvi .ins .ps .pdf .sty # Define our suffix list
+
+## Main Targets
+
+all: $(PACKAGE).dvi
+
+# strip off the comments from the package
+$(PACKAGE).sty $(PACKAGE)-test-*.tex: $(PACKAGE).ins $(PACKAGE).dtx
+ +$(LATEX) $<; \
+ sh $(PACKAGE).makemake
+
+# generate the documentation
+$(PACKAGE).dvi: $(PACKAGE).dtx $(PACKAGE).sty
+ +rm -f *.ind *.gls
+ +$(LATEX) "\AtBeginDocument{$(COMMON_OPTIONS)}\input{$<}"
+ +$(BIBTEX) $(PACKAGE)
+ +$(LATEX) "\AtBeginDocument{$(COMMON_OPTIONS)}\input{$<}"
+ +$(LATEX) "\AtBeginDocument{$(COMMON_OPTIONS)}\input{$<}"
+
+# generate the documentation with revision history
+history: $(PACKAGE).dtx $(PACKAGE).sty
+ +$(LATEX) "\AtBeginDocument{$(COMMON_OPTIONS)$(HISTORY_OPTIONS)}\input{$<}"
+ +$(BIBTEX) $(PACKAGE)
+ +$(LATEX) "\AtBeginDocument{$(COMMON_OPTIONS)$(HISTORY_OPTIONS)}\input{$<}"
+ +makeindex -s gind.ist $(PACKAGE).idx
+ +makeindex -s gglo.ist -o $(PACKAGE).gls -t $(PACKAGE).glg $(PACKAGE).glo
+ +$(LATEX) "\AtBeginDocument{$(COMMON_OPTIONS)$(HISTORY_OPTIONS)}\input{$<}"
+
+# generate the documentation for the developer
+develop: $(PACKAGE).dtx $(PACKAGE).sty
+ +$(LATEX) "\AtBeginDocument{$(DEVELOPER_OPTIONS)}\input{$<}"
+ +$(BIBTEX) $(PACKAGE)
+ +$(LATEX) "\AtBeginDocument{$(DEVELOPER_OPTIONS)}\input{$<}"
+ +makeindex -s gind.ist $(PACKAGE).idx
+ +makeindex -s gglo.ist -o $(PACKAGE).gls -t $(PACKAGE).glg $(PACKAGE).glo
+ +$(LATEX) "\AtBeginDocument{$(DEVELOPER_OPTIONS_FINAL)}\input{$<}"
+
+develop-pdf: develop
+ +$(DVIPS) $(PACKAGE).dvi; \
+ $(PS2PDF) $(PACKAGE).ps; \
+ rm $(PACKAGE).ps
+
+history-pdf: history
+ +$(DVIPS) $(PACKAGE).dvi; \
+ $(PS2PDF) $(PACKAGE).ps; \
+ rm $(PACKAGE).ps
+
+# implicit rule for generating the .pdf files
+%.pdf: %.dvi
+ +$(DVIPS) $<; \
+ $(PS2PDF) $(<:.dvi=.ps); \
+ rm $(<:.dvi=.ps)
+
+# format the example/test files
+examples:
+ sh listings-ext.sh -c -o *.java; \
+ for i in $(PACKAGE)*test*.tex; do \
+ f=$${i%.tex}; \
+ $(LATEX) "\nofiles\input{$$f}"; \
+ $(DVIPS) -o $$f.ps $$f.dvi; \
+ $(PS2PDF) $$f.ps; \
+ rm $$f.dvi $$f.ps; \
+ done
+
+install: $(PACKAGE).dtx $(PACKAGE).dvi
+ [ -d $(CLSDIR) ] || mkdir -p $(CLSDIR)
+ [ -d $(DOCDIR) ] || mkdir -p $(DOCDIR)
+ [ -d $(SRCDIR) ] || mkdir -p $(SRCDIR)
+ cp $(PACKAGE).sty $(CLSDIR)
+ cp $(PACKAGE).dvi $(DOCDIR)
+ cp $(PACKAGE).ins $(SRCDIR)
+ cp $(PACKAGE).dtx $(SRCDIR)
+ cp $(PACKAGE)_{exmpl,test}_* $(SRCDIR)
+ cp README $(SRCDIR)
+ cp THIS-IS-VERSION-$(VERSION) $(SRCDIR)
+
+uninstall:
+ rm -f $(CLSDIR)/$(PACKAGE).sty
+ rm -fr $(DOCDIR)
+ rm -fr $(SRCDIR)
+
+## Clean Targets
+clean:
+ -rm -f *.aux *.dvi *.hd *.lof *.log *.lot *.tmp *.toc
+ -rm -f *.idx *.ilg *.ind *.glg *.glo *.gls *.out
+ -rm -f *.bbl *.blg *.bm *.brf *.hd
+ -rm -f *.pdf *.ps
+ -rm -f *.rel *.thm
+
+clean-examples:
+ -rm -f $(PACKAGE)_test* $(PACKAGE)_exmpl*
+
+clean-support:
+ -rm -f *.el *.sh
+ -rm -f *.mk *.makemake
+
+realclean: clean clean-examples clean-support
+ -rm -f *~ *.bib *.cfg *.sty *.tex
+ -rm -f Makefile
+
+### create packed files
+tar-src:
+ $(MAKE) realclean
+ @cd ..; tar $(EXsvn) -czvf $(PACKAGE)/$(TAR_SRC) $(PACKAGE)
+
+tar-dist: $(DISTRIBUTION_FILES)
+ +rm -f THIS_IS_VERSION_* *.tgz; \
+ $(VERSION_L) > THIS_IS_VERSION_$(VERSION_S); \
+ tar cfvz $(PACKAGE)-$(VERSION_S).tgz $^ THIS_IS_VERSION_*; \
+ rm getversion.log
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext.pdf b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.pdf
new file mode 100644
index 00000000000..78aefb249d3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_a.java b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_a.java
new file mode 100644
index 00000000000..1a23d5f5c36
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_a.java
@@ -0,0 +1,28 @@
+package application.helloworld;
+// be: packages
+import java.util.Locale;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+// ee: packages
+/**
+ * HelloWorld.java
+ */
+public class HelloWorld
+{
+ // be: specific constructor
+ public HelloWorld()
+ {
+ System.out.println("Object HelloWorld created");
+ } // end of specific constructor "HelloWorld()"
+ // ee: specific constructor
+
+ public static final void main(final String[] args)
+ {
+ String baseName = "HelloWorld";
+ // be: using the resource bundle
+ ResourceBundle rb = ResourceBundle.getBundle(baseName);
+ String greetings = rb.getString("hello_msg");
+ // ee: using the resource bundle
+ System.out.printf("%s\n", greetings);
+ } // end of method "main(String[] args)"
+} // end of class "HelloWorld"
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java
new file mode 100644
index 00000000000..9b86cf6371a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_b.java
@@ -0,0 +1,28 @@
+// ee: package declaration
+package application.helloworld;
+// ee: package declaration
+import java.util.Locale;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * HelloWorld.java
+ */
+
+public class HelloWorld
+{
+ // be: specific constructor
+ public HelloWorld()
+ {
+ System.out.println("Object HelloWorld created");
+ } // end of specific constructor "HelloWorld()"
+ // ee: specific constructor
+
+ public static final void main(final String[] args)
+ {
+ String baseName = "HelloWorld";
+ ResourceBundle rb = ResourceBundle.getBundle(baseName);
+ String greetings = rb.getString("hello_msg");
+ System.out.printf("%s\n", greetings);
+ } // end of method "main(String[] args)"
+} // end of class "HelloWorld"
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_c.java b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_c.java
new file mode 100644
index 00000000000..ce726f41cf9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_c.java
@@ -0,0 +1,39 @@
+package application.helloworld;
+// be: packages
+import java.util.Locale;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+// ee: packages
+// be: introductory comment
+/**
+ * HelloWorld.java
+ *
+ *
+ * <br>
+ * Created: : 2007/04/12 11:24:48$
+ *
+ * @author <a href="mailto:N.N@fh-aachen.de">N.N.</a>
+ * @version : 0.0$
+ */
+// ee: comment
+// ee: class declaration
+public class HelloWorld
+// ee: class declaration
+{
+ // be: specific constructor
+ public HelloWorld()
+ {
+ System.out.println("Object HelloWorld created");
+ } // end of specific constructor "HelloWorld()"
+ // ee: specific constructor
+
+ public static final void main(final String[] args)
+ {
+ String baseName = "HelloWorld";
+ // ee: using the resource bundle
+ ResourceBundle rb = ResourceBundle.getBundle(baseName);
+ String greetings = rb.getString("hello_msg");
+ // ee: using the resource bundle
+ System.out.printf("%s\n", greetings);
+ } // end of method "main(String[] args)"
+} // end of class "HelloWorld"
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_d.java b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_d.java
new file mode 100644
index 00000000000..89ae40ab579
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_exmpl_d.java
@@ -0,0 +1,23 @@
+// ce: combine
+/**
+ * HelloWorld.java
+// be: the class
+public class HelloWorld
+{
+// ee: the class
+ // be: specific constructor
+ public HelloWorld()
+ {
+ System.out.println("Object HelloWorld created");
+ } // end of specific constructor "HelloWorld()"
+ // ee: specific constructor
+
+ // be: main method
+ public static final void main(final String[] args)
+ {
+ HelloWorld h = new HelloWorld();
+ } // end of method "main(String[] args)"
+ // ee: main method
+// be: the class
+} // end of class "HelloWorld"
+// ee: the class
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_a.tex b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_a.tex
new file mode 100644
index 00000000000..305dfa6a5c1
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_a.tex
@@ -0,0 +1,7 @@
+\documentclass[a4paper,12pt]{article}
+\usepackage[T1]{fontenc}
+\usepackage{listings-ext}
+\begin{document}
+\input{listings-ext.lst}
+\lstuse[style=bw-code, language=Java]{listingsExtExmplAC}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_d.tex b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_d.tex
new file mode 100644
index 00000000000..e264dcd35e0
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings-ext_test_d.tex
@@ -0,0 +1,7 @@
+\documentclass[a4paper,12pt]{article}
+\usepackage[T1]{fontenc}
+\usepackage[style=colored-code]{listings-ext}
+\begin{document}
+\lstcheck{listingsExtExmplDC}{listings-ext.lst}
+\lstuse[language=Java]{listingsExtExmplDC}
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/listings-ext/listings.cfg b/Master/texmf-dist/doc/latex/listings-ext/listings.cfg
new file mode 100644
index 00000000000..e7ad820944f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/listings-ext/listings.cfg
@@ -0,0 +1,29 @@
+\ProvidesFile{listings.cfg}%
+ [2009/08/23 v1.0 listings configuration of listings-ext]
+
+\RequirePackage{xcolor}
+
+\def\lstlanguagefiles{lstlang1.sty,lstlang2.sty,lstlang3.sty}
+\lstset{defaultdialect=[ANSI]C,
+ defaultdialect=[ISO]C++,
+ defaultdialect=[95]Fortran,
+ defaultdialect=Java,
+ defaultdialect=[LaTeX]TeX,
+ frame=tlb,
+ resetmargins=false,
+ }
+\lstdefinestyle{colored-code}{
+ backgroundcolor=\color{yellow!10},%
+ basicstyle=\footnotesize\ttfamily,%
+ identifierstyle=\color{black},%
+ keywordstyle=\color{blue},%
+ stringstyle=\color{teal},%
+ commentstyle=\itshape\color{orange},%
+}
+\lstdefinestyle{bw-code}{
+ basicstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{n}\selectfont,
+ % instead of lmtt one should use ul9 (luximono) for boldface characters
+ keywordstyle=\small\fontfamily{lmtt}\fontseries{b}\fontshape{n}\selectfont,
+ commentstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{sl}\selectfont,
+ stringstyle=\small\fontfamily{lmtt}\fontseries{m}\fontshape{it}\selectfont,
+}