summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mycv/mycv_misc.def
blob: f1d69bb39add06fbebec7c39815d4767d6159423 (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
78
% -------------------------------------------------------
% Copyright 2012 Ghersi Andrea (ghanhawk@gmail.com).
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License version
% 1.3c, available at 'http://www.latex-project.org/lppl'.
% -------------------------------------------------------

\ProvidesFileSVN
   {$Id: mycv_misc.def 66 2012-04-28 14:38:41Z ghangenit $}
   [v\@versionstr][Miscellaneous commands]

\RequirePackage{hyperref}

% -----------------------------------------------------
% partial hyperref setup: the rest is set in style file
% -----------------------------------------------------

\hypersetup{%
   pdfstartpage = 1,
   pdfauthor    = \@pdfauthor,
   pdftitle     = \@pdftitle,
   pdfsubject   = \@pdfsubject,
   pdfproducer  = \LaTeX{},
   pdfkeywords  = cv curriculum vit\ae{},
   pdfcreator   = \LaTeX{} with 'mycv' (v\@versionstr)
}

%%%%%%%%%%%
%         %
% Margins %
%         %
%%%%%%%%%%%

\newenvironment{mychangemargin}[2]
   {\begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\leftmargin}{#1}%
    \setlength{\rightmargin}{#2}%
    \setlength{\partopsep}{0pt}%
    \setlength{\parsep}{\parskip}}\item[]%
   }%
   {\end{list}}

\newenvironment{mychangemarginLeft}[1]
   {\begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\leftmargin}{#1}%
    \setlength{\partopsep}{0pt}%
    \setlength{\parsep}{\parskip}}\item[]%
   }%
   {\end{list}}

\newenvironment{mychangemarginRight}[1]
   {\begin{list}{}{%
    \setlength{\topsep}{0pt}%
    \setlength{\rightmargin}{#1}%
    \setlength{\partopsep}{0pt}%
    \setlength{\parsep}{\parskip}}\item[]%
   }%
   {\end{list}}

%%%%%%%%%%%%%%%
%             %
% Other stuff %
%             %
%%%%%%%%%%%%%%%

\DeclareRobustCommand{\mylang}[2][english]{%
   \foreignlanguage{#1}{{z#2}}} %{\color{blue}{#2}}}

% ------------
% pdf metadata
% ------------

\DeclareRobustCommand{\mypdfsubject}[1]{\def\@pdfsubject{#1}}
\DeclareRobustCommand{\mypdfauthor}[1]{\def\@pdfauthor{#1}}
\DeclareRobustCommand{\mypdftitle}[1]{\def\@pdftitle{#1}}