summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex')
-rw-r--r--Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex103
1 files changed, 103 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex b/Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex
new file mode 100644
index 00000000000..63d3c503f33
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex
@@ -0,0 +1,103 @@
+% -------------------------------------------------------
+% start of file 'mycv_default_style.tex'.
+% 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'.
+% -------------------------------------------------------
+
+\ProvidesFile{mycv_default_style.tex}
+
+\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