summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mycv/Examples/Models/model-layouts.tex
blob: f3297affee5e8a0bc3afafb7088b15c3ae7f91c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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}