summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mycv/mycv_style.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-05 00:45:07 +0000
committerKarl Berry <karl@freefriends.org>2012-05-05 00:45:07 +0000
commita455f43001821386f0613ac75a8a844f43fbf236 (patch)
tree0c421ada0a42fb557d972f261c3920652a6a58fc /Master/texmf-dist/tex/latex/mycv/mycv_style.sty
parentdc0cf2e0c1315a1e8130c74d70a08ebd7b4bde2c (diff)
mycv (30apr12)
git-svn-id: svn://tug.org/texlive/trunk@26208 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mycv/mycv_style.sty')
-rw-r--r--Master/texmf-dist/tex/latex/mycv/mycv_style.sty125
1 files changed, 125 insertions, 0 deletions
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