From ed6afc11e008945cafecd21b5af6f931918ec4fb Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 6 Aug 2011 23:34:47 +0000 Subject: arsclassica (30jun11) git-svn-id: svn://tug.org/texlive/trunk@23434 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/arsclassica/adhoc.sty | 142 ---------- .../tex/latex/arsclassica/arsclassica.sty | 307 +++------------------ 2 files changed, 34 insertions(+), 415 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/arsclassica/adhoc.sty (limited to 'Master/texmf-dist/tex/latex/arsclassica') diff --git a/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty b/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty deleted file mode 100644 index b47b2308b8d..00000000000 --- a/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty +++ /dev/null @@ -1,142 +0,0 @@ -\graphicspath{{Graphics/}} - -\newcommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} - -\newcommand{\ita}[1]{% - \begin{otherlanguage*}{italian}#1\end{otherlanguage*}} - -\DeclareRobustCommand*{\pkgname}[1]{{\normalfont\sffamily#1}% -\index{Package!#1@\textsf{#1}}% -\index{#1@\textsf{#1}}} - -\DeclareRobustCommand*{\envname}[1]{{\normalfont\ttfamily#1}% -\index{Environment!#1@\texttt{#1}}% -\index{#1@\texttt{#1}}} - -\DeclareRobustCommand*{\optname}[1]{{\normalfont\ttfamily#1}% -\index{Option!#1@\texttt{#1}}% -\index{#1@\texttt{#1}}} - -\DeclareRobustCommand*{\clsname}[1]{{\normalfont\sffamily#1}% -\index{Class!#1@\textsf{#1}}% -\index{#1@\textsf{#1}}} - -\DeclareRobustCommand*{\cmdname}[1]{\mbox{\lstinline!\\#1!}% -\index{#1@\texttt{\hspace*{-1.2ex}\textbackslash#1}}} - -\DeclareRobustCommand*{\classicthesis}{Classic\-Thesis} - -\DeclareRobustCommand*{\arsclassica}{{\normalfont\sffamily ArsClassica}} - -\newcommand{\meta}[1]{$\langle${\normalfont\itshape#1}$\rangle$} - -\DeclareRobustCommand*{\miktex}{MiK\TeX% -\index{miktex@MiK\protect\TeX}} - -\DeclareRobustCommand*{\texlive}{\TeX{}~Live% -\index{texlive@\protect\TeX{}~Live}} - - -\lstset{basicstyle=\normalfont\ttfamily} -\lstset{flexiblecolumns=false} -\lstset{moredelim={[is][\ttfamily]{!?}{?!}}} -\lstset{escapeinside={£*}{*£}} -\lstset{firstnumber=last} - -\lstnewenvironment{code}% -{\setkeys{lst}{columns=fullflexible,keepspaces=true}% -\lstset{basicstyle=\small\ttfamily}% -}{} - -\lstset{extendedchars} -\lstnewenvironment{sidebyside}{% - \global\let\lst@intname\@empty - \setbox\z@=\hbox\bgroup - \setkeys{lst}{columns=fullflexible,% - linewidth=0.45\linewidth,keepspaces=true,% - breaklines=true,% - breakindent=0pt,% - boxpos=t,% - basicstyle=\small\ttfamily -}% - \lst@BeginAlsoWriteFile{\jobname.tmp}% -}{% - \lst@EndWriteFile\egroup - \begin{center}% - \begin{minipage}{0.45\linewidth}% - \hbox to\linewidth{\box\z@\hss} - \end{minipage}% - \qquad - \begin{minipage}{0.45\linewidth}% - \setkeys{lst}{frame=none}% - \leavevmode \catcode`\^^M=5\relax - \small\input{\jobname.tmp}% - \end{minipage}% - \end{center}% -} - -\definecolor{lightergray}{gray}{0.99} - -\lstset{language=[LaTeX]Tex, - keywordstyle=\color{RoyalBlue}, - basicstyle=\normalfont\ttfamily, - commentstyle=\color{Emerald}\ttfamily, - stringstyle=\rmfamily, - numbers=none, - numberstyle=\scriptsize, - stepnumber=5, - numbersep=8pt, - showstringspaces=false, - breaklines=true, - frameround=ftff, - frame=lines, - backgroundcolor=\color{lightergray} -} - -\lstset{ morekeywords=% - {RequirePackage,newboolean,DeclareOption,setboolean,% - ProcessOptions,PackageError,ifthenelse,boolean,% - chapterNumber,sodef,textls,allcapsspacing,% - MakeTextLowercase,orgtheindex,endtheindex,% - @ifpackageloaded,undefined,sfdefault,% - DeclareRobustCommand,spacedallcaps,% - microtypesetup,MakeTextUppercase,lowsmallcapsspacing,% - lowsmallcapsspacing,spacedlowsmallcaps, - spacedlowsmallcaps,lehead,headmark,color,% - headfont,partname,thepart,titleformat,part, - titlerule,chapter,thechapter,thesection,% - subsection,thesubsection,thesubsubsection,% - paragraph,theparagraph,descriptionlabel,titlespacing,% - graffito,lineskiplimit,finalhyphendemerits,% - colorbox,captionsetup,labelitemi,% - myincludegraphics,hypersetup,setlength,% - definecolor,lsstyle,textssc,subsubsection,% - graffito@setup,includegraphics,ifdefined,% - myTitle,textcopyright,myName,lstset,lstnewenvironment,% - setkeys,lst@BeginAlsoWriteFile,contentsname,% - toc@heading,@ppljLaTeX,z@,check@mathfonts,% - sf@size,ptctitle,mtctitle,stctitle,lst@intname,% - @empty,math@fontsfalse,@ppljscTeX,@iwonaTeX,% - @iwonascLaTeX,@ctTeX,tw@,ct@sc,@ctTeX,f@family,% - f@shape,ct@sc,ctLaTeX,ctLaTeXe,@twoe,@sctwoe,% - texorpdfstring,m@th,ctTeX,@mkboth,ProvidesPackage,% - theindex,PackageInfo,PackageWarningNoLine,% - mtifont,mtcindent,@iwonaLaTeX,@ppljTeX,@iwonascTeX,% - rohead,orgendtheindex,@ppljscLaTeX,% - @ifclassloaded,toc@headingbkORrp,backreftwosep,% - backrefalt,backreflastsep,areaset,pnumfont,% - arsincludegraphics,ExecuteOptions,PackageWarning,% - MessageBreak,ars@@includegraphics,ifcld@backref},% - commentstyle=\color{Emerald}\ttfamily,% - frame=lines} - - -\AtBeginDocument{ - \def\vr@f#1{% - \leavevmode\unskip\vref@space - \begingroup - \hyperref[{#1}]{\ref*{#1}}% - \vpageref[\unskip]{#1}% - \endgroup - } -} \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty index 4046d71c78d..5b972146b65 100644 --- a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty +++ b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty @@ -1,243 +1,14 @@ %************************************************************ % arsclassica.sty % -% copyright (C) 2008-2010 Lorenzo Pantieri +% copyright (C) 2008-2011 Lorenzo Pantieri % http://www.lorenzopantieri.net/ % %************************************************************ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{arsclassica}[2010/02/14 v2.7 Customizing ClassicThesis (LP)] -\RequirePackage{classicthesis-ldpkg} +\ProvidesPackage{arsclassica}[2011/06/29 v3.0 Customizing ClassicThesis (LP)] \RequirePackage{classicthesis} - -%************************************************************ -% 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 - - -%************************************************************ -% The index -%************************************************************ -\@ifpackageloaded{makeidx} -{% - \RequirePackage{multicol} - \let\orgtheindex\theindex - \let\orgendtheindex\endtheindex - \def\theindex{% - \def\twocolumn{\begin{multicols}{2}}% - \def\onecolumn{}% - \clearpage - \orgtheindex} - \def\endtheindex{% - \end{multicols}% - \orgendtheindex} - \makeindex -} -{\relax} - - -%************************************************************ -% backref -%************************************************************ -\ifcld@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". % - This activates italian language in "backref".} - \renewcommand*{\backreftwosep}{ e~} - \renewcommand*{\backreflastsep}{ e~} - \renewcommand*{\backrefalt}[4]{% - \ifcase #1 % - \relax% - \or - (Citato a pagina~#2.)% - \else - (Citato alle pagine~#2.) - \fi} -} -{\relax} -\fi - -%************************************************************ -% minitoc -%************************************************************ -\@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} - \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} - - %************************************************************ % Iwona %************************************************************ @@ -359,8 +130,21 @@ {.8\baselineskip}[\marginparsep] \titlespacing*{\paragraph}{0pt}{1\baselineskip}% {1\baselineskip} - - + % + \newcommand\formatchapter[1]{% + \vbox to \ht\strutbox{ + \setbox0=\hbox{\chapterNumber\thechapter\hspace{10pt}\vline\ } + \advance\hsize-\wd0 \advance\hsize-10pt\raggedright + \spacedallcaps{#1}\vss}} + \titleformat{\chapter}[block] + {\normalfont\Large\sffamily} + {\textcolor{halfgray}{\chapterNumber\thechapter} + \hspace{10pt}\vline\ }{10pt} + {\formatchapter} + % + \rofoot[\mbox{\makebox[0pt][l]{\kern1em\thepage}}]{} + + %************************************************************ % itemize %************************************************************ @@ -374,27 +158,6 @@ \captionsetup[table]{skip=\medskipamount} -%************************************************************ -% graffito -%************************************************************ -\let\graffito\relax -\def\graffito@setup{% - \slshape\footnotesize% - \parindent=0pt \lineskip=0pt \lineskiplimit=0pt % - \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300 - \doublehyphendemerits=100000 - \finalhyphendemerits=\doublehyphendemerits} -\DeclareRobustCommand{\graffito}[1]{\marginpar - [\graffito@setup\raggedleft\hspace{0pt}{#1}] - {\graffito@setup\raggedright\hspace{0pt}{#1}}} - - -%************************************************************ -% linespread -%************************************************************ -\linespread{1.00} - - %************************************************************ % text body %************************************************************ @@ -423,17 +186,13 @@ \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} %************************************************************ % hyperref %************************************************************ \hypersetup{% - colorlinks=true, linktocpage=true, pdfstartpage=3, + colorlinks=true, linktocpage=true, pdfstartpage=1, pdfstartview=FitV, breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,% plainpages=false, bookmarksnumbered, @@ -441,25 +200,28 @@ bookmarksopenlevel=1,% hypertexnames=true, pdfhighlight=/O,% urlcolor=webbrown, linkcolor=RoyalBlue, - citecolor=RoyalBlue,% - pagecolor=RoyalBlue,% + citecolor=webgreen,% + hyperfootnotes=false,pdfpagelabels, pdfsubject={},% pdfkeywords={},% pdfcreator={pdfLaTeX},% pdfproducer={LaTeX con hyperref e ClassicThesis}% } -\ifdefined\myTitle - \hypersetup{pdftitle={\myTitle}} -\else - \relax -\fi -\ifdefined\myName - \hypersetup{pdfauthor={\textcopyright\ \myName}} -\else - \relax -\fi +%************************************************************ +% minitoc +%************************************************************ +\@ifpackageloaded{minitoc} +{% + \MakeLowercase{\gdef\noexpand\ptctitle{\ptctitle}} + \MakeLowercase{\gdef\noexpand\mtctitle{\mtctitle}} + \MakeLowercase{\gdef\noexpand\stctitle{\stctitle}} + \setlength{\mtcindent}{0pt} + \renewcommand{\mtifont}{\normalsize\sffamily + \scshape\lsstyle} +} +{} %************************************************************ @@ -526,8 +288,7 @@ _\varepsilon$} \DeclareRobustCommand\ctTeX{% - \texorpdfstring{\textls[1]{\csname @\f@family\f@shape TeX% - \endcsname}}{TeX}} + \texorpdfstring{\textls[1]{\@ctTeX}}{TeX}} \def\toc@headingbkORrp{% \def\toc@heading{% -- cgit v1.2.3