From bf62142fc8f3b76ae5967c6aa3ad4dd928c8df52 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 16 Nov 2007 11:09:01 +0000 Subject: image-gallery update git-svn-id: svn://tug.org/texlive/trunk@5454 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/image-gallery/image-gallery.cls | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist/tex/latex/image-gallery') diff --git a/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls b/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls index 02c4911545a..73a2185db32 100644 --- a/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls +++ b/Master/texmf-dist/tex/latex/image-gallery/image-gallery.cls @@ -14,7 +14,7 @@ \errorcontextlines=100 \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{image-gallery}[2007/09/02 v1.0i image gallery -- RN] +\ProvidesClass{image-gallery}[2007/10/04 v1.0j image gallery -- RN] \DeclareOption{dummy}{% \AtEndOfClass{% \renewcommand*\IG@image[2][]{\rule{\IG@width}{\IG@height}}% @@ -23,6 +23,12 @@ \RequirePackage{color}% }% } +\DeclareOption{nocaption}{% + \AtEndOfClass{% + \let\IG@@showname\@gobble + \let\IG@@showtext\@gobble + }% +} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions\relax \LoadClass[10pt]{article} @@ -79,11 +85,11 @@ \endlinechar=\m@ne \loop \ifeof\IG@input\IG@morefalse\else - \read\IG@input to\@tempa - \if\@tempa\par\else - \ifx\@tempa\@empty\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:=\@tempa\do{% + \@for\reserved@a:=\IG@tempa\do{% \ifcase\count@ \edef\IG@imagefile{\reserved@a}% \or @@ -98,7 +104,7 @@ \ifx\IG@alt@name\@empty \edef\@tempa{\IG@imagefile}\let\IG@showname\IG@@showname \else - \def\@tempa{\IG@alt@name}\let\IG@showname\@firstofone + \def\@tempa{\IG@alt@name}\let\IG@showname\IG@@showtext \fi \makebox[0pt][c]{% \hskip-\IG@width\raisebox{-\ht\strutbox}[0pt][0pt]{% @@ -140,5 +146,6 @@ \parindent=\z@ \pagestyle{empty} \DeclareUrlCommand\IG@@showname{\urlstyle{same}} +\let\IG@@showtext=\@firstofone \endinput -- cgit v1.2.3