summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/arsclassica
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-01-04 00:47:46 +0000
committerKarl Berry <karl@freefriends.org>2009-01-04 00:47:46 +0000
commitf7f3f7dd671833ade649967a9528752a36f742fa (patch)
tree85a3d25317a9e0e3e021f987d1baa46aec85a116 /Master/texmf-dist/tex/latex/arsclassica
parent33c1f245e0653585bfd7f885a5880e6fbd2d1d26 (diff)
arsclassica 2.5.3
git-svn-id: svn://tug.org/texlive/trunk@11809 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/arsclassica')
-rw-r--r--Master/texmf-dist/tex/latex/arsclassica/adhoc.sty37
-rw-r--r--Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty170
2 files changed, 181 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty b/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty
index 24f9b67e82e..af6369a1ff3 100644
--- a/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty
+++ b/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty
@@ -1,36 +1,32 @@
-\graphicspath{{Immagini/}}
+\graphicspath{{Graphics/}}
\newcommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}}
-\newcommand{\inglese}[1]{%
- \begin{otherlanguage*}{english}#1\end{otherlanguage*}}
+\newcommand{\ita}[1]{%
+ \begin{otherlanguage*}{italian}#1\end{otherlanguage*}}
-\DeclareRobustCommand*{\pacchetto}[1]{{\normalfont\ttfamily#1}%
-\index{Pacchetto!#1@\texttt{#1}}%
-\index{#1@\texttt{#1}}}
-
-\DeclareRobustCommand*{\ambiente}[1]{{\normalfont\ttfamily#1}%
-\index{Ambiente!#1@\texttt{#1}}%
-\index{#1@\texttt{#1}}}
+\DeclareRobustCommand*{\pkgname}[1]{{\normalfont\sffamily#1}%
+\index{Package!#1@\textsf{#1}}%
+\index{#1@\textsf{#1}}}
-\DeclareRobustCommand*{\opzione}[1]{{\normalfont\ttfamily#1}%
-\index{Opzione!#1@\texttt{#1}}%
+\DeclareRobustCommand*{\envname}[1]{{\normalfont\ttfamily#1}%
+\index{Environment!#1@\texttt{#1}}%
\index{#1@\texttt{#1}}}
-\DeclareRobustCommand*{\classe}[1]{{\normalfont\ttfamily#1}%
-\index{Classe!#1@\texttt{#1}}%
+\DeclareRobustCommand*{\optname}[1]{{\normalfont\ttfamily#1}%
+\index{Option!#1@\texttt{#1}}%
\index{#1@\texttt{#1}}}
-\DeclareRobustCommand*{\programma}[1]{{\normalfont\ttfamily#1}%
-\index{Programma!#1@\texttt{#1}}%
-\index{#1@\texttt{#1}}}
+\DeclareRobustCommand*{\clsname}[1]{{\normalfont\sffamily#1}%
+\index{Class!#1@\textsf{#1}}%
+\index{#1@\textsf{#1}}}
-\DeclareRobustCommand*{\comando}[1]{\mbox{\lstinline!\\#1!}%
+\DeclareRobustCommand*{\cmdname}[1]{\mbox{\lstinline!\\#1!}%
\index{#1@\texttt{\hspace*{-1.2ex}\textbackslash#1}}}
\DeclareRobustCommand*{\classicthesis}{Classic\-Thesis}
-\DeclareRobustCommand*{\arsclassica}{{\normalfont\ttfamily ArsClassica}}
+\DeclareRobustCommand*{\arsclassica}{{\normalfont\sffamily ArsClassica}}
\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$}
@@ -71,7 +67,8 @@
mtifont,mtcindent,@iwonaLaTeX,@ppljTeX,@iwonascTeX,%
rohead,orgendtheindex,@ppljscLaTeX,%
@ifclassloaded,toc@headingbkORrp,backreftwosep,%
- backrefalt,backreflastsep,areaset,pnumfont},%
+ backrefalt,backreflastsep,areaset,pnumfont,%
+ arsincludegraphics},%
commentstyle=\color{Emerald}\ttfamily,%
frame=lines}
diff --git a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty
index 3dbc42c96e2..5ce6c101544 100644
--- a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty
+++ b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty
@@ -1,12 +1,12 @@
%************************************************************
% arsclassica.sty
%
-% copyright (C) 2008 Lorenzo Pantieri
+% copyright (C) 2008-2009 Lorenzo Pantieri
% http://www.lorenzopantieri.net/
%
%************************************************************
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{arsclassica}[2008/10/18 v2.5 Customising ClassicThesis (LP)]
+\ProvidesPackage{arsclassica}[2009/01/01 v2.5 Customizing ClassicThesis (LP)]
\RequirePackage{classicthesis-ldpkg}
\RequirePackage{classicthesis}
@@ -14,8 +14,17 @@
%************************************************************
% Options
%************************************************************
+\newboolean{english}
+\newboolean{french}
+\newboolean{german}
+\newboolean{spanish}
\newboolean{italian}
+\DeclareOption{english}{\setboolean{english}{true}}
+\DeclareOption{french}{\setboolean{french}{true}}
+\DeclareOption{german}{\setboolean{german}{true}}
+\DeclareOption{spanish}{\setboolean{spanish}{true}}
\DeclareOption{italian}{\setboolean{italian}{true}}
+\ExecuteOptions{english}
\ProcessOptions\relax
@@ -43,6 +52,74 @@
%************************************************************
% backref
%************************************************************
+\ifthenelse{\boolean{english}}%
+{%
+ \PackageInfo{arsclassica}{Using option "english". %
+ This activates english language in "backref".}
+ \renewcommand*{\backreftwosep}{ and~}
+ \renewcommand*{\backreflastsep}{, and~}
+ \renewcommand*{\backrefalt}[4]{%
+ \ifcase #1 %
+ \relax%
+ \or
+ (Cited on page~#2.)%
+ \else
+ (Cited on pages~#2.)
+ \fi}
+}
+{\relax}
+
+\ifthenelse{\boolean{french}}%
+{%
+ \PackageInfo{arsclassica}{Using option "french". %
+ This activates french language in "backref".}
+ \renewcommand*{\backreftwosep}{ et~}
+ \renewcommand*{\backreflastsep}{ et~}
+ \renewcommand*{\backrefalt}[4]{%
+ \ifcase #1 %
+ \relax%
+ \or
+ (Cit\'e \`a page~#2.)%
+ \else
+ (Cit\'e aux pages~#2.)
+ \fi}
+}
+{\relax}
+
+\ifthenelse{\boolean{german}}%
+{%
+ \PackageInfo{arsclassica}{Using option "german". %
+ This activates german language in "backref".}
+ \renewcommand*{\backreftwosep}{ und~}
+ \renewcommand*{\backreflastsep}{ und~}
+ \renewcommand*{\backrefalt}[4]{%
+ \ifcase #1 %
+ \relax%
+ \or
+ (Zitiert auf Seite~#2.)%
+ \else
+ (Zitiert auf Seiten~#2.)
+ \fi}
+}
+{\relax}
+
+\ifthenelse{\boolean{spanish}}%
+{%
+ \PackageInfo{arsclassica}{Using option "spanish". %
+ This activates spanish language in "backref".}
+ \renewcommand*{\backreftwosep}{ y~}
+ \renewcommand*{\backreflastsep}{ y~}
+ \renewcommand*{\backrefalt}[4]{%
+ \ifcase #1 %
+ \relax%
+ \or
+ (Citado en la p\'agina~#2.)%
+ \else
+ (Citado en las p\'aginas~#2.)
+ \fi}
+}
+{\relax}
+
\ifthenelse{\boolean{italian}}%
{%
\PackageInfo{arsclassica}{Using option "italian". %
@@ -66,6 +143,82 @@
%************************************************************
\@ifpackageloaded{minitoc}
{%
+ \ifthenelse{\boolean{english}}%
+ {%
+ \def\ptctitle{contents}
+ \def\mtctitle{contents}
+ \def\stctitle{contents}
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+ {%
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+}
+{\relax}
+
+\@ifpackageloaded{minitoc}
+{%
+ \ifthenelse{\boolean{french}}%
+ {%
+ \def\ptctitle{mati\`eres}
+ \def\mtctitle{mati\`eres}
+ \def\stctitle{mati\`eres}
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+ {%
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+}
+{\relax}
+
+\@ifpackageloaded{minitoc}
+{%
+ \ifthenelse{\boolean{german}}%
+ {%
+ \def\ptctitle{inhaltsverzeichnis}
+ \def\mtctitle{inhaltsverzeichnis}
+ \def\stctitle{inhaltsverzeichnis}
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+ {%
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+}
+{\relax}
+
+\@ifpackageloaded{minitoc}
+{%
+ \ifthenelse{\boolean{spanish}}%
+ {%
+ \def\ptctitle{\'indice}
+ \def\mtctitle{\'indice}
+ \def\stctitle{\'indice}
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+ {%
+ \setlength{\mtcindent}{0pt}
+ \renewcommand{\mtifont}{\normalsize\sffamily%
+ \scshape\lsstyle}
+ }
+}
+{\relax}
+
+\@ifpackageloaded{minitoc}
+{%
\ifthenelse{\boolean{italian}}%
{%
\def\ptctitle{indice}
@@ -264,10 +417,15 @@
%************************************************************
\definecolor{aliceblue}{RGB}{240,248,255}
-\newcommand{\myincludegraphics}[2][]{%
-\begingroup\setlength{\fboxsep}{0pt}%
-\colorbox{aliceblue}{\includegraphics[#1]{#2}}%
-\endgroup}
+\let\ars@@includegraphics\includegraphics
+\newcommand{\arsincludegraphics}[2][]{%
+ \begingroup\setlength{\fboxsep}{0pt}%
+ \colorbox{aliceblue}{\ars@@includegraphics[#1]{#2}}%
+ \endgroup}
+\def\myincludegraphics{\PackageWarning{classiclatex}{%
+ The command \noexpand\myincludegraphics is
+ obsolete;\MessageBreak use \string\arsincludegraphics}%
+ \arsincludegraphics}
%************************************************************