summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mycv/mycv_misc.def
blob: ae6b57543de0ace483d161f3feabdb6f63cdf561 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
%%
%% This is file `mycv_misc.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% mycv.dtx  (with options: `mycv-misc.def')
%% --------------------------------------------------------
%%  Author: Andrea Ghersi
%%  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'.
%% 
%%  This work has the LPPL maintenance status "maintained".
%%  The Current Maintainer of this work is Andrea Ghersi.
%% 
%%  This work consists of the files listed in the README
%%  file.
%% --------------------------------------------------------
%% -------------------------------------------------------
%% 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}}

\endinput
%%
%% End of file `mycv_misc.def'.