diff options
author | Karl Berry <karl@freefriends.org> | 2008-10-28 00:23:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-10-28 00:23:03 +0000 |
commit | 3763fa67896d561bf1715831807d0bf173a87736 (patch) | |
tree | 1f4c6c374f68d5353f5cef4197bb598a7ed46ceb /Master/texmf-dist/tex/latex/arsclassica/adhoc.sty | |
parent | 82c50ef60580b22f3f55e214da923d46ab440d61 (diff) |
new latex package arsclassica (27oct08)
git-svn-id: svn://tug.org/texlive/trunk@11083 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/arsclassica/adhoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/arsclassica/adhoc.sty | 113 |
1 files changed, 113 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}% +} |