From a455f43001821386f0613ac75a8a844f43fbf236 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 5 May 2012 00:45:07 +0000 Subject: mycv (30apr12) git-svn-id: svn://tug.org/texlive/trunk@26208 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/mycv/mycv.cls | 13 +- Master/texmf-dist/tex/latex/mycv/mycv_base.def | 6 +- Master/texmf-dist/tex/latex/mycv/mycv_dec.def | 227 ----------------------- Master/texmf-dist/tex/latex/mycv/mycv_dec.sty | 230 ++++++++++++++++++++++++ Master/texmf-dist/tex/latex/mycv/mycv_misc.def | 14 +- Master/texmf-dist/tex/latex/mycv/mycv_style.def | 104 ----------- Master/texmf-dist/tex/latex/mycv/mycv_style.sty | 125 +++++++++++++ 7 files changed, 366 insertions(+), 353 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_dec.def create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_dec.sty delete mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_style.def create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_style.sty (limited to 'Master/texmf-dist/tex/latex/mycv') diff --git a/Master/texmf-dist/tex/latex/mycv/mycv.cls b/Master/texmf-dist/tex/latex/mycv/mycv.cls index adee0b52d61..32136a21e68 100644 --- a/Master/texmf-dist/tex/latex/mycv/mycv.cls +++ b/Master/texmf-dist/tex/latex/mycv/mycv.cls @@ -21,11 +21,11 @@ \NeedsTeXFormat{LaTeX2e} \RequirePackage{svn-prov} -\def\@versionstr{1.5.3} +\def\@versionstr{1.5.4} \ProvidesClassSVN - {$Id: mycv.cls 60 2012-04-14 23:33:21Z ghangenit $} - [\@versionstr][My Curriculum Vitae class] + {$Id: mycv.cls 66 2012-04-28 14:38:41Z ghangenit $} + [v\@versionstr][My Curriculum Vitae class] % ======== % Packages @@ -34,7 +34,6 @@ \RequirePackage{kvoptions} % see the comment above \RequirePackage{etextools} % for lists and other useful tools \RequirePackage{ifthen} % for <\ifthenelse> command -\RequirePackage{pifont} % 'ding' style for item of itemize env \RequirePackage{xstring} % string utilities % ============= @@ -48,7 +47,7 @@ \DeclareStringOption[english]{language} \DeclareStringOption[Contents]{cntdir} -\DeclareStringOption[mycv_style.def]{style} +\DeclareStringOption[mycv_style]{style} \DeclareStringOption[]{mdlname} \ProcessKeyvalOptions* @@ -76,13 +75,13 @@ % ------------------------------------- \ifthenelse{\equal{\mycv@style}{none}}% {\relax}% file style is not wanted - {\input{\mycv@style}} + {\RequirePackage{\mycv@style}} % ---------------------- % use decorations or not % ---------------------- \ifthenelse{\boolean{mycv@withDec}}% - {\input{mycv_dec.def}}% + {\RequirePackage{mycv_dec}}% {\relax} \DeclareRobustCommand{\ifmodel}[1]{% diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_base.def b/Master/texmf-dist/tex/latex/mycv/mycv_base.def index 4e72424b43b..b3e976e6139 100644 --- a/Master/texmf-dist/tex/latex/mycv/mycv_base.def +++ b/Master/texmf-dist/tex/latex/mycv/mycv_base.def @@ -6,8 +6,8 @@ % ------------------------------------------------------- \ProvidesFileSVN - {$Id: mycv_base.def 60 2012-04-14 23:33:21Z ghangenit $} - [\@versionstr][Base system core] + {$Id: mycv_base.def 66 2012-04-28 14:38:41Z ghangenit $} + [v\@versionstr][Base system core] %%%%%%%%%%%%%%%%%% % % @@ -74,7 +74,7 @@ \def\@regexPageSize{<([0-9.]+)>} \def\@regexMarginLE{/endml/} \def\@regexMarginRE{/endmr/} -\def\@regexFileName{^(.+)@} +\def\@regexFileName{^([_\-a-zA-Z0-9]+)@} \def\@regexCmdName{([a-zA-Z]+)} \def\@regexFileVar{^.{1}([A-Za-z]+)} \def\@regexParamTypeA{^[@]} diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_dec.def b/Master/texmf-dist/tex/latex/mycv/mycv_dec.def deleted file mode 100644 index ab44b606e80..00000000000 --- a/Master/texmf-dist/tex/latex/mycv/mycv_dec.def +++ /dev/null @@ -1,227 +0,0 @@ -% ------------------------------------------------------- -% Copyright 2012 Ghersi Andrea (ghanhawk@gmail.com). -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License version -% 1.3c, available at 'http://www.latex-project.org/lppl'. -% ------------------------------------------------------- - -\ProvidesFileSVN - {$Id: mycv_dec.def 60 2012-04-14 23:33:21Z ghangenit $} - [\@versionstr][Decorations commands] - -\RequirePackage{tikz} % for graphics -\usetikzlibrary{shapes,decorations,shadows,fadings} -\usetikzlibrary{decorations.pathmorphing} -\usetikzlibrary{decorations.fractals} -\usetikzlibrary{decorations.shapes} -\usetikzlibrary{calc} -\RequirePackage{xparse} - -%%%%%%%%%%%% -% % -% Settings % -% % -%%%%%%%%%%%% - -\def\@segmentLengthString{} -\def\@segmentLengthValue{} -\def\@lineWidthString{} -\def\@lineWidthValue{} -\def\@segmentAmplitudeString{} -\def\@segmentAmplitudeValue{} -\def\@xBottomRight{-1cm} -\def\@yBottomRight{1cm} -\def\@xTopLeft{1cm} -\def\@yTopLeft{-1cm} - -\tikzfading[% - name=fade out, inner color=transparent!0, - outer color=transparent!100% -] - -\tikzset{ - define mycolor/.code 2 args={\definecolor{#1}{rgb}{#2}}, - DecoratewithShape/.style={% - decorate,decoration={shape backgrounds,shape=#1}% - }, - DecoratewithPathMorphing/.style={% - decorate,decoration=#1% - }, - Mainstyle/.style={ - define mycolor={myred}{0.43,0.06,0,13}, - define mycolor={dpred}{0.80,0.35,0} - } -} - -%%%%%%%%%%%% -% % -% Commands % -% % -%%%%%%%%%%%% - -\newcommand{\versionBasedSettings}[2]{% - \IfBooleanTF#1{% - % --------------------------------------------------------- - % From package - % --------------------------------------------------------- - % Macros of this package take the catcodes of tokens into - % account. To avoid unexpected behaviour (particulary with - % tests), you should keep in mind that tokens and their - % catcodes are examined. - % For instance, these two arguments: {\string a\string b} - % and {ab} do not expand into equal strings for xstring! - % Because of the command \string, the first expands into - % ab with catcodes 12 while the second have characters - % with their natural catcodes 11. Catcodes do not match! - % Starred macros do not take catcodes into account. They - % simply convert some arguments into arguments with - % catcodes 10, 11 and 12, and call the non-starred macros - % with these modified arguments. - % --------------------------------------------------------- - \IfStrEqCase*{#2}{% - {radial}{\def\@colorStr{inner color}}% - {ball}{\def\@colorStr{ball color}}% - {none}{\relax}% - }% - [mycv: Unknown option <#2>!!!]% - }{\relax}% -} - -% ----------------------------------------------------- -% Pathmorphing decoration values: -% shape, straight zigzag, random steps, saw, zigzag, -% bent, bumps, coil, snake, Koch snowflake -% Shadings: radial, ball -% ----------------------------------------------------- - -\DeclareDocumentCommand{\mydecorationsPathmorphing}% - {s O{1} m O{gray} D<>{radial} D<>{white}}% -{% - \begingroup - \versionBasedSettings{#1}{#5}% - \begin{tikzpicture}[overlay,remember picture]% - \IfBooleanTF#1{% version with a star (shading) - \shade[ - Mainstyle, - \@lineWidthString=\@lineWidthValue, - \@segmentAmplitudeString=\@segmentAmplitudeValue, - \@segmentLengthString=\@segmentLengthValue, - DecoratewithPathMorphing=#3, - color=#4, - shading=#5, - \@colorStr=#6, - \ifnum#2>0draw\fi - ]}% - {% version without a star (not shading) - \path[ - Mainstyle, - \@lineWidthString=\@lineWidthValue, - \@segmentAmplitudeString=\@segmentAmplitudeValue, - \@segmentLengthString=\@segmentLengthValue, - DecoratewithPathMorphing=#3, - color=#4, - fill=#6, - \ifnum#2>0draw\fi - ]}% - ($ (current page.north west)+ - (\@xTopLeft,\@yTopLeft) $) - rectangle % -- oppure circle (4), ... - ($ (current page.south east)+ - (\@xBottomRight,\@yBottomRight) $); - \end{tikzpicture} - \endgroup -} - -% -------------------------------------- -% Shapes: dart, diamond, rectangle, star -% -------------------------------------- - -\DeclareDocumentCommand{\mydecorationsShape}% - {O{1} m O{gray}} -{% - \begingroup - \begin{tikzpicture}[overlay,remember picture] - \path[ - Mainstyle, - \@lineWidthString=\@lineWidthValue, - \@segmentAmplitudeString=\@segmentAmplitudeValue, - \@segmentLengthString=\@segmentLengthValue, - DecoratewithShape=#2, - color=#3, - \ifnum#1>0draw\fi - ]% - ($ (current page.north west)+ - (\@xTopLeft,\@yTopLeft) $) - rectangle - ($ (current page.south east)+ - (\@xBottomRight,\@yBottomRight) $); - \end{tikzpicture} - \endgroup -} - -\DeclareDocumentCommand{\mydecorationsFading}% - {O{north} m O{80} O{black} D<>{1.0}} -{% - \begin{tikzpicture}[overlay,remember picture] - \draw[path fading=#1,fill=#2!#3!#4,opacity=#5] - ($ (current page.north west)+ - (\@xTopLeft,\@yTopLeft) $) - rectangle % -- oppure circle (4), ... - ($ (current page.south east)+ - (\@xBottomRight,\@yBottomRight) $); - \end{tikzpicture}% -} - -\DeclareRobustCommand{\mydecorationsSetPosXTL}[1]% - [1cm]% -{% - \def\@xTopLeft{#1}% -} - -\DeclareRobustCommand{\mydecorationsSetPosYTL}[1]% - [-1cm]% -{% - \def\@yTopLeft{#1}% -} - -\DeclareRobustCommand{\mydecorationsSetPosXBR}[1]% - [-1cm]% -{% - \def\@xBottomRight{#1}% -} - -\DeclareRobustCommand{\mydecorationsSetPosYBR}[1]% - [1cm]% -{% - \def\@yBottomRight{#1}% -} - -\DeclareDocumentCommand{\mydecorationsSetLineWidth}% - {s O{}}% -{% - \IfBooleanTF#1% - {\def\@lineWidthString{}} % starred - {\def\@lineWidthString{line width}} % not starred - - \def\@lineWidthValue{#2}% -} - -\DeclareDocumentCommand{\mydecorationsSetSegmentAmplitude}% - {s O{}}% -{% - \IfBooleanTF#1% - {\def\@segmentAmplitudeString{}} % starred - {\def\@segmentAmplitudeString{segment amplitude}} % not starred - - \def\@segmentAmplitudeValue{#2}% -} - -\DeclareDocumentCommand{\mydecorationsSetSegmentLength}% - {s O{}}% -{% - \IfBooleanTF#1% - {\def\@segmentLengthString{}} % starred - {\def\@segmentLengthString{segment length}} % not starred - - \def\@segmentLengthValue{#2}% -} \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_dec.sty b/Master/texmf-dist/tex/latex/mycv/mycv_dec.sty new file mode 100644 index 00000000000..d7d563f910e --- /dev/null +++ b/Master/texmf-dist/tex/latex/mycv/mycv_dec.sty @@ -0,0 +1,230 @@ +% ------------------------------------------------------- +% Copyright 2012 Ghersi Andrea (ghanhawk@gmail.com). +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License version +% 1.3c, available at 'http://www.latex-project.org/lppl'. +% ------------------------------------------------------- + +\RequirePackage{svn-prov} +\def\versionstr{1.5.4} + +\ProvidesPackageSVN + {$Id: mycv_dec.sty 66 2012-04-28 14:38:41Z ghangenit $} + [v\@versionstr][Decorations commands] + +\RequirePackage{tikz} % for graphics +\usetikzlibrary{shapes,decorations,shadows,fadings} +\usetikzlibrary{decorations.pathmorphing} +\usetikzlibrary{decorations.fractals} +\usetikzlibrary{decorations.shapes} +\usetikzlibrary{calc} +\RequirePackage{xparse} + +%%%%%%%%%%%% +% % +% Settings % +% % +%%%%%%%%%%%% + +\def\@segmentLengthString{} +\def\@segmentLengthValue{} +\def\@lineWidthString{} +\def\@lineWidthValue{} +\def\@segmentAmplitudeString{} +\def\@segmentAmplitudeValue{} +\def\@xBottomRight{-1cm} +\def\@yBottomRight{1cm} +\def\@xTopLeft{1cm} +\def\@yTopLeft{-1cm} + +\tikzfading[% + name=fade out, inner color=transparent!0, + outer color=transparent!100% +] + +\tikzset{ + define mycolor/.code 2 args={\definecolor{#1}{rgb}{#2}}, + DecoratewithShape/.style={% + decorate,decoration={shape backgrounds,shape=#1}% + }, + DecoratewithPathMorphing/.style={% + decorate,decoration=#1% + }, + Mainstyle/.style={ + define mycolor={myred}{0.43,0.06,0,13}, + define mycolor={dpred}{0.80,0.35,0} + } +} + +%%%%%%%%%%%% +% % +% Commands % +% % +%%%%%%%%%%%% + +\newcommand{\versionBasedSettings}[2]{% + \IfBooleanTF#1{% + % --------------------------------------------------------- + % From package + % --------------------------------------------------------- + % Macros of this package take the catcodes of tokens into + % account. To avoid unexpected behaviour (particulary with + % tests), you should keep in mind that tokens and their + % catcodes are examined. + % For instance, these two arguments: {\string a\string b} + % and {ab} do not expand into equal strings for xstring! + % Because of the command \string, the first expands into + % ab with catcodes 12 while the second have characters + % with their natural catcodes 11. Catcodes do not match! + % Starred macros do not take catcodes into account. They + % simply convert some arguments into arguments with + % catcodes 10, 11 and 12, and call the non-starred macros + % with these modified arguments. + % --------------------------------------------------------- + \IfStrEqCase*{#2}{% + {radial}{\def\@colorStr{inner color}}% + {ball}{\def\@colorStr{ball color}}% + {none}{\relax}% + }% + [mycv: Unknown option <#2>!!!]% + }{\relax}% +} + +% ----------------------------------------------------- +% Pathmorphing decoration values: +% shape, straight zigzag, random steps, saw, zigzag, +% bent, bumps, coil, snake, Koch snowflake +% Shadings: radial, ball +% ----------------------------------------------------- + +\DeclareDocumentCommand{\mydecorationsPathmorphing}% + {s O{1} m O{gray} D<>{radial} D<>{white}}% +{% + \begingroup + \versionBasedSettings{#1}{#5}% + \begin{tikzpicture}[overlay,remember picture]% + \IfBooleanTF#1{% version with a star (shading) + \shade[ + Mainstyle, + \@lineWidthString=\@lineWidthValue, + \@segmentAmplitudeString=\@segmentAmplitudeValue, + \@segmentLengthString=\@segmentLengthValue, + DecoratewithPathMorphing=#3, + color=#4, + shading=#5, + \@colorStr=#6, + \ifnum#2>0draw\fi + ]}% + {% version without a star (not shading) + \path[ + Mainstyle, + \@lineWidthString=\@lineWidthValue, + \@segmentAmplitudeString=\@segmentAmplitudeValue, + \@segmentLengthString=\@segmentLengthValue, + DecoratewithPathMorphing=#3, + color=#4, + fill=#6, + \ifnum#2>0draw\fi + ]}% + ($ (current page.north west)+ + (\@xTopLeft,\@yTopLeft) $) + rectangle % -- oppure circle (4), ... + ($ (current page.south east)+ + (\@xBottomRight,\@yBottomRight) $); + \end{tikzpicture} + \endgroup +} + +% -------------------------------------- +% Shapes: dart, diamond, rectangle, star +% -------------------------------------- + +\DeclareDocumentCommand{\mydecorationsShape}% + {O{1} m O{gray}} +{% + \begingroup + \begin{tikzpicture}[overlay,remember picture] + \path[ + Mainstyle, + \@lineWidthString=\@lineWidthValue, + \@segmentAmplitudeString=\@segmentAmplitudeValue, + \@segmentLengthString=\@segmentLengthValue, + DecoratewithShape=#2, + color=#3, + \ifnum#1>0draw\fi + ]% + ($ (current page.north west)+ + (\@xTopLeft,\@yTopLeft) $) + rectangle + ($ (current page.south east)+ + (\@xBottomRight,\@yBottomRight) $); + \end{tikzpicture} + \endgroup +} + +\DeclareDocumentCommand{\mydecorationsFading}% + {O{north} m O{80} O{black} D<>{1.0}} +{% + \begin{tikzpicture}[overlay,remember picture] + \draw[path fading=#1,fill=#2!#3!#4,opacity=#5] + ($ (current page.north west)+ + (\@xTopLeft,\@yTopLeft) $) + rectangle % -- oppure circle (4), ... + ($ (current page.south east)+ + (\@xBottomRight,\@yBottomRight) $); + \end{tikzpicture}% +} + +\DeclareRobustCommand{\mydecorationsSetPosXTL}[1]% + [1cm]% +{% + \def\@xTopLeft{#1}% +} + +\DeclareRobustCommand{\mydecorationsSetPosYTL}[1]% + [-1cm]% +{% + \def\@yTopLeft{#1}% +} + +\DeclareRobustCommand{\mydecorationsSetPosXBR}[1]% + [-1cm]% +{% + \def\@xBottomRight{#1}% +} + +\DeclareRobustCommand{\mydecorationsSetPosYBR}[1]% + [1cm]% +{% + \def\@yBottomRight{#1}% +} + +\DeclareDocumentCommand{\mydecorationsSetLineWidth}% + {s O{}}% +{% + \IfBooleanTF#1% + {\def\@lineWidthString{}} % starred + {\def\@lineWidthString{line width}} % not starred + + \def\@lineWidthValue{#2}% +} + +\DeclareDocumentCommand{\mydecorationsSetSegmentAmplitude}% + {s O{}}% +{% + \IfBooleanTF#1% + {\def\@segmentAmplitudeString{}} % starred + {\def\@segmentAmplitudeString{segment amplitude}} % not starred + + \def\@segmentAmplitudeValue{#2}% +} + +\DeclareDocumentCommand{\mydecorationsSetSegmentLength}% + {s O{}}% +{% + \IfBooleanTF#1% + {\def\@segmentLengthString{}} % starred + {\def\@segmentLengthString{segment length}} % not starred + + \def\@segmentLengthValue{#2}% +} \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_misc.def b/Master/texmf-dist/tex/latex/mycv/mycv_misc.def index deac4e5ca5a..f1d69bb39ad 100644 --- a/Master/texmf-dist/tex/latex/mycv/mycv_misc.def +++ b/Master/texmf-dist/tex/latex/mycv/mycv_misc.def @@ -6,8 +6,8 @@ % ------------------------------------------------------- \ProvidesFileSVN - {$Id: mycv_misc.def 60 2012-04-14 23:33:21Z ghangenit $} - [\@versionstr][Miscellaneous commands] + {$Id: mycv_misc.def 66 2012-04-28 14:38:41Z ghangenit $} + [v\@versionstr][Miscellaneous commands] \RequirePackage{hyperref} @@ -59,16 +59,6 @@ }% {\end{list}} -%%%%%%%%%%%%%%%%%%% -% % -% Customized list % -% % -%%%%%%%%%%%%%%%%%%% - -\newenvironment{myitemize}% - {\renewcommand{\labelitemi}{\ding{43}}\begin{itemize}}% - {\end{itemize}} - %%%%%%%%%%%%%%% % % % Other stuff % diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_style.def b/Master/texmf-dist/tex/latex/mycv/mycv_style.def deleted file mode 100644 index 55b7ec1daf7..00000000000 --- a/Master/texmf-dist/tex/latex/mycv/mycv_style.def +++ /dev/null @@ -1,104 +0,0 @@ -% ------------------------------------------------------- -% Copyright 2012 Ghersi Andrea (ghanhawk@gmail.com). -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License version -% 1.3c, available at 'http://www.latex-project.org/lppl'. -% ------------------------------------------------------- - -\ProvidesFileSVN - {$Id: mycv_style.def 60 2012-04-14 23:33:21Z ghangenit $} - [\@versionstr][Default style file] - -\RequirePackage{titlesec} % for title format and spacing -\RequirePackage{fancyhdr} % custom footer -\RequirePackage{xcolor} % for color -\RequirePackage{calligra} % for calligra font -\RequirePackage{times} % times font -\RequirePackage{marvosym} % symbols - phone -\RequirePackage{amssymb} % symbols - email -\RequirePackage{xparse} - -%%%%%%%%%%% -% % -% Layout % -% % -%%%%%%%%%%% - -% ----------------------------------------------------- -% passing the option 'showframe' to the package permits -% to see the page margins: that may be useful for debug -% ----------------------------------------------------- -\RequirePackage[hmargin=1.25cm,vmargin=1.5cm]{geometry} - -%%%%%%%%%%%%%%%%%%%%% -% % -% Header and footer % -% % -%%%%%%%%%%%%%%%%%%%%% - -\renewcommand{\headrulewidth}{0.0pt} - -\fancyhf{} - -\DeclareRobustCommand{\mycfoot}[1]{% - \cfoot{\color{myheadingscolor}{{\sffamily\tiny{#1}}}}% -} - -\pagestyle{fancy} - -%%%%%%%%%%%%%%%%%%%%%%%% -% % -% Hyperref and colours % -% % -%%%%%%%%%%%%%%%%%%%%%%%% - -% ------------------------------------------ -% setup colours for links, text and headings -% ------------------------------------------ -\definecolor{mylinkcolour}{HTML}{0000FF} % {FF0080} %light purple link for the email -\definecolor{myshadecolor}{HTML}{F0F0F0} % {E4E3E3}%{D4D7FE} %light blue shade -\definecolor{mytextcolor}{HTML}{2b2b2b} % text is almost black -\definecolor{myheadingscolor}{HTML}{701112} % dark red - -% ---------------------- -% setup hyperref package -% ---------------------- -\hypersetup{% - colorlinks,breaklinks,% - urlcolor=mylinkcolour,% - linkcolor=mylinkcolour,% -} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % -% Section title format and spacing % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -\DeclareDocumentCommand{\mysectionTitleFormat}% - {O{myheadingscolor} O{myheadingscolor}}% -{% - \titleformat{\section}% - {\bigskip\color{#1}\titlerule\scshape\Large\raggedright}% - {}{0em}{}[\color{#2}\titlerule\medskip] -} - -\DeclareDocumentCommand{\mysectionTitleSpacing}% - {O{0pt} O{0pt} O{5pt}}% -{% - \titlespacing{\section}{#1}{#2}{#3}% -} - -\mysectionTitleFormat -\mysectionTitleSpacing - -%%%%%%%%%%%%%%% -% % -% Other stuff % -% % -%%%%%%%%%%%%%%% - -% -------------------------------- -% set text color for the whole doc -% -------------------------------- -\color{mytextcolor} \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_style.sty b/Master/texmf-dist/tex/latex/mycv/mycv_style.sty new file mode 100644 index 00000000000..c1a09c981c7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/mycv/mycv_style.sty @@ -0,0 +1,125 @@ +% ------------------------------------------------------- +% Copyright 2012 Ghersi Andrea (ghanhawk@gmail.com). +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License version +% 1.3c, available at 'http://www.latex-project.org/lppl'. +% ------------------------------------------------------- + +\RequirePackage{svn-prov} +\def\versionstr{1.5.4} + +\ProvidesPackageSVN + {$Id: mycv_style.sty 66 2012-04-28 14:38:41Z ghangenit $} + [v\@versionstr][Default style file] + +\RequirePackage{titlesec} % for title format and spacing +\RequirePackage{fancyhdr} % custom footer +\RequirePackage{xcolor} % for color +\RequirePackage{calligra} % for calligra font +\RequirePackage{times} % times font +\RequirePackage{pifont} % 'ding' style for itemize env. +\RequirePackage{marvosym} % symbols - phone +\RequirePackage{amssymb} % symbols - email +\RequirePackage{hyperref} % for hypertext links and other stuff +\RequirePackage{xparse} + +%%%%%%%%%%% +% % +% Layout % +% % +%%%%%%%%%%% + +% ----------------------------------------------------- +% passing the option 'showframe' to the package permits +% to see the page margins: that may be useful for debug +% ----------------------------------------------------- +\RequirePackage[ + paperwidth=210mm, + paperheight=297mm, + textwidth=495pt, + vmargin=1.5cm, + columnsep=18pt +]{geometry} + +%%%%%%%%%%%%%%%%%%%%% +% % +% Header and footer % +% % +%%%%%%%%%%%%%%%%%%%%% + +\renewcommand{\headrulewidth}{0.0pt} + +\fancyhf{} + +\DeclareRobustCommand{\mycfoot}[1]{% + \cfoot{\color{myheadingscolor}{{\sffamily\tiny{#1}}}}% +} + +\pagestyle{fancy} + +%%%%%%%%%%%%%%%%%%%%%%%% +% % +% Hyperref and colours % +% % +%%%%%%%%%%%%%%%%%%%%%%%% + +% ------------------------------------------ +% setup colours for links, text and headings +% ------------------------------------------ +\definecolor{mylinkcolour}{HTML}{0000FF} % {FF0080} %light purple link for the email +\definecolor{myshadecolor}{HTML}{F0F0F0} % {E4E3E3}%{D4D7FE} %light blue shade +\definecolor{mytextcolor}{HTML}{2b2b2b} % text is almost black +\definecolor{myheadingscolor}{HTML}{701112} % dark red + +% ---------------------- +% setup hyperref package +% ---------------------- +\hypersetup{% + colorlinks,breaklinks,% + urlcolor=mylinkcolour,% + linkcolor=mylinkcolour,% +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% % +% Section title format and spacing % +% % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\DeclareDocumentCommand{\mysectionTitleFormat}% + {O{myheadingscolor} O{myheadingscolor}}% +{% + \titleformat{\section}% + {\bigskip\color{#1}\titlerule\scshape\Large\raggedright}% + {}{0em}{}[\color{#2}\titlerule\medskip] +} + +\DeclareDocumentCommand{\mysectionTitleSpacing}% + {O{0pt} O{0pt} O{5pt}}% +{% + \titlespacing{\section}{#1}{#2}{#3}% +} + +\mysectionTitleFormat +\mysectionTitleSpacing + +%%%%%%%%%%%%%%%%%%% +% % +% Customized list % +% % +%%%%%%%%%%%%%%%%%%% + +\newenvironment{myitemize}% + {\renewcommand{\labelitemi}{\ding{43}}\begin{itemize}}% + {\end{itemize}} + +%%%%%%%%%%%%%%% +% % +% Other stuff % +% % +%%%%%%%%%%%%%%% + +% -------------------------------- +% set text color for the whole doc +% -------------------------------- +\color{mytextcolor} \ No newline at end of file -- cgit v1.2.3