summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mycv/Examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-14 23:53:04 +0000
committerKarl Berry <karl@freefriends.org>2012-05-14 23:53:04 +0000
commit6e33deaa4bd2d4a6029e026a54e510b847731f23 (patch)
tree25c0cd887fc3ae56eadc89cc570e6b06cee39833 /Master/texmf-dist/doc/latex/mycv/Examples
parent43bb87fb699f597f53baf7a8a32c288036fee558 (diff)
mycv (14may12)
git-svn-id: svn://tug.org/texlive/trunk@26385 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mycv/Examples')
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_contacts.tex16
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_title.tex4
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl.tex30
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl2.tex14
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Models/model-layouts.tex77
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Models/model-spl.tex10
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/Notes.txt17
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-common.tex30
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.pdfbin83390 -> 83722 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.tex9
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.pdfbin42926 -> 83925 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.tex10
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-main.tex9
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.pdfbin83184 -> 83505 bytes
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.tex6
-rw-r--r--Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl2.pdfbin0 -> 43736 bytes
16 files changed, 136 insertions, 96 deletions
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_contacts.tex b/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_contacts.tex
index 93066603a85..4e11e9d96a7 100644
--- a/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_contacts.tex
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_contacts.tex
@@ -1,7 +1,17 @@
\def\cvcontactsep{\\}
\vspace{0pt} %trick for alignment
+
+\tikzstyle{mybox} = [%
+ draw=red, fill=blue!20, very thick,
+ rectangle, rounded corners,
+ inner sep=10pt, inner ysep=20pt]
+
+\tikzstyle{fancytitle} = [
+ fill=red, text=white]
+
\begin{tikzpicture}
- \node [fill=myshadecolor,rounded corners=10pt, minimum size= 2.5cm]{%
+ \node (box)[fill=myshadecolor,rounded corners=10pt, minimum size= 2.5cm]{%
+ {\color{black}
\begin{tabular*}{6cm}{l|l}
&Unknown address XYZXYZXYZ\cvcontactsep
\raisebox{-3pt}{\Mobilefone} &+39\,0123\,456789\cvcontactsep
@@ -9,6 +19,8 @@
\raisebox{-3pt}{\Email} &\href{mailto:unknown@gmail.com}
{unknown@gmail.com}\cvcontactsep
\end{tabular*}
- };
+ }};
+ \node[fancytitle, text width=0.5423\textwidth, text centered,
+ rounded corners] at (box.north){Contacts};
\end{tikzpicture}
\bigskip \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_title.tex b/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_title.tex
index 6fb52bda72e..7b06ae8f0af 100644
--- a/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_title.tex
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/Contents/header_title.tex
@@ -1,3 +1,5 @@
\bigskip
{\sffamily\Huge{}Dr. Adam Smith}\\[3pt]%
-{\color{myheadingscolor}\huge\calligra{CurriculumVitae}\\[25pt]} \ No newline at end of file
+\ifmodel{verSPL2}
+ {{\color{red}\huge\calligra{CurriculumVitae}\\[25pt]}}
+ {{\color{myheadingscolor}\huge\calligra{CurriculumVitae}\\[25pt]}} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl.tex b/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl.tex
deleted file mode 100644
index 20f88f11e5a..00000000000
--- a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl.tex
+++ /dev/null
@@ -1,30 +0,0 @@
-\input{Models/model-common}
-\def\bodylayoutlist{%
- % ---------------------------------------------------------
- % moves the right margin to the left (text and title rules)
- % ---------------------------------------------------------
- MainBodyPageBegin:<0.96>,
- % ---------------------------------------------------------
- % the 2 directives below are just used as a trick to do the
- % same thing for the left margin (it is moved to the right)
- % ---------------------------------------------------------
- SubBodyPageBegin,
- SubBodyPageEnd,
- % -----------------------------------------
- % left page (0.48 of textwidth)
- % -----------------------------------------
- SubBodyPageBegin:<0.48>,
- contents_partA@:<precmd:vspace=10pt:sectionnumber=1>,
- contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,
- contents_partC@:<precmd:vspace=10pt:sectionnumber=3>,
- SubBodyPageEnd:<postcmd:hfill>,
- % -----------------------------------------
- % right page (0.48 of textwidth)
- % -----------------------------------------
- SubBodyPageBegin:<0.48>,
- contents_partA@:<precmd:vspace=10pt:sectionnumber=4>,
- contents_partB@:<precmd:vspace=10pt:sectionnumber=5>,
- SubBodyPageEnd,
- % -----------------------------------------
- MainBodyPageEnd%
-} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl2.tex b/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl2.tex
deleted file mode 100644
index 7826702826d..00000000000
--- a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-dpl2.tex
+++ /dev/null
@@ -1,14 +0,0 @@
-\input{Models/model-common}
-
-\newcommand{\mcbegin}{\begin{multicols}{2}}
-\newcommand{\mcend}{\end{multicols}}
-
-\def\bodylayoutlist{%
- contents_partA@:<precmd:vspace=10pt:mcbegin:sectionnumber=1>,%
- contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,%
- contents_partA@:<precmd:vspace=10pt:sectionnumber=3>,%
- contents_partC@:<precmd:vspace=10pt:sectionnumber=4>,%
- contents_partA@:<precmd:vspace=10pt:sectionnumber=5>,%
- contents_partB@:<precmd:vspace=10pt:sectionnumber=6>:%
- <postcmd:mcend>,%
-} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-layouts.tex b/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-layouts.tex
new file mode 100644
index 00000000000..f3297affee5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-layouts.tex
@@ -0,0 +1,77 @@
+\input{Models/model-common}
+
+\ifmodel{verSPL}{%
+ \def\bodylayoutlist{%
+ % ---------------------------------------------------
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=1>,
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,
+ contents_partC@:<precmd:vspace=10pt:sectionnumber=3>,
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=4>,
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=5>
+ % ---------------------------------------------------
+ }%
+}{\relax}
+
+\ifmodel{verSPL2}{%
+ % changes color of text and sections
+ \mysectionTitleFormat[red][red]
+ \color{white}
+
+ \def\bodylayoutlist{%
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=1>,%
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,%
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=3>,%
+ contents_partC@:<precmd:vspace=10pt:sectionnumber=4>,%
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=5>,%
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=6>
+ }%
+}{\relax}
+
+\ifmodel{verDPL}{%
+ \def\bodylayoutlist{%
+ % ---------------------------------------------------------
+ % moves the right margin to the left (text and title rules)
+ % ---------------------------------------------------------
+ MainBodyPageBegin:<0.96>,
+ % ---------------------------------------------------------
+ % the 2 directives below are just used as a trick to do the
+ % same thing for the left margin (it is moved to the right)
+ % ---------------------------------------------------------
+ SubBodyPageBegin,
+ SubBodyPageEnd,
+ % -----------------------------------------
+ % left page (0.48 of textwidth)
+ % -----------------------------------------
+ SubBodyPageBegin:<0.48>,
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=1>,
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,
+ contents_partC@:<precmd:vspace=10pt:sectionnumber=3>,
+ SubBodyPageEnd:<postcmd:hfill>,
+ % -----------------------------------------
+ % right page (0.48 of textwidth)
+ % -----------------------------------------
+ SubBodyPageBegin:<0.48>,
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=4>,
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=5>,
+ SubBodyPageEnd,
+ % -----------------------------------------
+ MainBodyPageEnd%
+ }%
+}{\relax}
+
+\ifmodel{verDPL2}{%
+ \usepackage{multicol}
+ \setlength{\columnsep}{2.0pc}
+ \setlength\columnseprule{.4pt}
+ \newcommand{\mcbegin}{\begin{multicols}{2}}
+ \newcommand{\mcend}{\end{multicols}}
+
+ \def\bodylayoutlist{%
+ contents_partA@:<precmd:vspace=10pt:mcbegin:sectionnumber=1>,%
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,%
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=3>,%
+ contents_partC@:<precmd:vspace=10pt:sectionnumber=4>,%
+ contents_partA@:<precmd:vspace=10pt:sectionnumber=5>,%
+ contents_partB@:<precmd:vspace=10pt:sectionnumber=6>:<postcmd:mcend>%
+ }%
+}{\relax} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-spl.tex b/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-spl.tex
deleted file mode 100644
index 2123f90d77f..00000000000
--- a/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-spl.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\input{Models/model-common}
-\def\bodylayoutlist{%
- % ---------------------------------------------------
- contents_partA@:<precmd:vspace=10pt:sectionnumber=1>,
- contents_partB@:<precmd:vspace=10pt:sectionnumber=2>,
- contents_partC@:<precmd:vspace=10pt:sectionnumber=3>,
- contents_partA@:<precmd:vspace=10pt:sectionnumber=4>,
- contents_partB@:<precmd:vspace=10pt:sectionnumber=5>
- % ---------------------------------------------------
-} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/Notes.txt b/Master/texmf-dist/doc/latex/mycv/Examples/Notes.txt
new file mode 100644
index 00000000000..e373e7d8676
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/Notes.txt
@@ -0,0 +1,17 @@
+
+=========================================================================================
+To produce the pdf files with examples, set the local environment variable 'TEXINPUTS' to
+the directory where you unzipped the 'mycv' bundle. As an example, on Linux:
+
+ export TEXINPUTS=".:$TEXINPUTS:<dirpath>/mycv:"
+
+Then run the commands (it may be necessary to run each command twice):
+
+ pdflatex -jobname mycv-example-dpl "\def\model{verDPL}\input{mycv-example-main}"
+ pdflatex -jobname mycv-example-dpl2 "\def\model{verDPL2}\input{mycv-example-main}"
+ pdflatex -jobname mycv-example-spl "\def\model{verSPL}\input{mycv-example-main}"
+ pdflatex -jobname mycv-example-spl2 "\def\model{verSPL2}\input{mycv-example-main}"
+
+If the class has been installed in the system (see the README file), you simply need to
+run the commands above (without setting the environment variable 'TEXINPUTS').
+========================================================================================= \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-common.tex b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-common.tex
index 3cfb9f7a721..81d57655353 100644
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-common.tex
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-common.tex
@@ -8,22 +8,24 @@
\mydecorationsSetLineWidth[0.3mm]%
\mydecorationsPathmorphing*{coil}<radial><lightgray>
}%
+ \ifmodel{verSPL2}{
+ \renewcommand{\cvdec}{
+ \mydecorationsSetPosXTL[-4cm]
+ \mydecorationsSetPosYTL[1.5cm]
+ \mydecorationsSetPosYBR[-2cm]
+ \mydecorationsSetPosXBR[4cm]
+ \mydecorationsPathmorphing*[0]{shape}[black]<ball><black>
+ }%
+ }
}{\newcommand{\cvdec}{}}
-\ifmodel{verSPL}{
- \input{Models/model-spl}
- \mypdftitle{Simple CV example: SPL}
-}{\relax}
+% include layouts components
+\input{Models/model-layouts}
-\ifmodel{verDPL}{
- \input{Models/model-dpl}
- \mypdftitle{Simple CV example: DPL}
-}{\relax}
-
-\ifmodel{verDPL2}{
- \input{Models/model-dpl2}
- \mypdftitle{Simple CV example: DPL2}
-}{\relax}
+\ifmodel{verSPL} {\mypdftitle{Simple CV example: SPL}} {\relax}
+\ifmodel{verSPL2}{\mypdftitle{Simple CV example: SPL2}}{\relax}
+\ifmodel{verDPL} {\mypdftitle{Simple CV example: DPL}} {\relax}
+\ifmodel{verDPL2}{\mypdftitle{Simple CV example: DPL2}}{\relax}
\newcommand{\sectionnumber}[1]{\section{Section #1}}
-\mypdfauthor{Andrea} \ No newline at end of file
+\mypdfauthor{Andrea Ghersi} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.pdf b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.pdf
index 20c2c9267e2..dfa87f5bb84 100644
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.pdf
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.tex b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.tex
deleted file mode 100644
index 8e97e087af6..00000000000
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl.tex
+++ /dev/null
@@ -1,9 +0,0 @@
-\documentclass[10pt,mdlname=verDPL,withDec,language=english]{mycv}
-
-\usepackage{mycv_style}
-\usepackage{mycv_dec}
-\input{mycv-example-common}
-
-\begin{document}
-\cvdec\myrenderlayout\mycfoot{Last update: \today}
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.pdf b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.pdf
index 80ce1baacba..a88ec273e27 100644
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.pdf
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.tex b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.tex
deleted file mode 100644
index 30a452e83a5..00000000000
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-dpl2.tex
+++ /dev/null
@@ -1,10 +0,0 @@
-\documentclass[10pt,mdlname=verDPL2,language=english]{mycv}
-\input{mycv-example-common}
-
-\usepackage{multicol}
-\setlength{\columnsep}{2.0pc}
-\setlength\columnseprule{.4pt}
-
-\begin{document}
-\myrenderlayout\mycfoot{Last update: \today}
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-main.tex b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-main.tex
new file mode 100644
index 00000000000..2514e4b20ce
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-main.tex
@@ -0,0 +1,9 @@
+\def\cvmodel{verDPL} % default model
+\ifdefined\model\def\cvmodel{\model}\fi
+
+\documentclass[10pt,mdlname=\cvmodel,withDec,language=english]{mycv}
+\input{mycv-example-common}
+
+\begin{document}
+\cvdec\myrenderlayout\mycfoot{Last update: \today}
+\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.pdf b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.pdf
index d17cad83403..f18af8cf950 100644
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.pdf
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.tex b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.tex
deleted file mode 100644
index 5bdb8dcde23..00000000000
--- a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl.tex
+++ /dev/null
@@ -1,6 +0,0 @@
-\documentclass[10pt,mdlname=verSPL,withDec,language=english]{mycv}
-\input{mycv-example-common}
-
-\begin{document}
-\cvdec\myrenderlayout\mycfoot{Last update: \today}
-\end{document} \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl2.pdf b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl2.pdf
new file mode 100644
index 00000000000..7d8a0da04c8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/mycv/Examples/mycv-example-spl2.pdf
Binary files differ