summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/utils/tpic2pdftex/ChangeLog4
-rw-r--r--Build/source/utils/tpic2pdftex/Makefile.am39
-rw-r--r--Build/source/utils/tpic2pdftex/Makefile.in150
-rw-r--r--Build/source/utils/tpic2pdftex/Makefile.in.orig57
-rw-r--r--Build/source/utils/tpic2pdftex/Makefile.orig31
-rw-r--r--Build/source/utils/tpic2pdftex/beamerexample.exp528
-rw-r--r--Build/source/utils/tpic2pdftex/configure.ac.orig15
-rw-r--r--Build/source/utils/tpic2pdftex/example.exp1508
-rwxr-xr-xBuild/source/utils/tpic2pdftex/install-sh520
-rwxr-xr-xBuild/source/utils/tpic2pdftex/tpic2pdftex.test8
10 files changed, 2217 insertions, 643 deletions
diff --git a/Build/source/utils/tpic2pdftex/ChangeLog b/Build/source/utils/tpic2pdftex/ChangeLog
new file mode 100644
index 00000000000..0c9dc20de1d
--- /dev/null
+++ b/Build/source/utils/tpic2pdftex/ChangeLog
@@ -0,0 +1,4 @@
+2009-05-06 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ Adapt to TL2009 build system and add a test case.
+
diff --git a/Build/source/utils/tpic2pdftex/Makefile.am b/Build/source/utils/tpic2pdftex/Makefile.am
index 6c5d3aeffa2..65eb498dd12 100644
--- a/Build/source/utils/tpic2pdftex/Makefile.am
+++ b/Build/source/utils/tpic2pdftex/Makefile.am
@@ -1,11 +1,44 @@
+## Makefile.am for the TeX Live subdirectory utils/tpic2pdftex/
+##
+## Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org>
+## You may freely use, modify and/or distribute this file.
##
dist_bin_SCRIPTS = tpic2pdftex
dist_man1_MANS = tpic2pdftex.1
-EXTRA_DIST = beamerexample.pic example.pic
+pic_files = beamerexample.pic example.pic
+tpic_files = $(pic_files:.pic=.tpic)
+tex_files = $(pic_files:.pic=.tex)
+pdf_files = $(pic_files:.pic=.pdf)
+
+doc: $(pdf_files)
+
+example.pdf: example.tex
+ pdftex $<
+
+beamerexample.pdf: beamerexample.tex
+ pdflatex $<
+
+%.tex: %.tpic
+ $(srcdir)/tpic2pdftex $< > $@
+
+$(tpic_files): Makefile
-## Not used
+%.tpic: %.pic
+ pic -z -t $< > $@
+
+dist_check_SCRIPTS = tpic2pdftex.test
+
+TESTS = tpic2pdftex.test
+
+## Expected test output
##
-EXTRA_DIST += Makefile.in.orig Makefile.orig configure.ac.orig
+exp_files = $(pic_files:.pic=.exp)
+
+CLEANFILES = $(pic_files:.pic=.log) *.aux *.nav *.out *.snm *.toc
+
+DISTCLEANFILES = $(pdf_files) $(tex_files) $(tpic_files)
+
+EXTRA_DIST = $(exp_files) $(pic_files)
diff --git a/Build/source/utils/tpic2pdftex/Makefile.in b/Build/source/utils/tpic2pdftex/Makefile.in
index afa6bb12064..3297bef2e3e 100644
--- a/Build/source/utils/tpic2pdftex/Makefile.in
+++ b/Build/source/utils/tpic2pdftex/Makefile.in
@@ -32,13 +32,14 @@ PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = .
DIST_COMMON = $(am__configure_deps) $(dist_bin_SCRIPTS) \
- $(dist_man1_MANS) $(srcdir)/../../build-aux/install-sh \
+ $(dist_check_SCRIPTS) $(dist_man1_MANS) \
+ $(srcdir)/../../build-aux/install-sh \
$(srcdir)/../../build-aux/missing $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(top_srcdir)/configure \
../../build-aux/config.guess ../../build-aux/config.sub \
../../build-aux/depcomp ../../build-aux/install-sh \
../../build-aux/ltmain.sh ../../build-aux/missing \
- ../../build-aux/texinfo.tex ../../build-aux/ylwrap install-sh
+ ../../build-aux/texinfo.tex ../../build-aux/ylwrap ChangeLog
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
@@ -140,8 +141,16 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
dist_bin_SCRIPTS = tpic2pdftex
dist_man1_MANS = tpic2pdftex.1
-EXTRA_DIST = beamerexample.pic example.pic Makefile.in.orig \
- Makefile.orig configure.ac.orig
+pic_files = beamerexample.pic example.pic
+tpic_files = $(pic_files:.pic=.tpic)
+tex_files = $(pic_files:.pic=.tex)
+pdf_files = $(pic_files:.pic=.pdf)
+dist_check_SCRIPTS = tpic2pdftex.test
+TESTS = tpic2pdftex.test
+exp_files = $(pic_files:.pic=.exp)
+CLEANFILES = $(pic_files:.pic=.log) *.aux *.nav *.out *.snm *.toc
+DISTCLEANFILES = $(pdf_files) $(tex_files) $(tpic_files)
+EXTRA_DIST = $(exp_files) $(pic_files)
all: all-am
.SUFFIXES:
@@ -237,6 +246,92 @@ ctags: CTAGS
CTAGS:
+check-TESTS: $(TESTS)
+ @failed=0; all=0; xfail=0; xpass=0; skip=0; \
+ srcdir=$(srcdir); export srcdir; \
+ list=' $(TESTS) '; \
+ if test -n "$$list"; then \
+ for tst in $$list; do \
+ if test -f ./$$tst; then dir=./; \
+ elif test -f $$tst; then dir=; \
+ else dir="$(srcdir)/"; fi; \
+ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *[\ \ ]$$tst[\ \ ]*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ echo "XPASS: $$tst"; \
+ ;; \
+ *) \
+ echo "PASS: $$tst"; \
+ ;; \
+ esac; \
+ elif test $$? -ne 77; then \
+ all=`expr $$all + 1`; \
+ case " $(XFAIL_TESTS) " in \
+ *[\ \ ]$$tst[\ \ ]*) \
+ xfail=`expr $$xfail + 1`; \
+ echo "XFAIL: $$tst"; \
+ ;; \
+ *) \
+ failed=`expr $$failed + 1`; \
+ echo "FAIL: $$tst"; \
+ ;; \
+ esac; \
+ else \
+ skip=`expr $$skip + 1`; \
+ echo "SKIP: $$tst"; \
+ fi; \
+ done; \
+ if test "$$all" -eq 1; then \
+ tests="test"; \
+ All=""; \
+ else \
+ tests="tests"; \
+ All="All "; \
+ fi; \
+ if test "$$failed" -eq 0; then \
+ if test "$$xfail" -eq 0; then \
+ banner="$$All$$all $$tests passed"; \
+ else \
+ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
+ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
+ fi; \
+ else \
+ if test "$$xpass" -eq 0; then \
+ banner="$$failed of $$all $$tests failed"; \
+ else \
+ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
+ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
+ fi; \
+ fi; \
+ dashes="$$banner"; \
+ skipped=""; \
+ if test "$$skip" -ne 0; then \
+ if test "$$skip" -eq 1; then \
+ skipped="($$skip test was not run)"; \
+ else \
+ skipped="($$skip tests were not run)"; \
+ fi; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$skipped"; \
+ fi; \
+ report=""; \
+ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
+ report="Please report to $(PACKAGE_BUGREPORT)"; \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
+ dashes="$$report"; \
+ fi; \
+ dashes=`echo "$$dashes" | sed s/./=/g`; \
+ echo "$$dashes"; \
+ echo "$$banner"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes"; \
+ test "$$failed" -eq 0; \
+ else :; fi
+
distdir: $(DISTFILES)
$(am__remove_distdir)
test -d $(distdir) || mkdir $(distdir)
@@ -369,6 +464,8 @@ distcleancheck: distclean
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
+ $(MAKE) $(AM_MAKEFLAGS) $(dist_check_SCRIPTS)
+ $(MAKE) $(AM_MAKEFLAGS) check-TESTS
check: check-am
all-am: Makefile $(SCRIPTS) $(MANS)
installdirs:
@@ -392,9 +489,11 @@ install-strip:
mostlyclean-generic:
clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@@ -460,20 +559,37 @@ uninstall-man: uninstall-man1
.MAKE: install-am install-strip
-.PHONY: all all-am am--refresh check check-am clean clean-generic dist \
- dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
- dist-zip distcheck distclean distclean-generic distcleancheck \
- distdir distuninstallcheck dvi dvi-am html html-am info \
- info-am install install-am install-data install-data-am \
- install-dist_binSCRIPTS install-dvi install-dvi-am \
- install-exec install-exec-am install-html install-html-am \
- install-info install-info-am install-man install-man1 \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
- uninstall-dist_binSCRIPTS uninstall-man uninstall-man1
+.PHONY: all all-am am--refresh check check-TESTS check-am clean \
+ clean-generic dist dist-all dist-bzip2 dist-gzip dist-lzma \
+ dist-shar dist-tarZ dist-zip distcheck distclean \
+ distclean-generic distcleancheck distdir distuninstallcheck \
+ dvi dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-dist_binSCRIPTS \
+ install-dvi install-dvi-am install-exec install-exec-am \
+ install-html install-html-am install-info install-info-am \
+ install-man install-man1 install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
+ uninstall-am uninstall-dist_binSCRIPTS uninstall-man \
+ uninstall-man1
+
+
+doc: $(pdf_files)
+
+example.pdf: example.tex
+ pdftex $<
+
+beamerexample.pdf: beamerexample.tex
+ pdflatex $<
+
+%.tex: %.tpic
+ $(srcdir)/tpic2pdftex $< > $@
+
+$(tpic_files): Makefile
+%.tpic: %.pic
+ pic -z -t $< > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff --git a/Build/source/utils/tpic2pdftex/Makefile.in.orig b/Build/source/utils/tpic2pdftex/Makefile.in.orig
deleted file mode 100644
index 3e36f0b10aa..00000000000
--- a/Build/source/utils/tpic2pdftex/Makefile.in.orig
+++ /dev/null
@@ -1,57 +0,0 @@
-# Makefile.in for tpic2pdftex
-# created from Makefile by Norbert Preining
-#
-#$Id: Makefile,v 1.21 2007/01/14 13:35:17 hahe Exp hahe $
-
-.PRECIOUS: %.tpic %.tex
-.PHONY: first all
-
-VPATH = @srcdir@
-srcdir = @srcdir@
-SHELL = @SHELL@
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-
-INSTALL = @INSTALL@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_DATA = @INSTALL_DATA@
-
-first:
- : nothing to be done
-
-all:
- : nothing to be done
-
-doc: example.pdf beamerexample.pdf
-
-example.pdf: example.tex
- pdftex $<
-
-beamerexample.pdf: beamerexample.tex
- pdflatex $<
-
-%.tpic: %.pic Makefile
- pic -z -t $< > $@
-
-%.tex: %.tpic
- $(srcdir)/tpic2pdftex $< > $@
-
-install:
- $(INSTALL) -d $(bindir)
- $(INSTALL_SCRIPT) $(srcdir)/tpic2pdftex $(bindir)/tpic2pdftex
-
-clean:
- - rm *.tex
- - rm *.log
- - rm *.toc
- - rm *.out
- - rm *.snm
- - rm *.nav
- - rm *.aux
- - rm *.tpic
-
-allclean:
- make clean
- - rm *.pdf
diff --git a/Build/source/utils/tpic2pdftex/Makefile.orig b/Build/source/utils/tpic2pdftex/Makefile.orig
deleted file mode 100644
index 99cd48d04e5..00000000000
--- a/Build/source/utils/tpic2pdftex/Makefile.orig
+++ /dev/null
@@ -1,31 +0,0 @@
-#$Id: Makefile,v 1.21 2007/01/14 13:35:17 hahe Exp hahe $
-
-.PRECIOUS: %.tpic %.tex
-
-all: example.pdf beamerexample.pdf
-
-example.pdf: example.tex
- pdftex $<
-
-beamerexample.pdf: beamerexample.tex
- pdflatex $<
-
-%.tpic: %.pic Makefile
- pic -z -t $< > $@
-
-%.tex: %.tpic
- tpic2pdftex $< > $@
-
-clean:
- - rm *.tex
- - rm *.log
- - rm *.toc
- - rm *.out
- - rm *.snm
- - rm *.nav
- - rm *.aux
- - rm *.tpic
-
-allclean:
- make clean
- - rm *.pdf
diff --git a/Build/source/utils/tpic2pdftex/beamerexample.exp b/Build/source/utils/tpic2pdftex/beamerexample.exp
new file mode 100644
index 00000000000..c6f9cc004ae
--- /dev/null
+++ b/Build/source/utils/tpic2pdftex/beamerexample.exp
@@ -0,0 +1,528 @@
+%$Id: beamerexample.pic,v 1.3 2004/04/13 21:36:47 hahe Exp hahe $
+\documentclass{beamer}
+\beamertemplatenavigationsymbolsempty
+\newcommand\gpicbox[1]{\vbox{\unvcopy\csname #1\endcsname\kern0pt}}
+%***********************************************************************
+\begin{document}
+
+\section{PDF File Generation}
+
+\frame{
+\frametitle{How a PDF File is generated\ldots}
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.576 w
+141.12 -9 m
+141.12 -13.970563 128.225801 -18 112.32 -18 c
+96.414199 -18 83.52 -13.970563 83.52 -9 c
+83.52 -4.029437 96.414199 0 112.32 0 c
+128.225801 0 141.12 -4.029437 141.12 -9 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.125in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.tex}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+114.12 -25.2 m
+112.32 -32.4 l
+110.52 -25.2 l
+114.12 -25.2 l
+B Q
+0.576 w
+112.32 -18 m
+112.32 -25.2 l
+S
+83.52 -46.8 m
+141.12 -46.8 l
+141.12 -32.4 l
+83.52 -32.4 l
+83.52 -46.8 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.550in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss tex\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+69.12 -39.6 m
+69.12 -44.570563 53.646961 -48.6 34.56 -48.6 c
+15.473039 -48.6 0 -44.570563 0 -39.6 c
+0 -34.629437 15.473039 -30.6 34.56 -30.6 c
+53.646961 -30.6 69.12 -34.629437 69.12 -39.6 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.550in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.tfm}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+76.32 -37.8 m
+83.52 -39.6 l
+76.32 -41.4 l
+76.32 -37.8 l
+B Q
+0.576 w
+69.12 -39.6 m
+76.32 -39.6 l
+S
+0.072 w
+q 0 g
+114.12 -54 m
+112.32 -61.2 l
+110.52 -54 l
+114.12 -54 l
+B Q
+0.576 w
+112.32 -46.8 m
+112.32 -54 l
+S
+141.12 -70.2 m
+141.12 -75.170563 128.225801 -79.2 112.32 -79.2 c
+96.414199 -79.2 83.52 -75.170563 83.52 -70.2 c
+83.52 -65.229437 96.414199 -61.2 112.32 -61.2 c
+128.225801 -61.2 141.12 -65.229437 141.12 -70.2 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.975in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.dvi}\hss}}%
+\only<2-3>{%%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+114.12 -86.4 m
+112.32 -93.6 l
+110.52 -86.4 l
+114.12 -86.4 l
+B Q
+0.576 w
+112.32 -79.2 m
+112.32 -86.4 l
+S
+83.52 -108 m
+141.12 -108 l
+141.12 -93.6 l
+83.52 -93.6 l
+83.52 -108 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.400in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss dvips\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+69.12 -68.4 m
+69.12 -73.370563 53.646961 -77.4 34.56 -77.4 c
+15.473039 -77.4 0 -73.370563 0 -68.4 c
+0 -63.429437 15.473039 -59.4 34.56 -59.4 c
+53.646961 -59.4 69.12 -63.429437 69.12 -68.4 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.950in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.vf}, {\ttfamily $\ast$.tfm}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+69.12 -113.4 m
+69.12 -129.305801 53.646961 -142.2 34.56 -142.2 c
+15.473039 -142.2 0 -129.305801 0 -113.4 c
+0 -97.494199 15.473039 -84.6 34.56 -84.6 c
+53.646961 -84.6 69.12 -97.494199 69.12 -113.4 c
+S
+Q
+}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by -1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.575in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily psfonts.map}\hss}}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by 1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.575in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.enc}, {\ttfamily $\ast$.pfb}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+82.368 -86.256 m
+83.52 -93.6 l
+79.056 -87.696 l
+82.368 -86.256 l
+B Q
+0.576 w
+69.12 -68.4 m
+70.92 -68.4 l
+72.144 -68.4 74.40192 -72.32832 77.976 -80.676 c
+83.232 -92.952 l
+S
+0.072 w
+q 0 g
+76.248 -109.584 m
+83.52 -108 l
+77.904 -112.824 l
+76.248 -109.584 l
+B Q
+0.576 w
+69.12 -113.4 m
+70.92 -113.4 l
+72.144 -113.4 74.34432 -112.58208 77.796 -110.844 c
+82.872 -108.288 l
+S
+0.072 w
+q 0 g
+114.12 -115.2 m
+112.32 -122.4 l
+110.52 -115.2 l
+114.12 -115.2 l
+B Q
+0.576 w
+112.32 -108 m
+112.32 -115.2 l
+S
+141.12 -131.4 m
+141.12 -136.370563 128.225801 -140.4 112.32 -140.4 c
+96.414199 -140.4 83.52 -136.370563 83.52 -131.4 c
+83.52 -126.429437 96.414199 -122.4 112.32 -122.4 c
+128.225801 -122.4 141.12 -126.429437 141.12 -131.4 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.825in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.ps}\hss}}%
+\relax}%%
+\only<3>{%%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+114.12 -147.6 m
+112.32 -154.8 l
+110.52 -147.6 l
+114.12 -147.6 l
+B Q
+0.576 w
+112.32 -140.4 m
+112.32 -147.6 l
+S
+83.52 -169.2 m
+141.12 -169.2 l
+141.12 -154.8 l
+83.52 -154.8 l
+83.52 -169.2 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 2.250in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss ps2pdf\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+114.12 -176.4 m
+112.32 -183.6 l
+110.52 -176.4 l
+114.12 -176.4 l
+B Q
+0.576 w
+112.32 -169.2 m
+112.32 -176.4 l
+S
+141.12 -192.6 m
+141.12 -197.570563 128.225801 -201.6 112.32 -201.6 c
+96.414199 -201.6 83.52 -197.570563 83.52 -192.6 c
+83.52 -187.629437 96.414199 -183.6 112.32 -183.6 c
+128.225801 -183.6 141.12 -187.629437 141.12 -192.6 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 2.675in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.pdf}\hss}}%
+\relax}%%
+\only<4-| handout:0>{%%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+114.12 -86.4 m
+112.32 -93.6 l
+110.52 -86.4 l
+114.12 -86.4 l
+B Q
+0.576 w
+112.32 -79.2 m
+112.32 -86.4 l
+S
+83.52 -108 m
+141.12 -108 l
+141.12 -93.6 l
+83.52 -93.6 l
+83.52 -108 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.400in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss dvipdfm\textcolor{black!50}{x}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+69.12 -68.4 m
+69.12 -73.370563 53.646961 -77.4 34.56 -77.4 c
+15.473039 -77.4 0 -73.370563 0 -68.4 c
+0 -63.429437 15.473039 -59.4 34.56 -59.4 c
+53.646961 -59.4 69.12 -63.429437 69.12 -68.4 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.950in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.vf}, {\ttfamily $\ast$.tfm}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+69.12 -113.4 m
+69.12 -129.305801 53.646961 -142.2 34.56 -142.2 c
+15.473039 -142.2 0 -129.305801 0 -113.4 c
+0 -97.494199 15.473039 -84.6 34.56 -84.6 c
+53.646961 -84.6 69.12 -97.494199 69.12 -113.4 c
+S
+Q
+}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by -1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.575in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily psfonts.map}\hss}}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by 1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.575in
+ \rlap{\kern 0.480in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.enc}, {\ttfamily $\ast$.pfb}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+82.368 -86.256 m
+83.52 -93.6 l
+79.056 -87.696 l
+82.368 -86.256 l
+B Q
+0.576 w
+69.12 -68.4 m
+70.92 -68.4 l
+72.144 -68.4 74.40192 -72.32832 77.976 -80.676 c
+83.232 -92.952 l
+S
+0.072 w
+q 0 g
+76.248 -109.584 m
+83.52 -108 l
+77.904 -112.824 l
+76.248 -109.584 l
+B Q
+0.576 w
+69.12 -113.4 m
+70.92 -113.4 l
+72.144 -113.4 74.34432 -112.58208 77.796 -110.844 c
+82.872 -108.288 l
+S
+0.072 w
+q 0 g
+114.12 -115.2 m
+112.32 -122.4 l
+110.52 -115.2 l
+114.12 -115.2 l
+B Q
+0.576 w
+112.32 -108 m
+112.32 -115.2 l
+S
+141.12 -131.4 m
+141.12 -136.370563 128.225801 -140.4 112.32 -140.4 c
+96.414199 -140.4 83.52 -136.370563 83.52 -131.4 c
+83.52 -126.429437 96.414199 -122.4 112.32 -122.4 c
+128.225801 -122.4 141.12 -126.429437 141.12 -131.4 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.825in
+ \rlap{\kern 1.560in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.pdf}\hss}}%
+\relax}%%
+\only<5->{%%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+299.52 -9 m
+299.52 -13.970563 286.625801 -18 270.72 -18 c
+254.814199 -18 241.92 -13.970563 241.92 -9 c
+241.92 -4.029437 254.814199 0 270.72 0 c
+286.625801 0 299.52 -4.029437 299.52 -9 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.125in
+ \rlap{\kern 3.760in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.tex}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+272.52 -25.2 m
+270.72 -32.4 l
+268.92 -25.2 l
+272.52 -25.2 l
+B Q
+0.576 w
+270.72 -18 m
+270.72 -25.2 l
+S
+241.92 -108 m
+299.52 -108 l
+299.52 -32.4 l
+241.92 -32.4 l
+241.92 -108 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.975in
+ \rlap{\kern 3.760in\lower\graphtemp\hbox to 0pt{\hss pdftex\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+227.52 -68.4 m
+227.52 -73.370563 212.046961 -77.4 192.96 -77.4 c
+173.873039 -77.4 158.4 -73.370563 158.4 -68.4 c
+158.4 -63.429437 173.873039 -59.4 192.96 -59.4 c
+212.046961 -59.4 227.52 -63.429437 227.52 -68.4 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.950in
+ \rlap{\kern 2.680in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.vf}, {\ttfamily $\ast$.tfm}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+234.72 -66.6 m
+241.92 -68.4 l
+234.72 -70.2 l
+234.72 -66.6 l
+B Q
+0.576 w
+227.52 -68.4 m
+234.72 -68.4 l
+S
+227.52 -113.4 m
+227.52 -129.305801 212.046961 -142.2 192.96 -142.2 c
+173.873039 -142.2 158.4 -129.305801 158.4 -113.4 c
+158.4 -97.494199 173.873039 -84.6 192.96 -84.6 c
+212.046961 -84.6 227.52 -97.494199 227.52 -113.4 c
+S
+Q
+}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by -1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.575in
+ \rlap{\kern 2.680in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily pdftex.map}\hss}}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by 1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.575in
+ \rlap{\kern 2.680in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily $\ast$.enc}, {\ttfamily $\ast$.pfb}\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+234.648 -109.584 m
+241.92 -108 l
+236.304 -112.824 l
+234.648 -109.584 l
+B Q
+0.576 w
+227.52 -113.4 m
+229.32 -113.4 l
+230.544 -113.4 232.74432 -112.58208 236.196 -110.844 c
+241.272 -108.288 l
+S
+0.072 w
+q 0 g
+272.52 -115.2 m
+270.72 -122.4 l
+268.92 -115.2 l
+272.52 -115.2 l
+B Q
+0.576 w
+270.72 -108 m
+270.72 -115.2 l
+S
+299.52 -131.4 m
+299.52 -136.370563 286.625801 -140.4 270.72 -140.4 c
+254.814199 -140.4 241.92 -136.370563 241.92 -131.4 c
+241.92 -126.429437 254.814199 -122.4 270.72 -122.4 c
+286.625801 -122.4 299.52 -126.429437 299.52 -131.4 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.825in
+ \rlap{\kern 3.760in\lower\graphtemp\hbox to 0pt{\hss {\ttfamily foo.pdf}\hss}}%
+\relax}%%
+ \hbox{\vrule depth2.800in width0pt height 0pt}%
+ \kern 4.160in
+ }%
+}%
+
+\centering
+\leavevmode\gpicbox{graph}
+}
+
+\end{document}
diff --git a/Build/source/utils/tpic2pdftex/configure.ac.orig b/Build/source/utils/tpic2pdftex/configure.ac.orig
deleted file mode 100644
index 9cc1eef3cf3..00000000000
--- a/Build/source/utils/tpic2pdftex/configure.ac.orig
+++ /dev/null
@@ -1,15 +0,0 @@
-dnl configure.ac
-dnl
-dnl Copyright 2007 by Norbert Preining.
-dnl
-dnl This file was generated for the tpic2pdftex program in the TeX Live
-dnl distribution.
-dnl GNU General Public License
-dnl
-AC_INIT(tpic2pdftex, 1.94, hartmut_henkel@gmx.de)
-
-AC_CONFIG_FILES(Makefile)
-
-AC_PROG_INSTALL
-
-AC_OUTPUT
diff --git a/Build/source/utils/tpic2pdftex/example.exp b/Build/source/utils/tpic2pdftex/example.exp
new file mode 100644
index 00000000000..cc45c83130a
--- /dev/null
+++ b/Build/source/utils/tpic2pdftex/example.exp
@@ -0,0 +1,1508 @@
+%$Id: example.pic,v 1.19 2007/01/14 14:03:51 hahe Exp hahe $
+%***********************************************************************
+\pdfcompresslevel=0
+\def\gpicbox#1{\vbox{\unvbox\csname #1\endcsname\kern0pt}}
+\newcount\piccount\piccount=0
+\def\sep{\advance\piccount by 1%
+ \kern5pt\hrule\kern5pt\rlap{\smash{\lower10pt\hbox{\the\piccount}}}}
+\sep
+%***********************************************************************
+% 1
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+1.008 w
+q [0 3.6] 0 d
+0 -36 m
+54 -36 l
+S Q
+q [0 3.6] 0 d
+54 -36 m
+54 0 l
+S Q
+q [0 3.6] 0 d
+54 0 m
+0 0 l
+S Q
+q [0 3.6] 0 d
+0 0 m
+0 -36 l
+S Q
+0.072 w
+q 0 g
+82.8 -16.2 m
+90 -18 l
+82.8 -19.8 l
+82.8 -16.2 l
+B Q
+0.576 w
+54 -18 m
+82.8 -18 l
+S
+126 -18 m
+126 -27.941125 117.941125 -36 108 -36 c
+98.058875 -36 90 -27.941125 90 -18 c
+90 -8.058875 98.058875 0 108 0 c
+117.941125 0 126 -8.058875 126 -18 c
+h q 0.9 g
+f Q
+126 -18 m
+126 -18 l
+S
+125.928 -16.488 m
+125.928 -16.488 l
+S
+125.784 -15.048 m
+125.784 -15.048 l
+S
+125.424 -13.608 m
+125.424 -13.608 l
+S
+124.992 -12.168 m
+124.992 -12.168 l
+S
+124.488 -10.8 m
+124.488 -10.8 l
+S
+123.84 -9.432 m
+123.84 -9.432 l
+S
+123.048 -8.136 m
+123.048 -8.136 l
+S
+122.184 -6.912 m
+122.184 -6.912 l
+S
+121.248 -5.832 m
+121.248 -5.832 l
+S
+120.168 -4.752 m
+120.168 -4.752 l
+S
+119.088 -3.816 m
+119.088 -3.816 l
+S
+117.864 -2.952 m
+117.864 -2.952 l
+S
+116.568 -2.16 m
+116.568 -2.16 l
+S
+115.2 -1.512 m
+115.2 -1.512 l
+S
+113.832 -1.008 m
+113.832 -1.008 l
+S
+112.392 -0.576 m
+112.392 -0.576 l
+S
+110.952 -0.216 m
+110.952 -0.216 l
+S
+109.512 -0.072 m
+109.512 -0.072 l
+S
+108 0 m
+108 0 l
+S
+106.488 -0.072 m
+106.488 -0.072 l
+S
+105.048 -0.216 m
+105.048 -0.216 l
+S
+103.608 -0.576 m
+103.608 -0.576 l
+S
+102.168 -1.008 m
+102.168 -1.008 l
+S
+100.8 -1.512 m
+100.8 -1.512 l
+S
+99.432 -2.16 m
+99.432 -2.16 l
+S
+98.136 -2.952 m
+98.136 -2.952 l
+S
+96.912 -3.816 m
+96.912 -3.816 l
+S
+95.832 -4.752 m
+95.832 -4.752 l
+S
+94.752 -5.832 m
+94.752 -5.832 l
+S
+93.816 -6.912 m
+93.816 -6.912 l
+S
+92.952 -8.136 m
+92.952 -8.136 l
+S
+92.16 -9.432 m
+92.16 -9.432 l
+S
+91.512 -10.8 m
+91.512 -10.8 l
+S
+91.008 -12.168 m
+91.008 -12.168 l
+S
+90.576 -13.608 m
+90.576 -13.608 l
+S
+90.216 -15.048 m
+90.216 -15.048 l
+S
+90.072 -16.488 m
+90.072 -16.488 l
+S
+90 -18 m
+90 -18 l
+S
+90.072 -19.512 m
+90.072 -19.512 l
+S
+90.216 -20.952 m
+90.216 -20.952 l
+S
+90.576 -22.392 m
+90.576 -22.392 l
+S
+91.008 -23.832 m
+91.008 -23.832 l
+S
+91.512 -25.2 m
+91.512 -25.2 l
+S
+92.16 -26.568 m
+92.16 -26.568 l
+S
+92.952 -27.864 m
+92.952 -27.864 l
+S
+93.816 -29.088 m
+93.816 -29.088 l
+S
+94.752 -30.168 m
+94.752 -30.168 l
+S
+95.832 -31.248 m
+95.832 -31.248 l
+S
+96.912 -32.184 m
+96.912 -32.184 l
+S
+98.136 -33.048 m
+98.136 -33.048 l
+S
+99.432 -33.84 m
+99.432 -33.84 l
+S
+100.8 -34.488 m
+100.8 -34.488 l
+S
+102.168 -34.992 m
+102.168 -34.992 l
+S
+103.608 -35.424 m
+103.608 -35.424 l
+S
+105.048 -35.784 m
+105.048 -35.784 l
+S
+106.488 -35.928 m
+106.488 -35.928 l
+S
+108 -36 m
+108 -36 l
+S
+109.512 -35.928 m
+109.512 -35.928 l
+S
+110.952 -35.784 m
+110.952 -35.784 l
+S
+112.392 -35.424 m
+112.392 -35.424 l
+S
+113.832 -34.992 m
+113.832 -34.992 l
+S
+115.2 -34.488 m
+115.2 -34.488 l
+S
+116.568 -33.84 m
+116.568 -33.84 l
+S
+117.864 -33.048 m
+117.864 -33.048 l
+S
+119.088 -32.184 m
+119.088 -32.184 l
+S
+120.168 -31.248 m
+120.168 -31.248 l
+S
+121.248 -30.168 m
+121.248 -30.168 l
+S
+122.184 -29.088 m
+122.184 -29.088 l
+S
+123.048 -27.864 m
+123.048 -27.864 l
+S
+123.84 -26.568 m
+123.84 -26.568 l
+S
+124.488 -25.2 m
+124.488 -25.2 l
+S
+124.992 -23.832 m
+124.992 -23.832 l
+S
+125.424 -22.392 m
+125.424 -22.392 l
+S
+125.784 -20.952 m
+125.784 -20.952 l
+S
+125.928 -19.512 m
+125.928 -19.512 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.250in
+ \rlap{\kern 1.500in\lower\graphtemp\hbox to 0pt{\hss Hello\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+154.8 -16.2 m
+162 -18 l
+154.8 -19.8 l
+154.8 -16.2 l
+B Q
+0.576 w
+126 -18 m
+154.8 -18 l
+S
+198 -18 m
+198 -27.941125 189.941125 -36 180 -36 c
+170.058875 -36 162 -27.941125 162 -18 c
+162 -8.058875 170.058875 0 180 0 c
+189.941125 0 198 -8.058875 198 -18 c
+h q 0.9 g
+B Q
+0.072 w
+q 0 g
+226.8 -16.2 m
+234 -18 l
+226.8 -19.8 l
+226.8 -16.2 l
+B Q
+0.576 w
+198 -18 m
+226.8 -18 l
+S
+270 -18 m
+270 -27.941125 261.941125 -36 252 -36 c
+242.058875 -36 234 -27.941125 234 -18 c
+234 -8.058875 242.058875 0 252 0 c
+261.941125 0 270 -8.058875 270 -18 c
+h q 0.1 g
+B Q
+0.072 w
+q 0 g
+298.8 -16.2 m
+306 -18 l
+298.8 -19.8 l
+298.8 -16.2 l
+B Q
+0.576 w
+270 -18 m
+298.8 -18 l
+S
+q [7.2 8.4] 0 d
+306 -36 m
+360 -36 l
+S Q
+q [7.2 7.2] 0 d
+360 -36 m
+360 0 l
+S Q
+q [7.2 8.4] 0 d
+360 0 m
+306 0 l
+S Q
+q [7.2 7.2] 0 d
+306 0 m
+306 -36 l
+S Q
+Q
+}%
+ \hbox{\vrule depth0.500in width0pt height 0pt}%
+ \kern 5.000in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 2
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.576 w
+54 -18 m
+54 -27.941125 41.911688 -36 27 -36 c
+12.088312 -36 0 -27.941125 0 -18 c
+0 -8.058875 12.088312 0 27 0 c
+41.911688 0 54 -8.058875 54 -18 c
+S
+0.072 w
+q 0 g
+82.8 -16.2 m
+90 -18 l
+82.8 -19.8 l
+82.8 -16.2 l
+B Q
+0.576 w
+54 -18 m
+82.8 -18 l
+S
+Q
+}%
+\pdfliteral {q 1 0 0 RG}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+2.016 w
+143.496 -14.472 m
+143.496 -14.472 l
+S
+141.984 -11.232 m
+141.984 -11.232 l
+S
+139.824 -8.424 m
+139.824 -8.424 l
+S
+137.16 -6.048 m
+137.16 -6.048 l
+S
+134.208 -4.104 m
+134.208 -4.104 l
+S
+130.968 -2.592 m
+130.968 -2.592 l
+S
+127.584 -1.44 m
+127.584 -1.44 l
+S
+124.128 -0.648 m
+124.128 -0.648 l
+S
+120.528 -0.144 m
+120.528 -0.144 l
+S
+117 0 m
+117 0 l
+S
+113.4 -0.144 m
+113.4 -0.144 l
+S
+109.872 -0.648 m
+109.872 -0.648 l
+S
+106.416 -1.44 m
+106.416 -1.44 l
+S
+103.032 -2.592 m
+103.032 -2.592 l
+S
+99.792 -4.104 m
+99.792 -4.104 l
+S
+96.84 -6.048 m
+96.84 -6.048 l
+S
+94.176 -8.424 m
+94.176 -8.424 l
+S
+91.944 -11.232 m
+91.944 -11.232 l
+S
+90.504 -14.472 m
+90.504 -14.472 l
+S
+90 -18 m
+90 -18 l
+S
+90.504 -21.528 m
+90.504 -21.528 l
+S
+92.016 -24.768 m
+92.016 -24.768 l
+S
+94.176 -27.576 m
+94.176 -27.576 l
+S
+96.84 -29.952 m
+96.84 -29.952 l
+S
+99.792 -31.896 m
+99.792 -31.896 l
+S
+103.032 -33.408 m
+103.032 -33.408 l
+S
+106.416 -34.56 m
+106.416 -34.56 l
+S
+109.872 -35.352 m
+109.872 -35.352 l
+S
+113.472 -35.856 m
+113.472 -35.856 l
+S
+117 -36 m
+117 -36 l
+S
+120.6 -35.856 m
+120.6 -35.856 l
+S
+124.128 -35.352 m
+124.128 -35.352 l
+S
+127.584 -34.56 m
+127.584 -34.56 l
+S
+130.968 -33.408 m
+130.968 -33.408 l
+S
+134.208 -31.896 m
+134.208 -31.896 l
+S
+137.16 -29.952 m
+137.16 -29.952 l
+S
+139.824 -27.576 m
+139.824 -27.576 l
+S
+142.056 -24.768 m
+142.056 -24.768 l
+S
+143.496 -21.528 m
+143.496 -21.528 l
+S
+144 -18 m
+144 -18 l
+S
+Q
+}%
+\pdfliteral {Q}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+2.016 w
+0.072 w
+q 0 g
+172.8 -16.2 m
+180 -18 l
+172.8 -19.8 l
+172.8 -16.2 l
+B Q
+0.576 w
+144 -18 m
+172.8 -18 l
+S
+232.02864 -11.238401 m
+232.334929 -11.742368 232.610282 -12.264498 232.853174 -12.801899 c
+S
+230.975377 -9.770722 m
+231.349857 -10.253474 231.696602 -10.757114 232.013936 -11.279209 c
+S
+225.693804 -4.98167 m
+226.708489 -5.626132 227.671516 -6.348532 228.574174 -7.142335 c
+S
+219.281172 -1.964592 m
+220.418948 -2.349286 221.534033 -2.798082 222.621076 -3.308826 c
+S
+212.333894 -0.40708 m
+213.522876 -0.565692 214.703718 -0.780277 215.872486 -1.05012 c
+S
+205.200606 -0.040028 m
+206.398633 0.013299 207.598438 0.013343 208.796469 -0.039898 c
+S
+198.12434 -1.050853 m
+199.293321 -0.780855 200.474385 -0.566138 201.663596 -0.407415 c
+S
+191.376004 -3.310198 m
+192.463073 -2.799308 193.578194 -2.350371 194.716014 -1.965543 c
+S
+185.424044 -7.143902 m
+186.326784 -6.349863 187.289921 -5.627248 188.304741 -4.982594 c
+S
+181.912252 -11.28219 m
+182.229476 -10.760023 182.576116 -10.256303 182.950494 -9.773467 c
+S
+181.145542 -12.80474 m
+181.388313 -12.2673 181.663546 -11.745124 181.969719 -11.241103 c
+S
+180.135449 -19.799705 m
+179.955148 -18.608668 179.954849 -17.397298 180.134561 -16.206172 c
+S
+181.97265 -24.763719 m
+181.66638 -24.259979 181.391022 -23.738083 181.1481 -23.20092 c
+S
+183.025934 -26.230968 m
+182.651519 -25.748432 182.304817 -25.245018 181.987502 -24.723157 c
+S
+188.309223 -31.020252 m
+187.294602 -30.376051 186.331609 -29.653929 185.428954 -28.860415 c
+S
+194.721259 -34.03623 m
+193.583624 -33.651685 192.468666 -33.203056 191.381736 -32.692495 c
+S
+201.66927 -35.665342 m
+200.480162 -35.506814 199.29919 -35.292302 198.130289 -35.022521 c
+S
+208.802412 -36.031837 m
+207.604389 -36.085254 206.404583 -36.085387 205.206549 -36.032236 c
+S
+215.878435 -35.020506 m
+214.709586 -35.290565 213.528652 -35.505355 212.339568 -35.664162 c
+S
+222.626779 -32.688494 m
+221.539616 -33.199557 220.424387 -33.648652 219.286448 -34.033624 c
+S
+228.579048 -28.853377 m
+227.676327 -29.647684 226.713181 -30.370559 225.698325 -31.015458 c
+S
+232.08916 -24.715485 m
+231.771918 -25.237881 231.425238 -25.741821 231.050797 -26.224868 c
+S
+232.855725 -23.192455 m
+232.612982 -23.730136 232.33775 -24.25255 232.031554 -24.756801 c
+S
+233.864098 -16.197307 m
+234.044704 -17.388339 234.045302 -18.599749 233.865871 -19.790959 c
+S
+Q
+}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by -1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 0.250in
+ \rlap{\kern 2.875in\lower\graphtemp\hbox to 0pt{\hss $\sqrt{3/7\cdot{2\over5}}$\hss}}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by 1
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 0.250in
+ \rlap{\kern 2.875in\lower\graphtemp\hbox to 0pt{\hss No.~2\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+262.8 -16.2 m
+270 -18 l
+262.8 -19.8 l
+262.8 -16.2 l
+B Q
+0.576 w
+234 -18 m
+262.8 -18 l
+S
+Q
+}%
+\pdfliteral {q 0 0 1 RG}%
+\pdfliteral { 0.5 0.5 0.0 rg}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+324 -18 m
+324 -27.941125 315.941125 -36 306 -36 c
+296.058875 -36 288 -27.941125 288 -18 c
+288 -8.058875 296.058875 0 306 0 c
+315.941125 0 324 -8.058875 324 -18 c
+h q 0.95 g
+f Q
+306 -18 m
+306 -27.941125 297.941125 -36 288 -36 c
+278.058875 -36 270 -27.941125 270 -18 c
+270 -8.058875 278.058875 0 288 0 c
+297.941125 0 306 -8.058875 306 -18 c
+h q 0.95 g
+f Q
+306 -18 m
+306 -27.941125 297.941125 -36 288 -36 c
+278.058875 -36 270 -27.941125 270 -18 c
+270 -8.058875 278.058875 0 288 0 c
+297.941125 0 306 -8.058875 306 -18 c
+h q 0.95 g
+f Q
+324 -18 m
+324 -27.941125 315.941125 -36 306 -36 c
+296.058875 -36 288 -27.941125 288 -18 c
+288 -8.058875 296.058875 0 306 0 c
+315.941125 0 324 -8.058875 324 -18 c
+h q 0.95 g
+f Q
+1.008 w
+q 0.95 g
+324 -18 m
+324 -18 l
+270 -18 l
+270 -18 l
+324 -18 l
+f Q
+q 0.95 g
+306 -36 m
+306 0 l
+288 0 l
+288 -36 l
+306 -36 l
+f Q
+0.576 w
+288.000006 -36 m
+278.058876 -36.000003 269.999997 -27.941124 270 -17.999994 c
+S
+270 -18.000006 m
+269.999997 -8.058876 278.058876 0.000003 288.000006 0 c
+S
+306.000006 0 m
+315.941129 -0.000003 324 -8.058877 324 -18 c
+S
+324 -18 m
+324 -27.941123 315.941129 -35.999997 306.000006 -36 c
+S
+270 -18 m
+270 -18 l
+S
+288 0 m
+306 0 l
+S
+324 -18 m
+324 -18 l
+S
+306 -36 m
+288 -36 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.250in
+ \rlap{\kern 4.125in\lower\graphtemp\hbox to 0pt{\hss Hello\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+352.8 -16.2 m
+360 -18 l
+352.8 -19.8 l
+352.8 -16.2 l
+B Q
+0.576 w
+324 -18 m
+352.8 -18 l
+S
+Q
+}%
+\pdfliteral {Q}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+q 0.8 g
+360 -36 m
+414 -36 l
+414 0 l
+360 0 l
+360 -36 l
+f Q
+q [0 3.6] 0 d
+360 -36 m
+414 -36 l
+S Q
+q [0 3.6] 0 d
+414 -36 m
+414 0 l
+S Q
+q [0 3.6] 0 d
+414 0 m
+360 0 l
+S Q
+q [0 3.6] 0 d
+360 0 m
+360 -36 l
+S Q
+Q
+}%
+ \hbox{\vrule depth0.500in width0pt height 0pt}%
+ \kern 5.750in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 3
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.576 w
+0 -36 m
+36 -36 l
+S
+54 -18 m
+54 -27.941123 45.941129 -35.999997 36.000006 -36 c
+S
+54 -18.000006 m
+53.999997 -8.058876 62.058876 0.000003 72.000006 0 c
+S
+72 0 m
+108 0 l
+S
+Q
+}%
+ \hbox{\vrule depth0.500in width0pt height 0pt}%
+ \kern 1.500in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 4
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+64.8 -34.2 m
+72 -36 l
+64.8 -37.8 l
+64.8 -34.2 l
+B Q
+0.576 w
+0 0 m
+36 0 l
+60.48 0 60.48 -5.76 36 -18 c
+11.52 -30.24 11.4048 -36 35.64 -36 c
+71.28 -36 l
+S
+0.072 w
+q 0 g
+64.8 -34.2 m
+72 -36 l
+64.8 -37.8 l
+64.8 -34.2 l
+B Q
+0.576 w
+q [3.6 4.] 0 d
+0 0 m
+72 0 l
+S Q
+q [3.6 4.089845] 0 d
+72 0 m
+0 -36 l
+S Q
+q [3.6 4.05] 0 d
+0 -36 m
+64.8 -36 l
+S Q
+Q
+}%
+ \hbox{\vrule depth0.500in width0pt height 0pt}%
+ \kern 1.000in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 5
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral {q 0 1 0 RG}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+1.8 -64.8 m
+0 -72 l
+-1.728 -64.8 l
+1.8 -64.8 l
+B Q
+0.576 w
+q [3.6] 0 d
+0 0 m
+36 0 l
+60.48 0 60.48 -5.76 36 -18 c
+11.52 -30.24 0 -41.6448 0 -53.64 c
+0 -71.28 l
+S
+Q
+Q
+}%
+\pdfliteral {Q}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+1.8 -64.8 m
+0 -72 l
+-1.728 -64.8 l
+1.8 -64.8 l
+B Q
+0.576 w
+q [0 1.44] 0 d
+0 0 m
+72 0 l
+S Q
+q [0 1.437472] 0 d
+72 0 m
+0 -36 l
+S Q
+q [0 1.44] 0 d
+0 -36 m
+0 -64.8 l
+S Q
+Q
+}%
+ \hbox{\vrule depth1.000in width0pt height 0pt}%
+ \kern 1.000in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 6
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+59.184 -20.664 m
+63 -27 l
+56.664 -23.184 l
+59.184 -20.664 l
+B Q
+0.576 w
+27 -27 m
+9.036 -27 l
+-3.17952 -27 -3.17952 -21.25152 9.036 -9.036 c
+21.25152 3.17952 32.67936 3.26016 44.748 -8.784 c
+62.496 -26.496 l
+S
+Q
+}%
+ \hbox{\vrule depth0.375in width0pt height 0pt}%
+ \kern 0.875in
+ }%
+}%
+\centerline{A\vrule\gpicbox{graph}\vrule B}
+\sep
+%***********************************************************************
+% 7
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+1.8 -28.8 m
+0 -36 l
+-1.728 -28.8 l
+1.8 -28.8 l
+B Q
+0.576 w
+0 -36 m
+18 -36 l
+30.24 -36 36 -30.24 36 -18 c
+36 -5.76 30.24 0 18 0 c
+5.76 0 0 -5.6448 0 -17.64 c
+0 -35.28 l
+S
+0.072 w
+q 0 g
+1.8 -28.8 m
+0 -36 l
+-1.728 -28.8 l
+1.8 -28.8 l
+B Q
+0.576 w
+q [0 3.6] 0 d
+0 -36 m
+36 -36 l
+S Q
+q [0 3.6] 0 d
+36 -36 m
+36 0 l
+S Q
+q [0 3.6] 0 d
+36 0 m
+0 0 l
+S Q
+q [0 3.6] 0 d
+0 0 m
+0 -28.8 l
+S Q
+Q
+}%
+ \hbox{\vrule depth0.500in width0pt height 0pt}%
+ \kern 0.500in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 8
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.576 w
+64.8 -18 m
+64.8 -27.941125 56.741125 -36 46.8 -36 c
+36.858875 -36 28.8 -27.941125 28.8 -18 c
+28.8 -8.058875 36.858875 0 46.8 0 c
+56.741125 0 64.8 -8.058875 64.8 -18 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.250in
+ \rlap{\kern 0.650in\lower\graphtemp\hbox to 0pt{\hss x\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+36 -61.2 m
+36 -71.141125 27.941125 -79.2 18 -79.2 c
+8.058875 -79.2 0 -71.141125 0 -61.2 c
+0 -51.258875 8.058875 -43.2 18 -43.2 c
+27.941125 -43.2 36 -51.258875 36 -61.2 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.850in
+ \rlap{\kern 0.250in\lower\graphtemp\hbox to 0pt{\hss y\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+93.6 -61.2 m
+93.6 -71.141125 85.541125 -79.2 75.6 -79.2 c
+65.658875 -79.2 57.6 -71.141125 57.6 -61.2 c
+57.6 -51.258875 65.658875 -43.2 75.6 -43.2 c
+85.541125 -43.2 93.6 -51.258875 93.6 -61.2 c
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.850in
+ \rlap{\kern 1.050in\lower\graphtemp\hbox to 0pt{\hss z\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+33.48 -41.256 m
+28.008 -46.224 l
+30.456 -39.24 l
+33.48 -41.256 l
+B Q
+0.576 w
+36.792 -32.976 m
+31.968 -40.248 l
+S
+0.072 w
+q 0 g
+50.4 -59.4 m
+57.6 -61.2 l
+50.4 -63 l
+50.4 -59.4 l
+B Q
+0.576 w
+36 -61.2 m
+50.4 -61.2 l
+S
+0.072 w
+q 0 g
+59.256 -39.96 m
+56.808 -32.976 l
+62.28 -37.944 l
+59.256 -39.96 l
+B Q
+0.576 w
+65.592 -46.224 m
+60.768 -38.952 l
+S
+Q
+}%
+ \hbox{\vrule depth1.100in width0pt height 0pt}%
+ \kern 1.300in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+% 9
+% example borrowed from file cstr116.pdf or cstr116.ps:
+% PIC --- A Graphics Language for Typesetting, User Manual,
+% Brian W. Kernighan, Revised, May, 1991
+\expandafter\ifx\csname graph\endcsname\relax
+ \csname newbox\expandafter\endcsname\csname graph\endcsname
+\fi
+\ifx\graphtemp\undefined
+ \csname newdimen\endcsname\graphtemp
+\fi
+\expandafter\setbox\csname graph\endcsname
+ =\vtop{\vskip 0pt\hbox{%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.576 w
+43.2 -43.2 m
+64.8 -43.2 l
+64.8 -28.8 l
+43.2 -28.8 l
+43.2 -43.2 l
+S
+43.2 -57.6 m
+64.8 -57.6 l
+64.8 -43.2 l
+43.2 -43.2 l
+43.2 -57.6 l
+S
+43.2 -72 m
+64.8 -72 l
+64.8 -57.6 l
+43.2 -57.6 l
+43.2 -72 l
+S
+43.2 -115.2 m
+64.8 -115.2 l
+64.8 -72 l
+43.2 -72 l
+43.2 -115.2 l
+S
+Q
+}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by -2
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.300in
+ \rlap{\kern 0.750in\lower\graphtemp\hbox to 0pt{\hss .\hss}}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.300in
+ \rlap{\kern 0.750in\lower\graphtemp\hbox to 0pt{\hss .\hss}}%
+ \graphtemp=\baselineskip
+ \multiply\graphtemp by 2
+ \divide\graphtemp by 2
+ \advance\graphtemp by .5ex
+ \advance\graphtemp by 1.300in
+ \rlap{\kern 0.750in\lower\graphtemp\hbox to 0pt{\hss .\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+43.2 -129.6 m
+64.8 -129.6 l
+64.8 -115.2 l
+43.2 -115.2 l
+43.2 -129.6 l
+S
+43.2 -144 m
+64.8 -144 l
+64.8 -129.6 l
+43.2 -129.6 l
+43.2 -144 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.500in
+ \rlap{\kern 0.300in\lower\graphtemp\hbox to 0pt{\hss hashtab:\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+93.6 -14.4 m
+129.6 -14.4 l
+129.6 0 l
+93.6 0 l
+93.6 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 1.550in\lower\graphtemp\hbox to 0pt{\hss ...\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+129.6 -14.4 m
+144 -14.4 l
+144 0 l
+129.6 0 l
+129.6 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 1.900in\lower\graphtemp\hbox to 0pt{\hss n1\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+144 -14.4 m
+165.6 -14.4 l
+165.6 0 l
+144 0 l
+144 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 2.150in\lower\graphtemp\hbox to 0pt{\hss d1\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+165.6 -14.4 m
+194.4 -14.4 l
+194.4 0 l
+165.6 0 l
+165.6 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 2.500in\lower\graphtemp\hbox to 0pt{\hss n3\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+194.4 -14.4 m
+216 -14.4 l
+216 0 l
+194.4 0 l
+194.4 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 2.850in\lower\graphtemp\hbox to 0pt{\hss d3\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+216 -14.4 m
+244.8 -14.4 l
+244.8 0 l
+216 0 l
+216 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 3.200in\lower\graphtemp\hbox to 0pt{\hss ...\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+244.8 -14.4 m
+280.8 -14.4 l
+280.8 0 l
+244.8 0 l
+244.8 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 3.650in\lower\graphtemp\hbox to 0pt{\hss n2\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+280.8 -14.4 m
+295.2 -14.4 l
+295.2 0 l
+280.8 0 l
+280.8 -14.4 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 4.000in\lower\graphtemp\hbox to 0pt{\hss d2\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+82.8 -48.6 m
+90 -50.4 l
+82.8 -52.2 l
+82.8 -48.6 l
+B Q
+0.576 w
+54 -50.4 m
+82.8 -50.4 l
+S
+90 -54 m
+100.8 -54 l
+100.8 -46.8 l
+90 -46.8 l
+90 -54 l
+S
+90 -61.2 m
+100.8 -61.2 l
+100.8 -54 l
+90 -54 l
+90 -61.2 l
+S
+90 -68.4 m
+100.8 -68.4 l
+100.8 -61.2 l
+90 -61.2 l
+90 -68.4 l
+S
+0.072 w
+q 0 g
+127.8 -19.44 m
+133.2 -14.4 l
+130.752 -21.384 l
+127.8 -19.44 l
+B Q
+0.576 w
+95.4 -50.4 m
+102.6 -50.4 l
+107.496 -50.4 113.4864 -44.73216 121.32 -32.688 c
+132.84 -14.976 l
+S
+0.072 w
+q 0 g
+141.984 -19.224 m
+147.6 -14.4 l
+144.936 -21.312 l
+141.984 -19.224 l
+B Q
+0.576 w
+95.4 -57.6 m
+106.2 -57.6 l
+113.544 -57.6 121.82688 -50.78016 132.084 -36.288 c
+147.168 -14.976 l
+S
+0.072 w
+q 0 g
+124.2 -63 m
+131.4 -64.8 l
+124.2 -66.6 l
+124.2 -63 l
+B Q
+0.576 w
+95.4 -64.8 m
+124.2 -64.8 l
+S
+131.4 -68.4 m
+142.2 -68.4 l
+142.2 -61.2 l
+131.4 -61.2 l
+131.4 -68.4 l
+S
+131.4 -75.6 m
+142.2 -75.6 l
+142.2 -68.4 l
+131.4 -68.4 l
+131.4 -75.6 l
+S
+131.4 -82.8 m
+142.2 -82.8 l
+142.2 -75.6 l
+131.4 -75.6 l
+131.4 -82.8 l
+S
+0.072 w
+q 0 g
+243.576 -20.016 m
+248.4 -14.4 l
+246.816 -21.672 l
+243.576 -20.016 l
+B Q
+0.576 w
+136.8 -64.8 m
+144 -64.8 l
+148.896 -64.8 165.6 -59.04 196.2 -46.8 c
+226.8 -34.56 242.30592 -26.59968 244.656 -21.924 c
+248.112 -15.048 l
+S
+0.072 w
+q 0 g
+279.576 -20.016 m
+284.4 -14.4 l
+282.816 -21.672 l
+279.576 -20.016 l
+B Q
+0.576 w
+136.8 -72 m
+147.6 -72 l
+154.944 -72 177.408 -65.088 217.8 -50.4 c
+258.192 -35.712 278.30592 -26.59968 280.656 -21.924 c
+284.112 -15.048 l
+S
+0.072 w
+q 0 g
+118.8 -120.6 m
+126 -122.4 l
+118.8 -124.2 l
+118.8 -120.6 l
+B Q
+0.576 w
+54 -122.4 m
+118.8 -122.4 l
+S
+126 -126 m
+136.8 -126 l
+136.8 -118.8 l
+126 -118.8 l
+126 -126 l
+S
+126 -133.2 m
+136.8 -133.2 l
+136.8 -126 l
+126 -126 l
+126 -133.2 l
+S
+126 -140.4 m
+136.8 -140.4 l
+136.8 -133.2 l
+126 -133.2 l
+126 -140.4 l
+S
+0.072 w
+q 0 g
+165.888 -21.024 m
+169.2 -14.4 l
+169.416 -21.816 l
+165.888 -21.024 l
+B Q
+0.576 w
+131.4 -122.4 m
+138.6 -122.4 l
+143.496 -122.4 149.52096 -105.2352 157.428 -68.76 c
+169.056 -15.12 l
+S
+0.072 w
+q 0 g
+193.68 -20.448 m
+198 -14.4 l
+197.064 -21.744 l
+193.68 -20.448 l
+B Q
+0.576 w
+131.4 -129.6 m
+142.2 -129.6 l
+149.544 -129.6 160.15392 -111.27168 175.356 -72.324 c
+197.712 -15.048 l
+S
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 1.700in
+ \rlap{\kern 3.100in\lower\graphtemp\hbox to 0pt{\hss ndblock\hss}}%
+\pdfliteral{
+q [] 0 d 1 J 1 j
+0.576 w
+0.072 w
+q 0 g
+159.984 -132.768 m
+152.568 -132.48 l
+159.264 -129.24 l
+159.984 -132.768 l
+B Q
+0.576 w
+q [3.6 4.251194] 0 d
+201.6 -122.4 m
+159.624 -131.04 l
+S Q
+Q
+}%
+ \graphtemp=.5ex
+ \advance\graphtemp by 0.100in
+ \rlap{\kern 1.000in\lower\graphtemp\hbox to 0pt{\hss ndtable:\hss}}%
+ \hbox{\vrule depth2.000in width0pt height 0pt}%
+ \kern 4.100in
+ }%
+}%
+\centerline{A\gpicbox{graph}B}
+\sep
+%***********************************************************************
+\end
+
diff --git a/Build/source/utils/tpic2pdftex/install-sh b/Build/source/utils/tpic2pdftex/install-sh
deleted file mode 100755
index 6781b987bdb..00000000000
--- a/Build/source/utils/tpic2pdftex/install-sh
+++ /dev/null
@@ -1,520 +0,0 @@
-#!/bin/sh
-# install - install a program, script, or datafile
-
-scriptversion=2009-04-28.21; # UTC
-
-# This originates from X11R5 (mit/util/scripts/install.sh), which was
-# later released in X11R6 (xc/config/util/install.sh) with the
-# following copyright and license.
-#
-# Copyright (C) 1994 X Consortium
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to
-# deal in the Software without restriction, including without limitation the
-# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
-# sell copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
-# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
-# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-# Except as contained in this notice, the name of the X Consortium shall not
-# be used in advertising or otherwise to promote the sale, use or other deal-
-# ings in this Software without prior written authorization from the X Consor-
-# tium.
-#
-#
-# FSF changes to this file are in the public domain.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.
-
-nl='
-'
-IFS=" "" $nl"
-
-# set DOITPROG to echo to test this script
-
-# Don't use :- since 4.3BSD and earlier shells don't like it.
-doit=${DOITPROG-}
-if test -z "$doit"; then
- doit_exec=exec
-else
- doit_exec=$doit
-fi
-
-# Put in absolute file names if you don't have them in your path;
-# or use environment vars.
-
-chgrpprog=${CHGRPPROG-chgrp}
-chmodprog=${CHMODPROG-chmod}
-chownprog=${CHOWNPROG-chown}
-cmpprog=${CMPPROG-cmp}
-cpprog=${CPPROG-cp}
-mkdirprog=${MKDIRPROG-mkdir}
-mvprog=${MVPROG-mv}
-rmprog=${RMPROG-rm}
-stripprog=${STRIPPROG-strip}
-
-posix_glob='?'
-initialize_posix_glob='
- test "$posix_glob" != "?" || {
- if (set -f) 2>/dev/null; then
- posix_glob=
- else
- posix_glob=:
- fi
- }
-'
-
-posix_mkdir=
-
-# Desired mode of installed file.
-mode=0755
-
-chgrpcmd=
-chmodcmd=$chmodprog
-chowncmd=
-mvcmd=$mvprog
-rmcmd="$rmprog -f"
-stripcmd=
-
-src=
-dst=
-dir_arg=
-dst_arg=
-
-copy_on_change=false
-no_target_directory=
-
-usage="\
-Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
- or: $0 [OPTION]... SRCFILES... DIRECTORY
- or: $0 [OPTION]... -t DIRECTORY SRCFILES...
- or: $0 [OPTION]... -d DIRECTORIES...
-
-In the 1st form, copy SRCFILE to DSTFILE.
-In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
-In the 4th, create DIRECTORIES.
-
-Options:
- --help display this help and exit.
- --version display version info and exit.
-
- -c (ignored)
- -C install only if different (preserve the last data modification time)
- -d create directories instead of installing files.
- -g GROUP $chgrpprog installed files to GROUP.
- -m MODE $chmodprog installed files to MODE.
- -o USER $chownprog installed files to USER.
- -s $stripprog installed files.
- -t DIRECTORY install into DIRECTORY.
- -T report an error if DSTFILE is a directory.
-
-Environment variables override the default commands:
- CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
- RMPROG STRIPPROG
-"
-
-while test $# -ne 0; do
- case $1 in
- -c) ;;
-
- -C) copy_on_change=true;;
-
- -d) dir_arg=true;;
-
- -g) chgrpcmd="$chgrpprog $2"
- shift;;
-
- --help) echo "$usage"; exit $?;;
-
- -m) mode=$2
- case $mode in
- *' '* | *' '* | *'
-'* | *'*'* | *'?'* | *'['*)
- echo "$0: invalid mode: $mode" >&2
- exit 1;;
- esac
- shift;;
-
- -o) chowncmd="$chownprog $2"
- shift;;
-
- -s) stripcmd=$stripprog;;
-
- -t) dst_arg=$2
- shift;;
-
- -T) no_target_directory=true;;
-
- --version) echo "$0 $scriptversion"; exit $?;;
-
- --) shift
- break;;
-
- -*) echo "$0: invalid option: $1" >&2
- exit 1;;
-
- *) break;;
- esac
- shift
-done
-
-if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
- # When -d is used, all remaining arguments are directories to create.
- # When -t is used, the destination is already specified.
- # Otherwise, the last argument is the destination. Remove it from $@.
- for arg
- do
- if test -n "$dst_arg"; then
- # $@ is not empty: it contains at least $arg.
- set fnord "$@" "$dst_arg"
- shift # fnord
- fi
- shift # arg
- dst_arg=$arg
- done
-fi
-
-if test $# -eq 0; then
- if test -z "$dir_arg"; then
- echo "$0: no input file specified." >&2
- exit 1
- fi
- # It's OK to call `install-sh -d' without argument.
- # This can happen when creating conditional directories.
- exit 0
-fi
-
-if test -z "$dir_arg"; then
- trap '(exit $?); exit' 1 2 13 15
-
- # Set umask so as not to create temps with too-generous modes.
- # However, 'strip' requires both read and write access to temps.
- case $mode in
- # Optimize common cases.
- *644) cp_umask=133;;
- *755) cp_umask=22;;
-
- *[0-7])
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw='% 200'
- fi
- cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
- *)
- if test -z "$stripcmd"; then
- u_plus_rw=
- else
- u_plus_rw=,u+rw
- fi
- cp_umask=$mode$u_plus_rw;;
- esac
-fi
-
-for src
-do
- # Protect names starting with `-'.
- case $src in
- -*) src=./$src;;
- esac
-
- if test -n "$dir_arg"; then
- dst=$src
- dstdir=$dst
- test -d "$dstdir"
- dstdir_status=$?
- else
-
- # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
- if test ! -f "$src" && test ! -d "$src"; then
- echo "$0: $src does not exist." >&2
- exit 1
- fi
-
- if test -z "$dst_arg"; then
- echo "$0: no destination specified." >&2
- exit 1
- fi
-
- dst=$dst_arg
- # Protect names starting with `-'.
- case $dst in
- -*) dst=./$dst;;
- esac
-
- # If destination is a directory, append the input filename; won't work
- # if double slashes aren't ignored.
- if test -d "$dst"; then
- if test -n "$no_target_directory"; then
- echo "$0: $dst_arg: Is a directory" >&2
- exit 1
- fi
- dstdir=$dst
- dst=$dstdir/`basename "$src"`
- dstdir_status=0
- else
- # Prefer dirname, but fall back on a substitute if dirname fails.
- dstdir=`
- (dirname "$dst") 2>/dev/null ||
- expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$dst" : 'X\(//\)[^/]' \| \
- X"$dst" : 'X\(//\)$' \| \
- X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
- echo X"$dst" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'
- `
-
- test -d "$dstdir"
- dstdir_status=$?
- fi
- fi
-
- obsolete_mkdir_used=false
-
- if test $dstdir_status != 0; then
- case $posix_mkdir in
- '')
- # Create intermediate dirs using mode 755 as modified by the umask.
- # This is like FreeBSD 'install' as of 1997-10-28.
- umask=`umask`
- case $stripcmd.$umask in
- # Optimize common cases.
- *[2367][2367]) mkdir_umask=$umask;;
- .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
-
- *[0-7])
- mkdir_umask=`expr $umask + 22 \
- - $umask % 100 % 40 + $umask % 20 \
- - $umask % 10 % 4 + $umask % 2
- `;;
- *) mkdir_umask=$umask,go-w;;
- esac
-
- # With -d, create the new directory with the user-specified mode.
- # Otherwise, rely on $mkdir_umask.
- if test -n "$dir_arg"; then
- mkdir_mode=-m$mode
- else
- mkdir_mode=
- fi
-
- posix_mkdir=false
- case $umask in
- *[123567][0-7][0-7])
- # POSIX mkdir -p sets u+wx bits regardless of umask, which
- # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
- ;;
- *)
- tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
- trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
-
- if (umask $mkdir_umask &&
- exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
- then
- if test -z "$dir_arg" || {
- # Check for POSIX incompatibilities with -m.
- # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
- # other-writeable bit of parent directory when it shouldn't.
- # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
- ls_ld_tmpdir=`ls -ld "$tmpdir"`
- case $ls_ld_tmpdir in
- d????-?r-*) different_mode=700;;
- d????-?--*) different_mode=755;;
- *) false;;
- esac &&
- $mkdirprog -m$different_mode -p -- "$tmpdir" && {
- ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
- test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
- }
- }
- then posix_mkdir=:
- fi
- rmdir "$tmpdir/d" "$tmpdir"
- else
- # Remove any dirs left behind by ancient mkdir implementations.
- rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
- fi
- trap '' 0;;
- esac;;
- esac
-
- if
- $posix_mkdir && (
- umask $mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
- )
- then :
- else
-
- # The umask is ridiculous, or mkdir does not conform to POSIX,
- # or it failed possibly due to a race condition. Create the
- # directory the slow way, step by step, checking for races as we go.
-
- case $dstdir in
- /*) prefix='/';;
- -*) prefix='./';;
- *) prefix='';;
- esac
-
- eval "$initialize_posix_glob"
-
- oIFS=$IFS
- IFS=/
- $posix_glob set -f
- set fnord $dstdir
- shift
- $posix_glob set +f
- IFS=$oIFS
-
- prefixes=
-
- for d
- do
- test -z "$d" && continue
-
- prefix=$prefix$d
- if test -d "$prefix"; then
- prefixes=
- else
- if $posix_mkdir; then
- (umask=$mkdir_umask &&
- $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
- # Don't fail if two instances are running concurrently.
- test -d "$prefix" || exit 1
- else
- case $prefix in
- *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
- *) qprefix=$prefix;;
- esac
- prefixes="$prefixes '$qprefix'"
- fi
- fi
- prefix=$prefix/
- done
-
- if test -n "$prefixes"; then
- # Don't fail if two instances are running concurrently.
- (umask $mkdir_umask &&
- eval "\$doit_exec \$mkdirprog $prefixes") ||
- test -d "$dstdir" || exit 1
- obsolete_mkdir_used=true
- fi
- fi
- fi
-
- if test -n "$dir_arg"; then
- { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
- { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
- test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
- else
-
- # Make a couple of temp file names in the proper directory.
- dsttmp=$dstdir/_inst.$$_
- rmtmp=$dstdir/_rm.$$_
-
- # Trap to clean up those temp files at exit.
- trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
-
- # Copy the file name to the temp name.
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
-
- # and set any options; do chmod last to preserve setuid bits.
- #
- # If any of these fail, we abort the whole thing. If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $cpprog $src $dsttmp" command.
- #
- { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
- { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
- { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
- { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
-
- # If -C, don't bother to copy if it wouldn't change the file.
- if $copy_on_change &&
- old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
- new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
-
- eval "$initialize_posix_glob" &&
- $posix_glob set -f &&
- set X $old && old=:$2:$4:$5:$6 &&
- set X $new && new=:$2:$4:$5:$6 &&
- $posix_glob set +f &&
-
- test "$old" = "$new" &&
- $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
- then
- rm -f "$dsttmp"
- else
- # Rename the file to the real destination.
- $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
-
- # The rename failed, perhaps because mv can't rename something else
- # to itself, or perhaps because mv is so ancient that it does not
- # support -f.
- {
- # Now remove or move aside any old file at destination location.
- # We try this two ways since rm can't unlink itself on some
- # systems and the destination file might be busy for other
- # reasons. In this case, the final cleanup might fail but the new
- # file should still install successfully.
- {
- test ! -f "$dst" ||
- $doit $rmcmd -f "$dst" 2>/dev/null ||
- { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
- { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
- } ||
- { echo "$0: cannot unlink or rename $dst" >&2
- (exit 1); exit 1
- }
- } &&
-
- # Now rename the file to the real destination.
- $doit $mvcmd "$dsttmp" "$dst"
- }
- fi || exit 1
-
- trap '' 0
- fi
-done
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
-# time-stamp-end: "; # UTC"
-# End:
diff --git a/Build/source/utils/tpic2pdftex/tpic2pdftex.test b/Build/source/utils/tpic2pdftex/tpic2pdftex.test
new file mode 100755
index 00000000000..e0a05e27ff5
--- /dev/null
+++ b/Build/source/utils/tpic2pdftex/tpic2pdftex.test
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+for f in beamerexample example; do
+ pic -z -t $srcdir/$f.pic >$f.tpic || exit 77
+ $srcdir/tpic2pdftex $f.tpic >$f.tex || exit 1
+ diff $srcdir/$f.exp $f.tex || exit 1
+done
+