summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/third/letter/interface/moderncv.nri
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/third/letter/interface/moderncv.nri')
-rw-r--r--Master/texmf-dist/tex/context/third/letter/interface/moderncv.nri222
1 files changed, 0 insertions, 222 deletions
diff --git a/Master/texmf-dist/tex/context/third/letter/interface/moderncv.nri b/Master/texmf-dist/tex/context/third/letter/interface/moderncv.nri
deleted file mode 100644
index 2e94b2ebec4..00000000000
--- a/Master/texmf-dist/tex/context/third/letter/interface/moderncv.nri
+++ /dev/null
@@ -1,222 +0,0 @@
-%D \module
-%D [ file=moderncv,
-%D version=2010.11.22,
-%D title=\CONTEXT\ Resume Interface,
-%D subtitle=moderncv Interface,
-%D author=Wolfgang Schuster,
-%D date=\currentdate,
-%D copyright=Wolfgang Schuster,
-%D email=schuster.wolfgang@googlemail.com,
-%D license=Public Domain]
-
-\unprotect
-
-%D The moderncv interface enables color by default
-
-\setupcolors[\c!state=\v!start]
-
-%D Resume environment, taken from the default interface
-
-\def\startresume
- {\bgroup\dosingleempty\dostartresume}
-
-\long\def\dostartresume[#1]#2\stopresume
- {\iffirstargument
- \getparameters[\????rd][#1]%
- \fi
- \setbuffer[resumecontent]#2\endbuffer
- \directsetup{\v!resume:\v!place}\egroup}
-
-\def\startresumecontent
- {\dostartbuffer[resumecontent][startresumecontent][stopresumecontent]}
-
-\setupresume
- [\c!content={\getbuffer[resumecontent]}]
-
-\startsetups[\v!resume:\v!content]
-\resumevalue\c!content
-\stopsetups
-
-\startsetups[\v!resume:\v!head]
-\executeifdefined{\v!resume:\v!head:\@@@@rsheadalternative}\donothing
-\stopsetups
-
-\startsetups[\v!resume:\v!foot]
-\executeifdefined{\v!resume:\v!foot:\@@@@rsfootalternative}\donothing
-\stopsetups
-
-\startsetups[\v!resume:\v!nexthead]
-\executeifdefined{\v!resume:\v!nexthead:\@@@@rsnextheadalternative}\donothing
-\stopsetups
-
-\startsetups[\v!resume:\v!nextfoot]
-\executeifdefined{\v!resume:\v!nextfoot:\@@@@rsnextfootalternative}\donothing
-\stopsetups
-
-%D Rewrite of the LaTeX package
-
-\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
- {\hskip\dimexpr\measure{hintscolumnwidth}+\measure{separatorcolumnwidth}\relax
- \vtop{\hsize\measure{maincolumnwidth}#2}}}
-
-\def\ModerncvSectionTextcommand
- {\llap
- {\blackrule[\c!width=\measure{hintscolumnwidth},\c!height=1ex,\c!depth=-.5ex,\c!color=resume:6]%
- \hskip\measure{separatorcolumnwidth}}}
-
-\setuphead
- [\v!section]
- [\c!color=resume:7,
- \c!incrementnumber=\v!no,
- \c!before={\blank[2*\v!medium]},
- \c!after={\blank[\v!medium]},
- \c!command=\ModerncvSectionCommand,
- \c!deeptextcommand=\ModerncvSectionTextcommand]
-
-\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!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}{\space}{\setupinterlinespace\relax#2}\NC\NC\setupinterlinespace\relax#3\NC\NR
- \stoptable
- \egroup
- \doifelsenothing{#1}{\blank[.25em]}{\blank[#1]}}
-
-\def\cvdoubleitem
- {\dosingleempty\docvdoubleitem}
-
-\def\docvdoubleitem[#1]#2#3#4#5%
- {\cvline
- [#1]
- {#2}
- {\hbox\bgroup
- \vtop{\hsize\measure{doubleitemmaincolumnwidth}#3}%
- \hfill
- \vtop{\hsize\measure{hintscolumnwidth}\raggedleft#4}%
- \hskip\measure{separatorcolumnwidth}%
- \vtop{\hsize\measure{doubleitemmaincolumnwidth}#5}%
- \egroup}}
-
-\def\cvlistitem
- {\dosingleempty\docvlistitem}
-
-\def\docvlistitem[#1]#2% default symbol is \textbullet and not \endash
- {\cvline[\v!nowhite]{}{\doifelsenothing{#1}{--}{#1}~\vtop{\hsize\measure{listitemmaincolumnwidth}#2}}}
-
-\def\cvlistdoubleitem
- {\dosingleempty\docvlistdoubleitem}
-
-\def\docvlistdoubleitem[#1]#2#3%
- {\cvline[\v!nowhite]{}%
- {\hbox\bgroup
- \doifelsenothing{#1}{--}{#1}~\vtop{\hsize\measure{listdoubleitemmaincolumnwidth}#2}%
- \hfill
- \doifsomething{#3}{\doifelsenothing{#1}{--}{#1}~\vtop{\hsize\measure{listdoubleitemmaincolumnwidth}#3}}%
- \egroup}}
-
-\def\cventry
- {\dosingleempty\docventry}
-
-\def\docventry[#1]#2#3#4#5#6#7%
- {\cvline
- [#1]
- {#2}
- {{\bf#3}%
- \doifsomething{#4}{, {\it#4}}%
- \doifsomething{#5}{, {#5}}%
- \doifsomething{#6}{, {#6}}%
- .%
- \doifsomething{#7}{\crlf\tx#7}}}
-
-\def\cvlanguage
- {\dosingleempty\docvlanguage}
-
-\def\docvlanguage[#1]#2#3#4%
- {\cvline
- [#1]
- {#2}
- {\hbox\bgroup
- \vtop{\hsize\dimexpr.225\measure{maincolumnwidth}\relax\bf#3}%
- \hfill
- \vtop{\hsize\dimexpr.725\measure{maincolumnwidth}\relax\raggedleft\itx#4}%
- \egroup}}
-
-\def\cvcomputer
- {\dosingleempty\docvcomputer}
-
-\def\docvcomputer[#1]#2#3#4#5%
- {\cvdoubleitem[#1]{#2}{\tx#3}{#4}{\tx#5}}
-
-%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]
-
-\setupresumestyle
- [\v!option]
- [\c!color=blue]
-
-\useresumestyle[classic]
-
-\protect \endinput