diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/third/letter/style/classic.nrs')
-rw-r--r-- | Master/texmf-dist/tex/context/third/letter/style/classic.nrs | 399 |
1 files changed, 204 insertions, 195 deletions
diff --git a/Master/texmf-dist/tex/context/third/letter/style/classic.nrs b/Master/texmf-dist/tex/context/third/letter/style/classic.nrs index 749f9691edf..c5f9b67af8a 100644 --- a/Master/texmf-dist/tex/context/third/letter/style/classic.nrs +++ b/Master/texmf-dist/tex/context/third/letter/style/classic.nrs @@ -1,195 +1,204 @@ -%D \module
-%D [ file=classic,
-%D version=2009.02.09,
-%D title=\CONTEXT\ Resume Style,
-%D subtitle=Classic Style,
-%D author=Wolfgang Schuster,
-%D date=\currentdate,
-%D copyright=Wolfgang Schuster,
-%D email=schuster.wolfgang@googlemail.com,
-%D license=Public Domain]
-
-% This style tries to mimic the moderncv classic style.
-
-\unprotect
-
-\useresumestyle[default]
-
-\startsetups classic:blue
-
- \definecolorgroup
- [classic]
- [0.00:0.00:0.00,
- 0.00:0.00:0.00,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35,
- 0.25:0.50:0.75,
- 0.25:0.50:0.75,
- 0.20:0.40:0.65,
- 0.20:0.40:0.65]
-
-\stopsetups
-
-\startsetups classic:orange
-
- \definecolorgroup
- [classic]
- [0.00:0.00:0.00,
- 0.00:0.00:0.00,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35,
- 0.95:0.55:0.15,
- 1.00:0.65:0.20,
- 0.95:0.55:0.15,
- 0.95:0.55:0.15]
-
-\stopsetups
-
-\startsetups classic:green
-
- \definecolorgroup
- [classic]
- [0.00:0.00:0.00,
- 0.00:0.00:0.00,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35,
- 0.30:0.65:0.15,
- 0.55:0.85:0.35,
- 0.30:0.65:0.15,
- 0.30:0.65:0.15]
-
-\stopsetups
-
-\startsetups classic:red
-
- \definecolorgroup
- [classic]
- [0.00:0.00:0.00,
- 0.00:0.00:0.00,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35,
- 0.95:0.20:0.20,
- 1.00:0.30:0.30,
- 0.95:0.20:0.20,
- 0.95:0.20:0.20]
-
-\stopsetups
-
-\startsetups classic:grey
-
- \definecolorgroup
- [classic]
- [0.00:0.00:0.00,
- 0.00:0.00:0.00,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35,
- 0.75:0.75:0.75,
- 0.35:0.35:0.35,
- 0.35:0.35:0.35]
-
-\stopsetups
-
-\processaction
- [\resumestylevalue\v!option\c!color]
- [ blue=>\directsetup{classic:blue},
- orange=>\directsetup{classic:orange},
- green=>\directsetup{classic:green},
- red=>\directsetup{classic:red},
- grey=>\directsetup{classic:grey},
- \s!unknown=>\directsetup{classic:blue}]
-
-\setupresumestyle
- [\v!firstpage]
- [\c!topspace=9cm,
- \c!header=0cm,
- \c!height=\v!fit]
-
-\setvalue{\v!resume:\v!head:\v!classic}%
- {\hbox to \hsize\bgroup
- \vbox\bgroup
- \hbox\bgroup
- \doattributes{\????rd firstname}\c!style\c!color {\resumevalue{firstname}}%
- \space
- \doattributes{\????rd familyname}\c!style\c!color{\resumevalue{familyname}}%
- \egroup
- \hbox{\doattributes{\????rd title}\c!style\c!color{\resumevalue{title}}}
- \egroup
- \hfill
- \framed
- [\c!location=\v!bottom,
- \c!align=\v!left,
- \c!width=\v!fit,
- \c!frame=\v!off,
- \c!foregroundstyle=\v!italic,
- \c!foregroundcolor=classic:5]
- {\resumevalue{street}\\
- \resumevalue {town}\\
- \resumevalue{mobile}\\
- \resumevalue {phone}\\
- \resumevalue {fax}\\
- \resumevalue {email}\\
- \resumevalue {info}}%
- \space
- \framed[\c!offset=2\points,\c!strut=\v!no]{\resumevalue{image}}%
- \egroup}
-
-\setvalue{\v!resume:\v!nextfoot:\v!classic}%
- {\color[classic:4]{\it\subpagenumber/\numberofsubpages}}
-
-\setupresumestyle
- [\v!head,\v!nextfoot]
- [\c!alternative=\v!classic]
-
-\setupresumestyle
- [\v!head]
- [\c!hoffset=\backspace,
- \c!voffset=2cm,
- \c!frame=\v!off,
- \c!width=\textwidth,
- \c!height=7cm]
-
-\setupresumestyle
- [\v!nextfoot]
- [\v!option]
- [\c!state={\v!first,\v!next}]
-
-\setupresumestyle
- [\v!nextfoot]
- [\v!frame]
- [\c!frame=\v!off,
- \c!width=\textwidth,
- \c!height=2cm,
- \c!align={\v!left,\v!lohi}]
-
-\setupresumestyle
- [\v!nextfoot]
- [\v!layer]
- [\c!preset=\v!left\v!bottom,
- \c!hoffset=\backspace,
- \c!voffset=2cm]
-
-% Why do I use setupresumestyle, I use in the letter module
-% for the same thing setupletter, I should change this
-
-\setupresume
- [quote]
- [\c!style=\v!italic,
- \c!color=classic:4]
-
-\setupresume
- [firstname]
- [\c!style=\c!tf\c!d,
- \c!color=classic:1]
-
-\setupresume
- [familyname]
- [\c!style=\c!tf\c!d,
- \c!color=classic:2]
-
-\setupresume
- [title]
- [\c!style=\c!it\c!b,
- \c!color=classic:3]
-
-\protect \endinput
+%D \module +%D [ file=classic, +%D version=2009.02.11, +%D title=\CONTEXT\ Resume Style, +%D subtitle=Classic Style, +%D author=Wolfgang Schuster, +%D date=\currentdate, +%D copyright=Wolfgang Schuster, +%D email=schuster.wolfgang@googlemail.com, +%D license=Public Domain] + +\unprotect + +\useresumestyle[modern] + +%D Colors (moderncv names) +%D +%D \startlines +%D classic:1 firstnamecolor +%D classic:2 familynamecolor +%D classic:3 titlecolor +%D classic:4 quotecolor +%D classic:5 addresscolor +%D classic:6 sectionrectanglecolor +%D classic:7 sectiontitlecolor +%D classic:8 subsectioncolor +%D resume:9 footersymbolcolor +%D \stoplines + +\startsetups resume:blue + + \definecolorgroup + [resume] + [0.00:0.00:0.00, + 0.00:0.00:0.00, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.25:0.50:0.75, + 0.25:0.50:0.75, + 0.20:0.40:0.65, + 0.20:0.40:0.65, + 0.00:0.00:0.00] + +\stopsetups + +\startsetups resume:orange + + \definecolorgroup + [resume] + [0.00:0.00:0.00, + 0.00:0.00:0.00, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.95:0.55:0.15, + 1.00:0.65:0.20, + 0.95:0.55:0.15, + 0.95:0.55:0.15, + 0.00:0.00:0.00] + +\stopsetups + +\startsetups resume:green + + \definecolorgroup + [resume] + [0.00:0.00:0.00, + 0.00:0.00:0.00, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.30:0.65:0.15, + 0.55:0.85:0.35, + 0.30:0.65:0.15, + 0.30:0.65:0.15, + 0.00:0.00:0.00] + +\stopsetups + +\startsetups resume:red + + \definecolorgroup + [resume] + [0.00:0.00:0.00, + 0.00:0.00:0.00, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.95:0.20:0.20, + 1.00:0.30:0.30, + 0.95:0.20:0.20, + 0.95:0.20:0.20, + 0.00:0.00:0.00] + +\stopsetups + +\startsetups resume:grey + + \definecolorgroup + [resume] + [0.00:0.00:0.00, + 0.00:0.00:0.00, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.75:0.75:0.75, + 0.35:0.35:0.35, + 0.35:0.35:0.35, + 0.00:0.00:0.00] + +\stopsetups + +\processaction + [\resumestylevalue\v!option\c!color] + [ blue=>\directsetup{resume:blue}, + orange=>\directsetup{resume:orange}, + green=>\directsetup{resume:green}, + red=>\directsetup{resume:red}, + grey=>\directsetup{resume:grey}, + \s!unknown=>\directsetup{resume:blue}] + +%D Quick and dirty solution + +\def\attributedresumevalue#1% + {\doattributes{\????rd#1}\c!style\c!color{\resumevalue{#1}}} + +\def\resumeheadalternativecassual[#1]% + {\bgroup + \def\doresumeheadalternativecassual##1% + {\doifresumevalue{##1}{\advance\scratchcounter\plusone}}% + \def\dodoresumeheadalternativecassual##1% + {\doifresumevalue{##1} + {\advance\scratchcounter\plusone + \attributedresumevalue{##1}% + \ifnum\scratchcounter<\resumeheadvalues\\\fi}}% + \scratchcounter\zerocount + \processcommalist[#1]\doresumeheadalternativecassual + \edef\resumeheadvalues{\number\scratchcounter}% + \scratchcounter\zerocount + \processcommalist[#1]\dodoresumeheadalternativecassual + \egroup} + +\setvalue{\v!resume:\v!head:\v!classic}% + {\hbox to \textwidth\bgroup + \vbox\bgroup + \hbox{\attributedresumevalue\v!firstname\space\attributedresumevalue\v!familyname} + \doifresumevalue\v!title{\blank[\v!medium]} + \hbox{\attributedresumevalue\v!title} + \egroup + \hss + \framed + [\c!location=\v!bottom,\c!align=\v!left,\c!width=\v!fit,\c!frame=\v!off] + {\resumeheadalternativecassual[street,town,mobile,phone,fax,email,info]}% + \quad + \framed[\c!offset=2\points,\c!strut=\v!no]{\resumevalue{image}}% + \egroup} + +\setvalue{\v!resume:\v!nextfoot:\v!classic}% + {\color[resume:4]{\it\correspagenumber/\numberofcorrespages}} + +\setupresumestyle + [\v!head,\v!nextfoot] + [\c!alternative=\v!classic] + +\setupresumestyle + [\v!head] + [\c!hoffset=\backspace, + \c!voffset=2cm, + \c!frame=\v!off, + \c!width=\textwidth, + \c!height=7cm] + +\setupresumestyle + [\v!nextfoot] + [\v!option] + [\c!state={\v!first,\v!next}] + +\setupresumestyle + [\v!nextfoot] + [\v!frame] + [\c!frame=\v!off, + \c!width=\textwidth, + \c!height=2cm, + \c!align={\v!left,\v!lohi}] + +\setupresumestyle + [\v!nextfoot] + [\v!layer] + [\c!preset=\v!left\v!bottom, + \c!hoffset=\backspace, + \c!voffset=2cm] + +%D Default style for the user information + +\setupresume[\v!quote] [\c!style=\v!italic,\c!color=resume:4] +\setupresume[\v!firstname] [\c!style=\c!tf\c!d,\c!color=resume:1] +\setupresume[\v!familyname][\c!style=\c!tf\c!d,\c!color=resume:2] +\setupresume[\v!title] [\c!style=\c!it\c!b,\c!color=resume:3] +\setupresume[\v!street] [\c!style=\v!italic,\c!color=resume:5] +\setupresume[\v!town] [\c!style=\v!italic,\c!color=resume:5] +\setupresume[\v!mobile] [\c!style=\v!italic,\c!color=resume:5] +\setupresume[\v!phone] [\c!style=\v!italic,\c!color=resume:5] +\setupresume[\v!fax] [\c!style=\v!italic,\c!color=resume:5] +\setupresume[\v!email] [\c!style=\v!italic,\c!color=resume:5] +\setupresume[\v!info] [\c!style=\v!italic,\c!color=resume:5] + +\protect \endinput |