summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-08-29 20:35:06 +0000
committerKarl Berry <karl@freefriends.org>2007-08-29 20:35:06 +0000
commitd340c324cfbe63068a5ef7776b8debfe2f20f8a1 (patch)
tree59c018af0e046e4664bb66eecc10281f025ce732
parent6636461ac835c807e3c386a624d56d3d6fe8b167 (diff)
new latex package image-gallery (27aug07)
git-svn-id: svn://tug.org/texlive/trunk@4838 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/tools/tpm-ctan-check4
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/README8
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/gallery-example.pdfbin0 -> 793665 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/gallery-example.tex22
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/mypics.txt22
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic001.jpgbin0 -> 41818 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic002.jpgbin0 -> 36734 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic003.jpgbin0 -> 10581 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic004.jpgbin0 -> 36052 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic005.jpgbin0 -> 34419 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic006.jpgbin0 -> 37112 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic007.jpgbin0 -> 37999 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic008.jpgbin0 -> 34676 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic009.jpgbin0 -> 36322 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic010.jpgbin0 -> 36332 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic011.jpgbin0 -> 36569 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic012.jpgbin0 -> 36080 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic013.jpgbin0 -> 36993 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic014.jpgbin0 -> 35687 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic015.jpgbin0 -> 36606 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic016.jpgbin0 -> 37125 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic017.jpgbin0 -> 38176 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic018.jpgbin0 -> 38166 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic019.jpgbin0 -> 34744 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic020.jpgbin0 -> 36442 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic021.jpgbin0 -> 37996 bytes
-rw-r--r--Master/texmf-dist/doc/latex/image-gallery/pic022.jpgbin0 -> 35647 bytes
-rw-r--r--Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls127
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/image-gallery.tlpsrc2
30 files changed, 184 insertions, 2 deletions
diff --git a/Build/tools/tpm-ctan-check b/Build/tools/tpm-ctan-check
index a4e8a31f985..a35b36a6a38 100755
--- a/Build/tools/tpm-ctan-check
+++ b/Build/tools/tpm-ctan-check
@@ -70,8 +70,8 @@ my @WorkingTPM = qw(
hyphen-greek hyphen-italian hyphen-latin
hyphen-norwegian hyphen-ukenglish
hyphen-usorbian hyplain
- ibygrk icsv IEEEconf IEEEtran ifxetex ijqc inlinebib inversepath
- invoice
+ ibygrk icsv IEEEconf IEEEtran ifxetex ijqc image-gallery
+ inlinebib inversepath invoice
iopart-num isodoc isorot isotope itnumpar iwona
japanese jeopardy jneurosci jpsj jurabib juramisc
kalender kerkis kerntest keystroke koma-script kpfonts
diff --git a/Master/texmf-dist/doc/latex/image-gallery/README b/Master/texmf-dist/doc/latex/image-gallery/README
new file mode 100644
index 00000000000..7ecabe0dd80
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/README
@@ -0,0 +1,8 @@
+
+The LaTeX class `image-gallery' can be used to create an overview of pictures
+from a digital camera or from other sources. It's possible to adjust the size of
+the pictures and all the margins. The example file shows the usage.
+
+Rolf Niepraschk, 2007-08-27
+
+
diff --git a/Master/texmf-dist/doc/latex/image-gallery/gallery-example.pdf b/Master/texmf-dist/doc/latex/image-gallery/gallery-example.pdf
new file mode 100644
index 00000000000..4a19d50d56a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/gallery-example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/gallery-example.tex b/Master/texmf-dist/doc/latex/image-gallery/gallery-example.tex
new file mode 100644
index 00000000000..2065f6cb296
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/gallery-example.tex
@@ -0,0 +1,22 @@
+
+% Rolf Niepraschk, Rolf.Niepraschk@ptb.de, 2006-12-05
+
+\documentclass[a4paper]{image-gallery}
+%\documentclass[a4paper,dummy]{image-gallery}
+
+\gallerySetup{left=20mm,right=20mm,top=20mm,bottom=20mm,
+ width=5cm,height=3.75cm,rows=6,columns=3,autorotate=false}
+
+\begin{document}
+
+% The resolution of all the pictures are reduced by
+% convert -resize 8% original.jpg new.jpg
+%
+% `mypics.txt' is created with the following call
+% ls -1 *.jpg > mypics.txt
+%
+
+ \ttfamily\footnotesize
+ \makeGallery{mypics.txt}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/image-gallery/mypics.txt b/Master/texmf-dist/doc/latex/image-gallery/mypics.txt
new file mode 100644
index 00000000000..cede9917612
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/mypics.txt
@@ -0,0 +1,22 @@
+pic001.jpg
+pic002.jpg
+pic003.jpg
+pic004.jpg
+pic005.jpg
+pic006.jpg
+pic007.jpg
+pic008.jpg
+pic009.jpg
+pic010.jpg
+pic011.jpg
+pic012.jpg
+pic013.jpg
+pic014.jpg
+pic015.jpg
+pic016.jpg
+pic017.jpg
+pic018.jpg
+pic019.jpg
+pic020.jpg
+pic021.jpg
+pic022.jpg
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic001.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic001.jpg
new file mode 100644
index 00000000000..25b05cf0adb
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic001.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic002.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic002.jpg
new file mode 100644
index 00000000000..57d0cc18e4a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic002.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic003.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic003.jpg
new file mode 100644
index 00000000000..f427d3a1e1a
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic003.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic004.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic004.jpg
new file mode 100644
index 00000000000..d15b90d03cc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic004.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic005.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic005.jpg
new file mode 100644
index 00000000000..8c37685aaa4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic005.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic006.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic006.jpg
new file mode 100644
index 00000000000..bdb932a1ed4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic006.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic007.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic007.jpg
new file mode 100644
index 00000000000..d2283f6a91d
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic007.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic008.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic008.jpg
new file mode 100644
index 00000000000..6cb98b37b94
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic008.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic009.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic009.jpg
new file mode 100644
index 00000000000..d4e533d4865
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic009.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic010.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic010.jpg
new file mode 100644
index 00000000000..1e3ed3f787e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic010.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic011.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic011.jpg
new file mode 100644
index 00000000000..751ef8965f9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic011.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic012.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic012.jpg
new file mode 100644
index 00000000000..f26b028bc80
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic012.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic013.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic013.jpg
new file mode 100644
index 00000000000..8a33910d955
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic013.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic014.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic014.jpg
new file mode 100644
index 00000000000..516911a5172
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic014.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic015.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic015.jpg
new file mode 100644
index 00000000000..6ca8fbd9bc6
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic015.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic016.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic016.jpg
new file mode 100644
index 00000000000..e87273bbefa
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic016.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic017.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic017.jpg
new file mode 100644
index 00000000000..9d901a79899
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic017.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic018.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic018.jpg
new file mode 100644
index 00000000000..a3aeebcc091
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic018.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic019.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic019.jpg
new file mode 100644
index 00000000000..8ac81b91ca3
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic019.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic020.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic020.jpg
new file mode 100644
index 00000000000..6cab697fcd2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic020.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic021.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic021.jpg
new file mode 100644
index 00000000000..9d68f2ba4bc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic021.jpg
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/image-gallery/pic022.jpg b/Master/texmf-dist/doc/latex/image-gallery/pic022.jpg
new file mode 100644
index 00000000000..9b26bfa2f5e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/image-gallery/pic022.jpg
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls b/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls
new file mode 100644
index 00000000000..2f364b556e1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls
@@ -0,0 +1,127 @@
+
+% Rolf Niepraschk <Rolf.Niepraschk@ptb.de>
+%
+% This file may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in:
+%
+% http://www.latex-project.org/lppl.txt
+%
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2003/12/01 or later.
+
+%\errorcontextlines=100
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesClass{image-gallery}[2007/08/27 v1.0h image gallery -- RN]
+\DeclareOption{dummy}{%
+ \AtEndOfClass{%
+ \renewcommand*\IG@image[2][]{\rule{\IG@width}{\IG@height}}%
+ \renewcommand*\IG@fillBox{%
+ \textcolor{red}{\rule{\IG@width}{\IG@height}}}%
+ \RequirePackage{color}%
+ }%
+}
+\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
+\ProcessOptions\relax
+\LoadClass[10pt]{article}
+
+\RequirePackage{graphicx,keyval,url}
+\RequirePackage[margin={0mm,0mm},dvips]{geometry}
+
+\newcommand*\IG@image[2][]{%
+ \let\IG@tempa=\@empty
+ \ifIG@autorotate
+ \sbox\IG@box{\includegraphics[#1]{#2}}%
+ \ifdim\wd\IG@box<\ht\IG@box
+ \def\IG@tempa{angle=90,}%
+ \fi
+ \setbox\IG@box\box\voidb@x
+ \fi
+ \expandafter\includegraphics\expandafter[\IG@tempa#1]{#2}%
+}
+
+\newcommand*\IG@fillBox{\mbox{\phantom{\rule{\IG@width}{\IG@height}}}}
+
+\newlength\IG@width \newlength\IG@height
+\newlength\IG@top \newlength\IG@bottom
+\newlength\IG@left \newlength\IG@right
+\newif\ifIG@more
+\newcommand*\IG@rows{} \newcommand*\IG@columns{}
+\newcommand*\IG@tempa{} \newcommand*\IG@imagefile{}
+\newread\IG@input
+\newsavebox\IG@box
+\newif\ifIG@autorotate \IG@autorotatetrue
+
+\define@key{IG}{width}{\setlength\IG@width{#1}}
+\define@key{IG}{height}{\setlength\IG@height{#1}}
+\define@key{IG}{top}{\setlength\IG@top{#1}}
+\define@key{IG}{bottom}{\setlength\IG@bottom{#1}}
+\define@key{IG}{left}{\setlength\IG@left{#1}}
+\define@key{IG}{right}{\setlength\IG@right{#1}}
+\define@key{IG}{rows}{\edef\IG@rows{\number#1}}
+\define@key{IG}{columns}{\edef\IG@columns{\number#1}}
+\define@key{IG}{autorotate}[true]{\csname IG@autorotate#1\endcsname}
+
+\newcommand*\gallerySetup[1]{%
+ \setkeys{IG}{#1}
+ \geometry{left=\IG@left,right=\IG@right,top=\IG@top,bottom=\IG@bottom}
+}
+
+\newcommand*\makeGallery[1]{%
+ \begingroup
+ \immediate\openin\IG@input=#1\relax
+ \IG@moretrue\@tempcnta=\z@\@tempcntb=\@ne
+ \endlinechar=\m@ne
+ \loop
+ \ifeof\IG@input\IG@morefalse\else
+ \read\IG@input to\IG@imagefile
+ \if\IG@imagefile\par\else
+ \ifx\IG@imagefile\@empty\else
+ \advance\@tempcnta\@ne
+ \makebox[\IG@width][c]{%
+ \IG@image[width=\IG@width,height=\IG@height,keepaspectratio]%
+ {\IG@imagefile}}%
+ \makebox[0pt][c]{%
+ \hskip-\IG@width\raisebox{-\ht\strutbox}[0pt][0pt]{%
+ \expandafter\IG@showname\expandafter{\IG@imagefile}}}%
+ \ifnum\@tempcnta=\IG@columns\relax
+ \@tempcnta=\z@ \par
+ \ifnum\@tempcntb=\IG@rows\relax
+ \@tempcntb=\@ne \newpage
+ \else
+ \advance\@tempcntb\@ne \vfill
+ \fi
+ \else
+ \hfill
+ \fi
+ \fi
+ \fi
+ \fi
+ \ifIG@more\repeat
+ \immediate\closeout\IG@input
+ \IG@moretrue
+ \ifnum\@tempcntb=\@ne\else
+ \loop
+ \advance\@tempcnta\@ne
+ \IG@fillBox
+ \ifnum\@tempcnta=\IG@columns\relax
+ \@tempcnta=\z@ \par
+ \ifnum\@tempcntb=\IG@rows\relax
+ \@tempcntb=\@ne \IG@morefalse
+ \else
+ \advance\@tempcntb\@ne \vfill
+ \fi
+ \else
+ \hfill
+ \fi
+ \ifIG@more\repeat
+ \fi
+ \endgroup
+}
+
+\parindent=\z@ \pagestyle{empty}
+\DeclareUrlCommand\IG@showname{\urlstyle{same}}
+
+\endinput
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 37695ab166e..df904d9ba63 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -211,6 +211,7 @@ depend Package/hyper
depend Package/hyperxmp
depend Package/hyphenat
depend Package/ifmslide
+depend Package/image-gallery
depend Package/interactiveworkbook
depend Package/inversepath
depend Package/invoice
diff --git a/Master/tlpkg/tlpsrc/image-gallery.tlpsrc b/Master/tlpkg/tlpsrc/image-gallery.tlpsrc
new file mode 100644
index 00000000000..7976e411d90
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/image-gallery.tlpsrc
@@ -0,0 +1,2 @@
+name image-gallery
+category Package