diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/arsclassica')
-rw-r--r-- | Master/texmf-dist/tex/latex/arsclassica/adhoc.sty | 113 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty | 379 |
2 files changed, 492 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty b/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty new file mode 100644 index 00000000000..505464593a7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/arsclassica/adhoc.sty @@ -0,0 +1,113 @@ +\graphicspath{{Immagini/}} + +\newcommand{\mail}[1]{\href{mailto:#1}{\texttt{#1}}} + +\newcommand{\inglese}[1]{% + \begin{otherlanguage*}{english}#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*{\opzione}[1]{{\normalfont\ttfamily#1}% +\index{Opzione!#1@\texttt{#1}}% +\index{#1@\texttt{#1}}} + +\DeclareRobustCommand*{\classe}[1]{{\normalfont\ttfamily#1}% +\index{Classe!#1@\texttt{#1}}% +\index{#1@\texttt{#1}}} + +\DeclareRobustCommand*{\programma}[1]{{\normalfont\ttfamily#1}% +\index{Programma!#1@\texttt{#1}}% +\index{#1@\texttt{#1}}} + +\DeclareRobustCommand*{\comando}[1]{\mbox{\lstinline!\\#1!}% +\index{#1@\texttt{\hspace*{-1.2ex}\textbackslash#1}}} + +\DeclareRobustCommand*{\classicthesis}{Classic\-Thesis} + +\DeclareRobustCommand*{\arsclassica}{{\normalfont\ttfamily 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{ 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},% + commentstyle=\color{Emerald}\ttfamily,% + frame=lines} + +\lstset{basicstyle=\normalfont\ttfamily} +\lstset{flexiblecolumns=false} +\lstset{moredelim={[is][\ttfamily]{!?}{?!}}} +\lstset{escapeinside={£*}{*£}} + +\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}% +} diff --git a/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty new file mode 100644 index 00000000000..8d526b359b3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/arsclassica/arsclassica.sty @@ -0,0 +1,379 @@ +%************************************************************ +% arsclassica.sty +% +% copyright (C) 2008 Lorenzo Pantieri +% http://www.lorenzopantieri.net/ +% +%************************************************************ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{arsclassica}[2008/10/18 v2.5 Customising ClassicThesis (LP)] +\RequirePackage{classicthesis-ldpkg} +\RequirePackage{classicthesis} + + +%************************************************************ +% Options +%************************************************************ +\newboolean{italian} +\DeclareOption{italian}{\setboolean{italian}{true}} +\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 +%************************************************************ +\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} + + +%************************************************************ +% minitoc +%************************************************************ +\@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 +%************************************************************ +\renewcommand{\sfdefault}{iwona} + + +%************************************************************ +% Chapter numbers +%************************************************************ +\let\chapterNumber\undefined +\ifthenelse{\boolean{@eulerchapternumbers}} +{\newfont{\chapterNumber}{eurb10 scaled 5000}}% +{\newfont{\chapterNumber}{pplr9d scaled 5000}} + + +%************************************************************ +% Fancy stuff +%************************************************************ +\ifthenelse{\boolean{@minionprospacing}}% +{% + \DeclareRobustCommand{\spacedallcaps}[1]{\sffamily% + \textssc{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textssc{\MakeTextLowercase{#1}}}% +}{% + \ifthenelse{\boolean{@pdfspacing}}% + {% + \microtypesetup{expansion=false}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\sffamily\textls[160]{\MakeTextUppercase{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\sffamily\textls[80]{\scshape\MakeTextLowercase{#1}}}% + }{% + \RequirePackage{soul} + \sodef\allcapsspacing{\sffamily\upshape}% + {0.15em}{0.65em}{0.6em}% + \sodef\lowsmallcapsspacing{\sffamily\scshape}% + {0.075em}{0.5em}{0.6em}% + \DeclareRobustCommand{\spacedallcaps}[1]% + {\MakeTextUppercase{\allcapsspacing{#1}}}% + \DeclareRobustCommand{\spacedlowsmallcaps}[1]% + {\MakeTextLowercase{\textsc% + {\lowsmallcapsspacing{#1}}}}% + }% +} +%************************************************************ + + +%************************************************************ +% Headlines +%************************************************************ +\renewcommand{\sectionmark}[1]{\markright{\textsc% +{\MakeTextLowercase{\thesection}} \spacedlowsmallcaps{#1}}} +\lehead{\mbox{\llap{\small\thepage\kern1em\color{halfgray}% +\vline}% +\color{halfgray}\hspace{0.5em}\headmark\hfil}} +\rohead{\mbox{\hfil{\color{halfgray}% +\headmark\hspace{0.5em}}% +\rlap{\small{\color{halfgray}\vline}\kern1em\thepage}}} +\renewcommand{\headfont}{\normalfont\sffamily} +\renewcommand{\pnumfont}{\small\sffamily} + + +%************************************************************ +% Layout of the chapter-, section-, subsection-, +% subsubsection-, paragraph and description-headings +%************************************************************ +\RequirePackage{titlesec} + % parts + \ifthenelse{\boolean{@parts}}% + {% + \titleformat{\part}[display] + {\normalfont\centering\large}% + {\thispagestyle{empty}\partname~\thepart}{1em}% + {\color{Maroon}\spacedallcaps} + }{\relax} + % chapters + \ifthenelse{\boolean{@linedheaders}}% + {% + \titleformat{\chapter}[display]% + {\relax}{\raggedleft{\color{halfgray}% + \chapterNumber\thechapter} \\ }{0pt}% + {\titlerule\vspace*{.9\baselineskip}\raggedright% + \spacedallcaps}% + [\normalsize\vspace*{.8\baselineskip}\titlerule]% + }{% + \titleformat{\chapter}[block]% + {\normalfont\Large\sffamily}% + {{\color{halfgray}\chapterNumber\thechapter% + \hspace{10pt}\vline} }{10pt}% + {\spacedallcaps}} + % sections + \titleformat{\section} + {\normalfont\Large\sffamily}{\textsc% + {\MakeTextLowercase{\thesection}}}% + {1em}{\spacedlowsmallcaps} + % subsections + \titleformat{\subsection} + {\normalfont\sffamily}{\textsc{\MakeTextLowercase% + {\thesubsection}}}{1em}{\normalsize} + % subsubsections + \titleformat{\subsubsection} + {\normalfont\sffamily\itshape}{\textsc% + {\MakeTextLowercase{\thesubsubsection}}}% + {1em}{\normalsize\itshape} + % paragraphs + \titleformat{\paragraph}[runin] + {\normalfont\normalsize\sffamily}{\textsc% + {\MakeTextLowercase{\theparagraph}}}% + {0pt}{\spacedlowsmallcaps} + % descriptionlabels + \renewcommand{\descriptionlabel}[1]{\hspace*{\labelsep}% + \bfseries\spacedlowsmallcaps{#1}} + \titlespacing*{\chapter}{0pt}{1\baselineskip}% + {2\baselineskip} + \titlespacing*{\section}{0pt}{2\baselineskip}% + {.8\baselineskip}[\marginparsep] + \titlespacing*{\subsection}{0pt}{1.5\baselineskip}% + {.8\baselineskip}[\marginparsep] + \titlespacing*{\paragraph}{0pt}{1\baselineskip}% + {1\baselineskip} + + +%************************************************************ +% itemize +%************************************************************ +\renewcommand\labelitemi{\color{halfgray}$\bullet$} + + +%************************************************************ +% caption +%************************************************************ +\captionsetup{format=hang,font=small,labelfont={sf,bf}} +\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 +%************************************************************ +\ifthenelse{\boolean{@a5paper}}% + {\relax}% + {% A4 + \ifthenelse{\boolean{@minionpro}}% + {\relax}% + {% Palatino or other + \PackageInfo{classicthesis}{A4 paper, Palatino or other} + \areaset[5mm]{312pt}{699pt} + % 624 + 33 head + 42 head \the\footskip + \setlength{\marginparwidth}{7em}% + \setlength{\marginparsep}{2em}% + }% + } + + +%************************************************************ +% graphicx, xcolor +%************************************************************ +\definecolor{aliceblue}{RGB}{240,248,255} + +\newcommand{\myincludegraphics}[2][]{% +\begingroup\setlength{\fboxsep}{0pt}% +\colorbox{aliceblue}{\includegraphics[#1]{#2}}% +\endgroup} + + +%************************************************************ +% hyperref +%************************************************************ +\hypersetup{% + colorlinks=true, linktocpage=true, pdfstartpage=3, + pdfstartview=FitV, breaklinks=true, pdfpagemode=UseNone, + pageanchor=true, pdfpagemode=UseOutlines,% + plainpages=false, bookmarksnumbered, + bookmarksopen=true,% + bookmarksopenlevel=1,% + hypertexnames=true, pdfhighlight=/O,% + urlcolor=webbrown, linkcolor=RoyalBlue, + citecolor=RoyalBlue,% + pagecolor=RoyalBlue,% + 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 + + +%************************************************************ +% \ctLaTeX, \ctLaTeXe, \ctTeX +%************************************************************ +\def\@ppljLaTeX{{\upshape + \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% + \math@fontsfalse\selectfont A}% + \sbox\tw@ T% + L\kern-.55\wd\z@ + \vbox to\ht\tw@{\copy\z@\vss}% + \kern-.25\wd0 + \@ctTeX}} +\def\@ppljTeX{{\upshape T\kern -.08em \lower .3ex\hbox{E}% +\kern -.08em X}} + +\def\@ppljscLaTeX{{\upshape\scshape + \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% + \math@fontsfalse\selectfont a}% + \sbox\tw@ t% + l\kern-.6\wd\z@ + \vbox to\ht\tw@{\copy\z@\vss}% + \kern-.25\wd0 + \@ctTeX}} +\def\@ppljscTeX{{\upshape\scshape t\kern -.085em +\lower .25ex\hbox{e}\kern -.085em x}} + +\def\@iwonaLaTeX{{\upshape + \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% + \math@fontsfalse\selectfont A}% + \sbox\tw@ T% + L\kern-.5\wd\z@ + \vbox to\ht\tw@{\copy\z@\vss}% + \kern-.2\wd0 + \@ctTeX}} +\def\@iwonaTeX{{\upshape T\kern -.12em \lower .3ex\hbox{E}% + \kern -.12em X}} + +\def\@iwonascLaTeX{{\upshape\scshape + \sbox\z@{\check@mathfonts\fontsize\sf@size\z@% + \math@fontsfalse% + \selectfont a}% + \sbox\tw@ t% + l\kern-.5\wd\z@ + \vbox to\ht\tw@{\copy\z@\vss}% + \kern-.2\wd0 + \@ctTeX}} +\def\@iwonascTeX{{\upshape\scshape t\kern -.1em + \lower .25ex\hbox{e}\kern -.1em x}} + +\def\ct@sc{sc} +\def\@ctTeX{\csname @\f@family\ifx\f@shape\ct@sc sc% +\fi TeX\endcsname} + +\DeclareRobustCommand\ctLaTeX{% + \texorpdfstring{\textls[1]{\csname @\f@family\ifx% + \f@shape\ct@sc sc\fi LaTeX\endcsname}}{LaTeX}} +\DeclareRobustCommand\ctLaTeXe{% + \texorpdfstring{\textls[1]{\ctLaTeX\csname @\ifx% + \f@shape\ct@sc sc\fi twoe\endcsname}}{LaTeX2e}} + +\def\@twoe{\kern.1em$\m@th2_{\textstyle\varepsilon}$} +\def\@sctwoe{\kern.15em$\m@th{\scriptscriptstyle2}% +_\varepsilon$} + +\DeclareRobustCommand\ctTeX{% + \texorpdfstring{\textls[1]{\csname @\f@family\f@shape TeX% + \endcsname}}{TeX}} + +\def\toc@headingbkORrp{% + \def\toc@heading{% + \chapter*{\contentsname}% + \@mkboth{\spacedlowsmallcaps{\contentsname}} + {\spacedlowsmallcaps{\contentsname}}}} +\@ifclassloaded{scrreprt}{\toc@headingbkORrp}{} +\@ifclassloaded{scrbook}{\toc@headingbkORrp}{}
\ No newline at end of file |