summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty')
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty85
1 files changed, 46 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty b/Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty
index ad9c624aab5..9c07fd40cae 100644
--- a/Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty
+++ b/Master/texmf-dist/doc/latex/mycv/Doc/mycv-macros.sty
@@ -8,8 +8,8 @@
\RequirePackage{svn-prov}
\ProvidesPackageSVN
- {$Id: mycv-macros.sty 66 2012-04-28 14:38:41Z ghangenit $}
- [\version][A package providing some useful commands]
+ {$Id: mycv-macros.sty 85 2012-05-12 17:07:42Z ghangenit $}
+ [v\version][A package providing some useful commands for writing this doc]
\ifdraft
% ---------------------------------
@@ -254,41 +254,48 @@
% for backgroundcolor color
\definecolor{lightergray}{gray}{0.99}
-\lstset{language=[LaTeX]Tex,
- keywordstyle=\color{RoyalBlue},
- basicstyle=\normalfont\ttfamily,
- commentstyle=\color{Emerald}\ttfamily,
- stringstyle=\rmfamily,
- numbers=none,%left,% where to put the line-numbers ('none' if no numbers are wanted)
- % to decomment for having numbers inside the listing box instead outside
- %xleftmargin=2em,frame=single,framexleftmargin=1.5em,
- numberstyle=\scriptsize\color{gray},% the style that is used for the line-numbers
- stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
- numbersep=8pt,% how far the line-numbers are from the code
- showstringspaces=false,
- breaklines=true,
- frameround=ftff,
- frame=lines,
- moredelim=[is][\color{orange}]{|}{|},
- moredelim=[is][\color{brown}]{$}{$},
- moredelim=[is][\color{red}]{&}{&},
- backgroundcolor=\color{lightergray}
-}
+\lstnewenvironment{latexcode}[1][]{%
+ \small
+ \lstset{language=[LaTeX]Tex,
+ keywordstyle=\color{RoyalBlue},
+ basicstyle=\normalfont\ttfamily,
+ commentstyle=\color{Emerald}\ttfamily,
+ stringstyle=\rmfamily,
+ numbers=none,%left,% where to put the line-numbers ('none' if no numbers are wanted)
+ % to decomment for having numbers inside the listing box instead outside
+ %xleftmargin=2em,frame=single,framexleftmargin=1.5em,
+ numberstyle=\scriptsize\color{gray},% the style that is used for the line-numbers
+ stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
+ numbersep=8pt,% how far the line-numbers are from the code
+ showstringspaces=false,
+ breaklines=true,
+ frameround=ftff,
+ frame=lines,
+ moredelim=[is][\color{orange}]{|}{|},
+ moredelim=[is][\color{brown}]{$}{$},
+ moredelim=[is][\color{red}]{&}{&},
+ moredelim=[is][\textbf]{||}{||},
+ backgroundcolor=\color{lightergray},
+ #1 % option that may be passed
+ }
+ \lstset{
+ morekeywords=%
+ {%
+ RequirePackage,newboolean,DeclareOption,setboolean,%
+ ProcessOptions,PackageError,ifthenelse,boolean,%
+ MakeTextLowercase,@ifpackageloaded,undefined,%
+ DeclareRobustCommand,MakeTextUppercase,conditionalblock,%
+ color,titlerule,titlespacing,ifmodel,ifoption,mypdftitle,%
+ labelitemi,hypersetup,setlength,mydecorationsSetLineWidth,
+ mydecorationsPathmorphing,mycfoot,myrenderlayout,cvdec,%
+ definecolor,includegraphics,ifdefined,mcbegin,mcend,%
+ ProvidesPackage,PackageInfo,PackageWarningNoLine,%
+ @ifclassloaded,ExecuteOptions,PackageWarning,textcolor%
+ },%
+ commentstyle=\color{Emerald}\ttfamily,%
+ frame=lines%
+ }
+}{\codeskip}
-\lstset{
- morekeywords=%
- {%
- RequirePackage,newboolean,DeclareOption,setboolean,%
- ProcessOptions,PackageError,ifthenelse,boolean,%
- MakeTextLowercase,@ifpackageloaded,undefined,%
- DeclareRobustCommand,MakeTextUppercase,conditionalblock,%
- color,titlerule,titlespacing,ifmodel,ifoption,%
- labelitemi,hypersetup,setlength,mydecorationsSetLineWidth,
- mydecorationsPathmorphing,mycfoot,myrenderlayout,cvdec,%
- definecolor,includegraphics,ifdefined,mcbegin,mcend,%
- ProvidesPackage,PackageInfo,PackageWarningNoLine,%
- @ifclassloaded,ExecuteOptions,PackageWarning,textcolor%
- },%
- commentstyle=\color{Emerald}\ttfamily,%
- frame=lines%
-} \ No newline at end of file
+% include le macro per la pergamena se richiesto
+\ifparchment\input{mycv-decs.def}\fi \ No newline at end of file