summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-07-13 17:54:13 +0000
committerKarl Berry <karl@freefriends.org>2012-07-13 17:54:13 +0000
commit69dcd5b1b7ebc2cb506057a8546d760aef67b74d (patch)
tree3d6a7c2f84f3bc6075a86fae52f2fc31f70f661a /Master/texmf-dist/doc/support
parent5b85326ce9004d1daee0a1cf3c2f1e0a0f8df641 (diff)
new script latexpand (8jul12)
git-svn-id: svn://tug.org/texlive/trunk@27025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/support')
-rw-r--r--Master/texmf-dist/doc/support/latexpand/Makefile10
-rw-r--r--Master/texmf-dist/doc/support/latexpand/README28
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/README3
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/foo.tex3
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/includer.tex21
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/just-comment.tex1
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/my-package.sty2
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/no-eol.tex1
-rw-r--r--Master/texmf-dist/doc/support/latexpand/tests/package-user.tex8
-rw-r--r--Master/texmf-dist/doc/support/latexpand/version.txt1
10 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/latexpand/Makefile b/Master/texmf-dist/doc/support/latexpand/Makefile
new file mode 100644
index 00000000000..2f8651ddd06
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/Makefile
@@ -0,0 +1,10 @@
+all: latexpand.zip
+
+README:
+ ./latexpand --help > README
+
+.PHONY: latexpand.zip
+latexpand.zip: README
+ -$(RM) $@
+ @echo "latexpand version $$(git rev-parse HEAD)" > version.txt
+ zip $@ README version.txt $$(git ls-files)
diff --git a/Master/texmf-dist/doc/support/latexpand/README b/Master/texmf-dist/doc/support/latexpand/README
new file mode 100644
index 00000000000..332b9854a8d
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/README
@@ -0,0 +1,28 @@
+LATEXPAND(1) User Contributed Perl Documentation LATEXPAND(1)
+
+
+
+NNAAMMEE
+ latexpand - Flatten LaTeX file by expanding \include and \input
+ directives
+
+SSYYNNOOPPSSIISS
+ latexpand [options] FILE...
+
+ Options:
+ --verbose show what's going on
+ --keep-comments don't strip comments
+ --empty-comments keep empty comments (i.e. % at end of lines) for clarity
+ --keep-includes don't expand \input and \include directives
+ --help this help message
+ --output <file>, -o <file>
+ generate output in <file>
+ --explain generate explanatory comments in output
+ --show-graphics show included graphics
+ --graphics_extensions
+ colon-separated list of possible graphics extensions
+ (used by --show-graphics to find the actual graphics files)
+
+
+
+perl v5.10.1 2012-07-04 LATEXPAND(1)
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/README b/Master/texmf-dist/doc/support/latexpand/tests/README
new file mode 100644
index 00000000000..b43baccb369
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/README
@@ -0,0 +1,3 @@
+Set of files to test latexpand.
+
+Tests are currently not automated :-(.
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/foo.tex b/Master/texmf-dist/doc/support/latexpand/tests/foo.tex
new file mode 100644
index 00000000000..e1bf33402dc
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/foo.tex
@@ -0,0 +1,3 @@
+foo content
+\def\foo@bar{foo bar}
+\foo@bar{}
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/includer.tex b/Master/texmf-dist/doc/support/latexpand/tests/includer.tex
new file mode 100644
index 00000000000..29c60aa6bd9
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/includer.tex
@@ -0,0 +1,21 @@
+\documentclass{article}
+
+\begin{document}
+beforeinput\input{foo}afterinput
+
+beforeinput.tex\input{foo.tex}afterinput.tex
+
+before inclusion of just-comment\input just-comment.tex after inclusion of just-comment
+
+before inclusion of no-eol\input no-eol after inclusion of no-eol.
+
+before inclusion of no-eol\input{no-eol}after inclusion of no-eol (braces).
+
+beforeinclude\include{foo}afterinclude
+
+\end{document}
+
+%%% Local Variables:
+%%% mode: latex
+%%% TeX-master: t
+%%% End:
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/just-comment.tex b/Master/texmf-dist/doc/support/latexpand/tests/just-comment.tex
new file mode 100644
index 00000000000..743ee4e4472
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/just-comment.tex
@@ -0,0 +1 @@
+%just comment (no EOL) \ No newline at end of file
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/my-package.sty b/Master/texmf-dist/doc/support/latexpand/tests/my-package.sty
new file mode 100644
index 00000000000..ab135ab069f
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/my-package.sty
@@ -0,0 +1,2 @@
+% My package content
+\def\foo{bar}
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/no-eol.tex b/Master/texmf-dist/doc/support/latexpand/tests/no-eol.tex
new file mode 100644
index 00000000000..5910948883b
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/no-eol.tex
@@ -0,0 +1 @@
+text without EOL \ No newline at end of file
diff --git a/Master/texmf-dist/doc/support/latexpand/tests/package-user.tex b/Master/texmf-dist/doc/support/latexpand/tests/package-user.tex
new file mode 100644
index 00000000000..87df974b679
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/tests/package-user.tex
@@ -0,0 +1,8 @@
+\documentclass{article}
+
+\usepackage{lmodern}
+\usepackage{my-package}
+
+\begin{document}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/support/latexpand/version.txt b/Master/texmf-dist/doc/support/latexpand/version.txt
new file mode 100644
index 00000000000..8473dc583e0
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexpand/version.txt
@@ -0,0 +1 @@
+latexpand version a4a6bbc8086e31d95c9fb45faa85c40e12c77f23