summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sciposter
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-06-16 13:49:42 +0000
committerKarl Berry <karl@freefriends.org>2006-06-16 13:49:42 +0000
commit55554d091fb71035a766149e43e7cf94b2814714 (patch)
tree285b3b3686406268526ac8b0c99580acbfd4477d /Master/texmf-dist/tex/latex/sciposter
parentf4274a0601c40081c1a6d35a870779a763c43512 (diff)
sciposter 1.17
git-svn-id: svn://tug.org/texlive/trunk@1686 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sciposter')
-rw-r--r--Master/texmf-dist/tex/latex/sciposter/sciposter.cls143
1 files changed, 118 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/sciposter/sciposter.cls b/Master/texmf-dist/tex/latex/sciposter/sciposter.cls
index 1c24dbe6dd5..6dcdb35381d 100644
--- a/Master/texmf-dist/tex/latex/sciposter/sciposter.cls
+++ b/Master/texmf-dist/tex/latex/sciposter/sciposter.cls
@@ -1,17 +1,30 @@
%%
-%% This is file `sciposter.cls' v 1.15
+%% This is file `sciposter.cls' v 1.17
%%
%% Authors Michael H.F. Wilkinson and Alle Meije Wink
-%% October 20, 2005
+%% June 15, 2006
%%
%% Derived from IWIposter.cls, 18/11/2003, same authors
%% Problems, bugs and comments to
-%% michael@cs.rug.nl
+%% m.h.f.wilkinson@rug.nl
+%% version 1.17, 2006/06/15 :
+%% - interfacing to babel implemented by using \figurename
+%% and \tablename in table caption. Thanks to Marcus
+%% Guenther for pointing out the problem.
+%% - \algorithmname added for easy changing of algorithm
+%% caption start, for similar reasons as above
+%% - posibilities for changing caption style added
+%% - \setmargins added as command
+%% - \noindent added to figure, algorithm, and table
+%% environments to obtain correct layout if \parindent
+%% is not zero (the default). Suggested by Pavel Rehulka
+%% version 1.16, 2006/03/28 :
+%% - plainboxsection option added, by popular request
%% version 1.15, 2005/10/20 :
-%% - \caption given extra optional parameter indicating
-%% which fraction of \columnwidth the width should be
-%% (default 1). Thanks to Andreas Engel for this
-%% suggestion.
+%% - \caption given extra optional parameter indicating
+%% which fraction of \columnwidth the width should be
+%% (default 1). Thanks to Andreas Engel for this
+%% suggestion.
%% version 1.14, 2005/09/02 :
%% - \centering (in stead of the center environment) can now
%% be used within figure environment without unwanted
@@ -41,12 +54,13 @@
%% ANSI E?).
%% - Boxed section headers work better on small paper now.
%% version 1.00, 2004/02/16 :
-%% Essentially IWIposter.cls v1.16, but without explicit
-%% reference to University of Groningen and Institute for
-%% Mathematics and Computing Science
-%% Formatting for logos is provided but no defaults available
+%% - Essentially IWIposter.cls v1.16, but without explicit
+%% reference to University of Groningen and Institute for
+%% Mathematics and Computing Science
+%% Formatting for logos is provided but no defaults
+%% available
%%
-\ProvidesClass{sciposter}[2005/10/20 v1.15 scientific poster class (MHFW, AMW)]
+\ProvidesClass{sciposter}[2006/05/30 v1.17 scientific poster class (MHFW, AMW)]
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\LoadClass{article}
\RequirePackage{ifthen}
@@ -95,6 +109,10 @@
\renewcommand{\sectionsize}{\Large}
\renewcommand{\subsectionsize}{\large}
}
+\DeclareOption{plainboxedsections}{
+\renewcommand{\secstyle}{plainboxed}
+}
+
% BUILT IN ISO paper size support
\DeclareOption{a0}{% ISO A0 paper
\renewcommand{\papertype}{a0}
@@ -273,12 +291,14 @@
\newlength{\logowidth}
-\newcommand{\setuppage}{
- \ifthenelse{\equal{\orientation}{landscape}}{
- \setlength{\papermargin}{0.06\paperheight}
+\newcommand{\setmargins}[1][]{
+ \ifthenelse{\equal{#1}{}}{
+ \ifthenelse{\equal{\orientation}{landscape}}{
+ \setlength{\papermargin}{0.06\paperheight}
}{
- \setlength{\papermargin}{0.06\paperwidth}
+ \setlength{\papermargin}{0.06\paperwidth}
}
+ }{\setlength{\papermargin}{#1}}
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-2\papermargin}
\setlength{\textheight}{\paperheight}
@@ -304,7 +324,7 @@
}
-\setuppage
+\setmargins
\ifthenelse{\equal{\fontpointsize}{20pt}}{
\renewcommand{\tiny}{\fontsize{10}{12}\selectfont}
@@ -670,6 +690,49 @@
\end{center}
\par\vspace{0.375\secskip}
}
+%%% \replacement for \section
+% with colored section-title and automatic numbering
+\newcommand{\PlainBoxSection}[2][?]{
+ \vspace{\secskip}
+ \refstepcounter{section}
+ \begin{center}
+ \setlength{\secboxwidth}{\columnwidth}
+ \addtolength{\secboxwidth}{-1cm}
+ \setlength{\fboxrule}{2pt}
+ \setlength{\fboxsep}{0pt}
+ \fbox{\colorbox{BoxCol}{
+ \begin{minipage}[c]{\secboxwidth}
+ \vspace{1.1ex}
+ \begin{center}
+ {\bf\sectionsize\textcolor{SectionCol}{\arabic{section}.~#2}}
+ \end{center}
+ \vspace{0.2ex}
+ \end{minipage}
+ }}
+ \end{center}
+ \par\vspace{0.375\secskip}
+}
+%
+\newcommand{\sPlainBoxSection}[1]{
+ \vspace{\secskip}
+ \begin{center}
+ \setlength{\secboxwidth}{\columnwidth}
+ \addtolength{\secboxwidth}{-1cm}
+ \setlength{\fboxrule}{2pt}
+ \setlength{\fboxsep}{0pt}
+ \fbox{\colorbox{BoxCol}{
+ \begin{minipage}[c]{\secboxwidth}
+ \vspace{1.1ex}
+ \begin{center}
+ {\bf\sectionsize\textcolor{SectionCol}{#1}}
+ \end{center}
+ \vspace{0.2ex}
+ \end{minipage}
+ }}
+ \end{center}
+ \par\vspace{0.375\secskip}
+}
+%
%
%
%
@@ -679,8 +742,12 @@
}{
\ifthenelse{\equal{\secstyle}{plain}}{
\renewcommand{\section}{\secdef\PlainSection\sPlainSection}
- }{
- \renewcommand{\section}{\secdef\Section\sSection}
+ }{
+ \ifthenelse{\equal{\secstyle}{plainboxed}}{
+ \renewcommand{\section}{\secdef\PlainBoxSection\sPlainBoxSection}
+ }{
+ \renewcommand{\section}{\secdef\Section\sSection}
+ }
}
}
%%% \SubSection - replacement for \subsection
@@ -719,26 +786,48 @@
\end{tabular}
}
+%%% caption formatting commands
+\newcommand{\mastercapstartstyle}[1]{\textbf{#1}}
+\newcommand{\mastercapbodystyle}{\itshape}
+\newcommand{\capbodystyle}{\mastercapbodystyle}
+
+\newcommand{\figcapstartstyle}[1]{\mastercapstartstyle{#1}}
+\newcommand{\figcapbodystyle}{\mastercapbodystyle}
+\newcommand{\tablecapstartstyle}[1]{\mastercapstartstyle{#1}}
+\newcommand{\tablecapbodystyle}{\mastercapbodystyle}
+\newcommand{\algcapstartstyle}[1]{\mastercapstartstyle{#1}}
+\newcommand{\algcapbodystyle}{\mastercapbodystyle}
+
%%% replacement for standard figure environment
\renewenvironment{figure}[1][h]
{\vspace{\figtopskip}
\refstepcounter{figure}
- \renewcommand{\capstart}{\bf Figure \arabic{figure}: }
+ \renewcommand{\capstart}{%
+ \figcapstartstyle{\figurename\nobreakspace\thefigure:}%
+ }
\renewcommand{\capfirstskip}{\vspace{0.5\figtopskip}\par}
\renewcommand{\caplastskip}{}
+ \noindent%
\begin{minipage}{\columnwidth}
+ \renewcommand{\capbodystyle}{\figcapbodystyle}
}
{\end{minipage}
\vspace{\figbotskip}}
+
+\newcommand{\algorithmname}{Algorithm}
\newcounter{algorithm}
%%% replacement for algorithm environment
\newenvironment{algorithm}[1][h]
{\vspace{\figtopskip}
\refstepcounter{algorithm}
- \renewcommand{\capstart}{\bf Algorithm \arabic{algorithm}: }
+ \renewcommand{\capstart}{%
+ \algcapstartstyle{\algorithmname\nobreakspace\thealgorithm:}%
+ }
\renewcommand{\capfirstskip}{\vspace{0.5\figtopskip}\par}
\renewcommand{\caplastskip}{}
+ \noindent%
\begin{boxedminipage}{\columnwidth}
+ \renewcommand{\capbodystyle}{\algcapbodystyle}
}
{\end{boxedminipage}
\vspace{\figbotskip}}
@@ -746,10 +835,14 @@
\renewenvironment{table}[1][h]
{\vspace{\figtopskip}
\refstepcounter{table}
- \renewcommand{\capstart}{\bf Table \arabic{table}: }
+ \renewcommand{\capstart}{%
+ \tablecapstartstyle{\tablename\nobreakspace\thetable:}%
+ }
\renewcommand{\caplastskip}{\vspace{0.5\figtopskip}\par}
\renewcommand{\capfirstskip}{}
+ \noindent%
\begin{minipage}{\columnwidth}
+ \renewcommand{\capbodystyle}{\tablecapbodystyle}
}
{\end{minipage}\vspace{\figbotskip}}
%%% replacement for standard \caption
@@ -757,9 +850,9 @@
\capfirstskip
\begin{minipage}{#1\columnwidth}
\renewcommand{\baselinestretch}{1}
- \setbox0=\hbox{\capstart \it #2}
+ \setbox0=\hbox{\capstart\nobreakspace\capbodystyle #2}
\ifdim\wd0>\hsize
- {\capstart \it #2}
+ {\capstart\nobreakspace\capbodystyle #2}
\else
\centerline{\box0}
\fi
@@ -864,7 +957,7 @@
\color{TextCol}
%%
-%% End of file `poster.cls'.
+%% End of file `sciposter.cls'.