From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- macros/latex/contrib/image-gallery/README | 8 ++ .../contrib/image-gallery/gallery-example.pdf | Bin 0 -> 797828 bytes .../contrib/image-gallery/gallery-example.tex | 24 ++++ .../latex/contrib/image-gallery/image-gallery.cls | 151 +++++++++++++++++++++ macros/latex/contrib/image-gallery/mypics.txt | 22 +++ macros/latex/contrib/image-gallery/pic001.jpg | Bin 0 -> 41818 bytes macros/latex/contrib/image-gallery/pic002.jpg | Bin 0 -> 36734 bytes macros/latex/contrib/image-gallery/pic003.jpg | Bin 0 -> 10581 bytes macros/latex/contrib/image-gallery/pic004.jpg | Bin 0 -> 36052 bytes macros/latex/contrib/image-gallery/pic005.jpg | Bin 0 -> 34419 bytes macros/latex/contrib/image-gallery/pic006.jpg | Bin 0 -> 37112 bytes macros/latex/contrib/image-gallery/pic007.jpg | Bin 0 -> 37999 bytes macros/latex/contrib/image-gallery/pic008.jpg | Bin 0 -> 34676 bytes macros/latex/contrib/image-gallery/pic009.jpg | Bin 0 -> 36322 bytes macros/latex/contrib/image-gallery/pic010.jpg | Bin 0 -> 36332 bytes macros/latex/contrib/image-gallery/pic011.jpg | Bin 0 -> 36569 bytes macros/latex/contrib/image-gallery/pic012.jpg | Bin 0 -> 36080 bytes macros/latex/contrib/image-gallery/pic013.jpg | Bin 0 -> 36993 bytes macros/latex/contrib/image-gallery/pic014.jpg | Bin 0 -> 35687 bytes macros/latex/contrib/image-gallery/pic015.jpg | Bin 0 -> 36606 bytes macros/latex/contrib/image-gallery/pic016.jpg | Bin 0 -> 37125 bytes macros/latex/contrib/image-gallery/pic017.jpg | Bin 0 -> 38176 bytes macros/latex/contrib/image-gallery/pic018.jpg | Bin 0 -> 38166 bytes macros/latex/contrib/image-gallery/pic019.jpg | Bin 0 -> 34744 bytes macros/latex/contrib/image-gallery/pic020.jpg | Bin 0 -> 36442 bytes macros/latex/contrib/image-gallery/pic021.jpg | Bin 0 -> 37996 bytes macros/latex/contrib/image-gallery/pic022.jpg | Bin 0 -> 35647 bytes 27 files changed, 205 insertions(+) create mode 100644 macros/latex/contrib/image-gallery/README create mode 100644 macros/latex/contrib/image-gallery/gallery-example.pdf create mode 100644 macros/latex/contrib/image-gallery/gallery-example.tex create mode 100644 macros/latex/contrib/image-gallery/image-gallery.cls create mode 100644 macros/latex/contrib/image-gallery/mypics.txt create mode 100644 macros/latex/contrib/image-gallery/pic001.jpg create mode 100644 macros/latex/contrib/image-gallery/pic002.jpg create mode 100644 macros/latex/contrib/image-gallery/pic003.jpg create mode 100644 macros/latex/contrib/image-gallery/pic004.jpg create mode 100644 macros/latex/contrib/image-gallery/pic005.jpg create mode 100644 macros/latex/contrib/image-gallery/pic006.jpg create mode 100644 macros/latex/contrib/image-gallery/pic007.jpg create mode 100644 macros/latex/contrib/image-gallery/pic008.jpg create mode 100644 macros/latex/contrib/image-gallery/pic009.jpg create mode 100644 macros/latex/contrib/image-gallery/pic010.jpg create mode 100644 macros/latex/contrib/image-gallery/pic011.jpg create mode 100644 macros/latex/contrib/image-gallery/pic012.jpg create mode 100644 macros/latex/contrib/image-gallery/pic013.jpg create mode 100644 macros/latex/contrib/image-gallery/pic014.jpg create mode 100644 macros/latex/contrib/image-gallery/pic015.jpg create mode 100644 macros/latex/contrib/image-gallery/pic016.jpg create mode 100644 macros/latex/contrib/image-gallery/pic017.jpg create mode 100644 macros/latex/contrib/image-gallery/pic018.jpg create mode 100644 macros/latex/contrib/image-gallery/pic019.jpg create mode 100644 macros/latex/contrib/image-gallery/pic020.jpg create mode 100644 macros/latex/contrib/image-gallery/pic021.jpg create mode 100644 macros/latex/contrib/image-gallery/pic022.jpg (limited to 'macros/latex/contrib/image-gallery') diff --git a/macros/latex/contrib/image-gallery/README b/macros/latex/contrib/image-gallery/README new file mode 100644 index 0000000000..7ecabe0dd8 --- /dev/null +++ b/macros/latex/contrib/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/macros/latex/contrib/image-gallery/gallery-example.pdf b/macros/latex/contrib/image-gallery/gallery-example.pdf new file mode 100644 index 0000000000..d17aa58816 Binary files /dev/null and b/macros/latex/contrib/image-gallery/gallery-example.pdf differ diff --git a/macros/latex/contrib/image-gallery/gallery-example.tex b/macros/latex/contrib/image-gallery/gallery-example.tex new file mode 100644 index 0000000000..b22a43f9af --- /dev/null +++ b/macros/latex/contrib/image-gallery/gallery-example.tex @@ -0,0 +1,24 @@ + +% Rolf Niepraschk, Rolf.Niepraschk@ptb.de, 2007-09-02 + +\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 +% +% Caption text is the filename. Alternative Text can be given +% after a comma as separator. +% + \ttfamily\footnotesize + \makeGallery{mypics.txt} + +\end{document} diff --git a/macros/latex/contrib/image-gallery/image-gallery.cls b/macros/latex/contrib/image-gallery/image-gallery.cls new file mode 100644 index 0000000000..73a2185db3 --- /dev/null +++ b/macros/latex/contrib/image-gallery/image-gallery.cls @@ -0,0 +1,151 @@ + +% Rolf Niepraschk +% +% 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/10/04 v1.0j 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{nocaption}{% + \AtEndOfClass{% + \let\IG@@showname\@gobble + \let\IG@@showtext\@gobble + }% +} +\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*\IG@showname{} +\newcommand*\IG@alt@name{} + +\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@tempa + \if\IG@tempa\par\else + \ifx\IG@tempa\@empty\else + \count@=\z@ \let\IG@alt@name=\@empty + \@for\reserved@a:=\IG@tempa\do{% + \ifcase\count@ + \edef\IG@imagefile{\reserved@a}% + \or + \protected@edef\IG@alt@name{\reserved@a}% + \fi + \advance\count@\@ne + }% + \advance\@tempcnta\@ne + \makebox[\IG@width][c]{% + \IG@image[width=\IG@width,height=\IG@height,keepaspectratio]% + {\IG@imagefile}}% + \ifx\IG@alt@name\@empty + \edef\@tempa{\IG@imagefile}\let\IG@showname\IG@@showname + \else + \def\@tempa{\IG@alt@name}\let\IG@showname\IG@@showtext + \fi + \makebox[0pt][c]{% + \hskip-\IG@width\raisebox{-\ht\strutbox}[0pt][0pt]{% + \expandafter\IG@showname\expandafter{\@tempa}}}% + \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}} +\let\IG@@showtext=\@firstofone + +\endinput diff --git a/macros/latex/contrib/image-gallery/mypics.txt b/macros/latex/contrib/image-gallery/mypics.txt new file mode 100644 index 0000000000..01a0682f93 --- /dev/null +++ b/macros/latex/contrib/image-gallery/mypics.txt @@ -0,0 +1,22 @@ +pic001.jpg, \emph{Little Bird} +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, \emph{Nice Cat} +pic022.jpg diff --git a/macros/latex/contrib/image-gallery/pic001.jpg b/macros/latex/contrib/image-gallery/pic001.jpg new file mode 100644 index 0000000000..25b05cf0ad Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic001.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic002.jpg b/macros/latex/contrib/image-gallery/pic002.jpg new file mode 100644 index 0000000000..57d0cc18e4 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic002.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic003.jpg b/macros/latex/contrib/image-gallery/pic003.jpg new file mode 100644 index 0000000000..f427d3a1e1 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic003.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic004.jpg b/macros/latex/contrib/image-gallery/pic004.jpg new file mode 100644 index 0000000000..d15b90d03c Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic004.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic005.jpg b/macros/latex/contrib/image-gallery/pic005.jpg new file mode 100644 index 0000000000..8c37685aaa Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic005.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic006.jpg b/macros/latex/contrib/image-gallery/pic006.jpg new file mode 100644 index 0000000000..bdb932a1ed Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic006.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic007.jpg b/macros/latex/contrib/image-gallery/pic007.jpg new file mode 100644 index 0000000000..d2283f6a91 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic007.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic008.jpg b/macros/latex/contrib/image-gallery/pic008.jpg new file mode 100644 index 0000000000..6cb98b37b9 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic008.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic009.jpg b/macros/latex/contrib/image-gallery/pic009.jpg new file mode 100644 index 0000000000..d4e533d486 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic009.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic010.jpg b/macros/latex/contrib/image-gallery/pic010.jpg new file mode 100644 index 0000000000..1e3ed3f787 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic010.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic011.jpg b/macros/latex/contrib/image-gallery/pic011.jpg new file mode 100644 index 0000000000..751ef8965f Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic011.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic012.jpg b/macros/latex/contrib/image-gallery/pic012.jpg new file mode 100644 index 0000000000..f26b028bc8 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic012.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic013.jpg b/macros/latex/contrib/image-gallery/pic013.jpg new file mode 100644 index 0000000000..8a33910d95 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic013.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic014.jpg b/macros/latex/contrib/image-gallery/pic014.jpg new file mode 100644 index 0000000000..516911a517 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic014.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic015.jpg b/macros/latex/contrib/image-gallery/pic015.jpg new file mode 100644 index 0000000000..6ca8fbd9bc Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic015.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic016.jpg b/macros/latex/contrib/image-gallery/pic016.jpg new file mode 100644 index 0000000000..e87273bbef Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic016.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic017.jpg b/macros/latex/contrib/image-gallery/pic017.jpg new file mode 100644 index 0000000000..9d901a7989 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic017.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic018.jpg b/macros/latex/contrib/image-gallery/pic018.jpg new file mode 100644 index 0000000000..a3aeebcc09 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic018.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic019.jpg b/macros/latex/contrib/image-gallery/pic019.jpg new file mode 100644 index 0000000000..8ac81b91ca Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic019.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic020.jpg b/macros/latex/contrib/image-gallery/pic020.jpg new file mode 100644 index 0000000000..6cab697fcd Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic020.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic021.jpg b/macros/latex/contrib/image-gallery/pic021.jpg new file mode 100644 index 0000000000..9d68f2ba4b Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic021.jpg differ diff --git a/macros/latex/contrib/image-gallery/pic022.jpg b/macros/latex/contrib/image-gallery/pic022.jpg new file mode 100644 index 0000000000..9b26bfa2f5 Binary files /dev/null and b/macros/latex/contrib/image-gallery/pic022.jpg differ -- cgit v1.2.3