diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-06 00:17:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-06 00:17:18 +0000 |
commit | 113e17a8d8e8ae3b7af7140e4ab17590631c4ced (patch) | |
tree | 80f40c49440f6d01f840a4e5f06cdc064f824582 /Master/texmf-dist/tex/context/third/letter/style/modern.nrs | |
parent | 2ef52c0386a2e84ce1fff1163736bbb69fcfabb2 (diff) |
context-letter update (4jul09)
git-svn-id: svn://tug.org/texlive/trunk@14137 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/third/letter/style/modern.nrs')
-rw-r--r-- | Master/texmf-dist/tex/context/third/letter/style/modern.nrs | 156 |
1 files changed, 0 insertions, 156 deletions
diff --git a/Master/texmf-dist/tex/context/third/letter/style/modern.nrs b/Master/texmf-dist/tex/context/third/letter/style/modern.nrs deleted file mode 100644 index 47944a57325..00000000000 --- a/Master/texmf-dist/tex/context/third/letter/style/modern.nrs +++ /dev/null @@ -1,156 +0,0 @@ -%D \module -%D [ file=modern, -%D version=2009.04.10, -%D title=\CONTEXT\ Resume Style, -%D subtitle=Modern Style, -%D author=Wolfgang Schuster, -%D date=\currentdate, -%D copyright=Wolfgang Schuster, -%D email=schuster.wolfgang@googlemail.com, -%D license=Public Domain] - -\unprotect - -\useresumestyle[default] - -\setupcolors[\c!state=\v!start] - -\definemeasure[quotewidth] [.65\textwidth] -\definemeasure[separatorcolumnwidth] [.025\textwidth] -\definemeasure[hintscolumnwidth] [.15\textwidth] -\definemeasure[maincolumnwidth] [\dimexpr\textwidth-\measure{separatorcolumnwidth}-\measure{hintscolumnwidth}\relax] -\definemeasure[doubleitemmaincolumnwidth] [\dimexpr(\measure{maincolumnwidth}-\measure{hintscolumnwidth}-\measure{separatorcolumnwidth})/2\relax] -\definemeasure[listitemsymbolwidth] [2em] % LaTeX assingnment is not possible in ConTeXt -\definemeasure[listitemmaincolumnwidth] [\dimexpr\measure{maincolumnwidth}-\measure{listitemsymbolwidth}\relax] -\definemeasure[listdoubleitemmaincolumnwidth][\dimexpr.475\measure{listitemmaincolumnwidth}\relax] - -\def\ModerncvSectionCommand#1#2% - {\hbox to \hsize - {\blackrule[\c!width=\measure{hintscolumnwidth},\c!height=1ex,\c!depth=-.5ex,\c!color=resume:6]% - \hskip\measure{separatorcolumnwidth}% - \vtop{\hsize\measure{maincolumnwidth}#2}}} - -\setuphead - [\v!section] - [\c!color=resume:7, - \c!number=\v!no, - \c!incrementnumber=\v!no, - \c!before={\blank[2*\v!medium]}, - \c!after={\blank[\v!medium]}, - \c!command=\ModerncvSectionCommand] - -\def\ModerncvSubsectionCommand#1#2% - {\hbox to \hsize - {\hskip\dimexpr\measure{hintscolumnwidth}+\measure{separatorcolumnwidth}\relax - \vtop{\hsize\measure{maincolumnwidth}#2}}} - -\setuphead - [\v!subsection] - [\c!color=resume:8, - \c!number=\v!no, - \c!incrementnumber=\v!no, - \c!before={\blank[2*\v!medium]}, - \c!after={\blank[\v!medium]}, - \c!command=\ModerncvSubsectionCommand] - -%D Moderncv compatible commands for the user data. - -\def\cvline - {\dosingleempty\docvline} - -\def\docvline[#1]#2#3% - {\bgroup\dontcomplain - \starttable[s0|s0rp(\measure{hintscolumnwidth})|s0w(\measure{separatorcolumnwidth})|s0p(\measure{maincolumnwidth})|] - \NC\doifelsenothing{#2}{~}{\setupinterlinespace\relax#2}\NC\NC\setupinterlinespace\relax#3\NC\NR - \stoptable - \egroup - \doifelsenothing{#1}{\blank[.25em]}{\blank[#1]}} - -\def\cvdoubleitem#1#2#3#4% - {\cvline{#1} - {\hbox\bgroup - \vtop{\hsize\measure{doubleitemmaincolumnwidth}#2}% - \hfill - \vtop{\hsize\measure{hintscolumnwidth}\raggedleft#3}% - \hskip\measure{separatorcolumnwidth}% - \vtop{\hsize\measure{doubleitemmaincolumnwidth}#4}% - \egroup}} - -\def\cvlistitem - {\dosingleempty\docvlistitem} - -\def\docvlistitem[#1]#2% default symbol is \textbullet and not \endash - {\cvline[none]{}{\doifelsenothing{#1}{--}{#1}~\vtop{\hsize\measure{listitemmaincolumnwidth}#2}}} - -\def\cvlistdoubleitem - {\dosingleempty\docvlistdoubleitem} - -\def\docvlistdoubleitem[#1]#2#3% - {\cvline[none]{}% - {\hbox\bgroup - \doifelsenothing{#1}{--}{#1}~\vtop{\hsize\measure{listdoubleitemmaincolumnwidth}#2}% - \hfill - \doifsomething{#3}{\doifelsenothing{#1}{--}{#1}~\vtop{\hsize\measure{listdoubleitemmaincolumnwidth}#3}}% - \egroup}} - -\def\cventry#1#2#3#4#5#6% - {\cvline{#1} - {{\bf#2}% - \doifsomething{#3}{, {\it#3}}% - \doifsomething{#4}{, {#4}}% - \doifsomething{#5}{, {#5}}% - .% - %\doifsomething{#6}{\crlf\vtop{\hsize\measure{maincolumnwidth}\tx#6}}}}% should also work without the box - \doifsomething{#6}{\crlf\tx#6}}} - -\def\cvlanguage#1#2#3% - {\cvline{#1} - {\hbox\bgroup - \vtop{\hsize\dimexpr.225\measure{maincolumnwidth}\relax\bf#2}% - \hfill - \vtop{\hsize\dimexpr.725\measure{maincolumnwidth}\relax\raggedleft\itx#3}% - \egroup}} - -\def\cvcomputer#1#2#3#4% - {\cvdoubleitem{#1}{\tx#2}{#3}{\tx#4}} - -%D Page optimation, change the topspace to produce a distance of 2.5em -%D between the bottom of the header and the first line of text. - -\newdimen\resume!height!head - -\startsetups[\v!resume:\v!optimize] - - \setbox\scratchbox\vbox{\dontcomplain\getvalue{\v!resume:\v!head:\@@@@rsheadalternative}} - - \ifdim\htdp\scratchbox>\zeropoint - - \global\resume!height!head\htdp\scratchbox - - \setupresumestyle - [\v!firstpage] - [\c!topspace=\dimexpr\resume!height!head+\resumestylevalue{\v!head\v!layer}\c!voffset+2.5em\relax] - - \fi - -\stopsetups - -\setupresumestyle - [\v!firstpage,\v!secondpage] - [\c!backspace=20mm, - \c!width=168mm, - \c!header=0pt, - \c!footer=0pt, - \c!topspace=30mm, - \c!bottomspace=40mm, - \c!height=\v!fit] - -\setupresumestyle - [\v!head,\v!foot] - [\c!state=\v!start] - -\setupresumestyle - [\v!nexthead,\v!nextfoot] - [\c!state=\v!next] - -\protect \endinput |