summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bookest
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-03-21 23:46:23 +0000
committerKarl Berry <karl@freefriends.org>2008-03-21 23:46:23 +0000
commit7d7bf2b41a666e04b6c4b7c9a8984a4930dca2e4 (patch)
tree41fcbb3fb5eef6f451ff9967c6a1af9a603e34d0 /Master/texmf-dist/tex/latex/bookest
parent4febea8c0f92417f8455b2b5fd5c6e0e9ac8b1cd (diff)
bookest update (20mar08)
git-svn-id: svn://tug.org/texlive/trunk@7065 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bookest')
-rw-r--r--Master/texmf-dist/tex/latex/bookest/bookest.cls85
1 files changed, 82 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/bookest/bookest.cls b/Master/texmf-dist/tex/latex/bookest/bookest.cls
index 761bc593e84..ac97687e163 100644
--- a/Master/texmf-dist/tex/latex/bookest/bookest.cls
+++ b/Master/texmf-dist/tex/latex/bookest/bookest.cls
@@ -7,7 +7,7 @@
%% Description: This package provides an extension to the %%
%% book class %%
%% %%
-%% Copyright 2007 Riccardo Bresciani %%
+%% Copyright 2007-2008 Riccardo Bresciani %%
%% %%
%% This work may be distributed and/or modified under the %%
%% conditions of the LaTeX Project Public License, either %%
@@ -27,13 +27,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{bookest}[2007/05/22 v1.0.4 Extension for the book class]
+\ProvidesClass{bookest}[2008/03/20 v1.1 Extension for the book class]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions
\LoadClass{book}
\RequirePackage{color}
-\RequirePackage{pdfcolmk} % Suggerito da M.Dominici (GuIT) per ovviare alle limitazioni di pdfTeX 1.30 (colorstack)
\RequirePackage{setspace}
\RequirePackage{graphicx}
\RequirePackage{hyperref}
@@ -219,6 +218,52 @@
\setlength{\parskip}{0pt}
}
+%%% Comandi e ambienti per article-like
+\newcommand{\nomatter}{
+ \renewcommand{\frontmatter}{}
+ \renewcommand{\mainmatter}{}
+ \renewcommand{\backmatter}{}
+ }
+\newcommand{\notinarticle}{}
+
+%%% Alias per article-like: non indispensabili, solo per ordine mentale
+\newcommand{\artsection}[1]{\chapter{#1}}
+\newcommand{\artsubsection}[1]{\section{#1}}
+\newcommand{\artsubsubsection}[1]{\subsection{#1}}
+\newcommand{\artparagraph}[1]{\subsubsection{#1}}
+\newcommand{\artsubparagraph}[1]{\paragraph{#1}}
+
+%%% Opzioni per article-like
+\DeclareOption{nomatter}{
+ \nomatter
+}
+\DeclareOption{article}{
+\let\chapter\section
+\let\section\subsection
+\let\subsection\subsubsection
+\let\subsubsection\paragraph
+\let\paragraph\subparagraph
+\makeatletter
+\renewcommand \thesection {\@arabic\c@section}
+\renewcommand{\maketitle}{\thispagestyle{plain}{\centering\LARGE\textbf{\colorB\@title}\Large\\\vspace{1ex}\@author\\\vspace{1ex}\today\\\vspace{3ex}}}
+\makeatother
+\renewcommand{\titling}{
+ \maketitle
+ }
+\let\toctemp\tableofcontents
+\renewcommand{\tableofcontents}{
+ \begin{center}
+ \begin{minipage}{0.9\textwidth}
+ \toctemp
+ \end{minipage}
+ \end{center}
+ \vspace{3ex}
+ }
+\let\include\input
+\setleftmark{\rightmark}
+\renewcommand{\notinarticle}[1]{}
+}
+
%%% Opzioni per la title page
\DeclareOption{nofooter}{
\renewcommand{\titling}{
@@ -413,6 +458,35 @@
\vspace{\stretch{3}}
\end{titlepage}}
}
+\DeclareOption{logo-toplcr}{
+\renewcommand{\titling}{
+ \begin{titlepage}
+ \setlogooptions{width=0.1\paperwidth}
+ \inslogo{\leftlogo}\hfill\inslogo{\logo}\hfill\inslogo{\rightlogo}
+ \vspace{\stretch{2}}
+ \maketitle
+ \vspace{\stretch{3}}
+ \titlingpagemiddle
+ \vspace{\stretch{3}}
+ \begin{center}
+ \titlingpageprefooter
+ {\colorB\rule[.5ex]{50ex}{.4pt}}\\
+ \titlingpagefooter
+ \end{center}
+\end{titlepage}}
+}
+\DeclareOption{logo-toplcr-nofooter}{
+\renewcommand{\titling}{
+ \begin{titlepage}
+ \setlogooptions{width=0.1\paperwidth}
+ \inslogo{\leftlogo}\hfill\inslogo{\logo}\hfill\inslogo{\rightlogo}
+ \vspace{\stretch{3}}
+ \maketitle
+ \vspace{\stretch{3}}
+ \titlingpagemiddle
+ \vspace{\stretch{3}}
+\end{titlepage}}
+}
%% Colori di sezioni, sottosezioni, etc.
\newcommand{\sectionfont}{\normalfont\colorA\Large\bfseries}
@@ -558,5 +632,10 @@
}
\makeatother
+% Rimozione epigrafi (utile per fare diverse versioni di un documento)
+\newcommand{\noepigraph}{\renewcommand{\epigraph}[4]{}}
+\DeclareOption{noepigraph}{
+ \noepigraph
+}
\ProcessOptions \ No newline at end of file