From 623c812ad9f18e80cd3ca0032ec3ec4187202593 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 13 Apr 2012 22:31:07 +0000 Subject: new latex package mycv (13apr12) git-svn-id: svn://tug.org/texlive/trunk@25955 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/mycv/mycv.cls | 101 ++++++ Master/texmf-dist/tex/latex/mycv/mycv_base.tex | 341 +++++++++++++++++++++ Master/texmf-dist/tex/latex/mycv/mycv_dec.tex | 226 ++++++++++++++ .../tex/latex/mycv/mycv_default_style.tex | 103 +++++++ Master/texmf-dist/tex/latex/mycv/mycv_misc.tex | 87 ++++++ 5 files changed, 858 insertions(+) create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv.cls create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_base.tex create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_dec.tex create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_default_style.tex create mode 100644 Master/texmf-dist/tex/latex/mycv/mycv_misc.tex (limited to 'Master/texmf-dist/tex/latex/mycv') diff --git a/Master/texmf-dist/tex/latex/mycv/mycv.cls b/Master/texmf-dist/tex/latex/mycv/mycv.cls new file mode 100644 index 00000000000..0df161ff8df --- /dev/null +++ b/Master/texmf-dist/tex/latex/mycv/mycv.cls @@ -0,0 +1,101 @@ +% ------------------------------------------------------- +% start of file 'mycv.cls'. +% 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'. +% ------------------------------------------------------- + +% =============================================================================== +% ------------------------------------------------------------------------- % +% Why a class file? (from document: LaTeX 2ε for class and package writers) % +% ------------------------------------------------------------------------- % +% % +% The first thing to do when you want to put some new LaTEX commands in a file % +% is to decide whether it should be a document class or a package. The rule of % +% thumb is: % +% % +% If the commands could be used with any document class, then make them a % +% package; if not, then make them a class. % +% =============================================================================== + +\NeedsTeXFormat{LaTeX2e} +\def\myversionstr{v1.5.2} +\ProvidesClass{mycv}[2012/04/13 \myversionstr My Curriculum Vitae Class] + +% ======== +% Packages +% ======== + +\RequirePackage{kvoptions} % see the comment above +\RequirePackage{etextools} % for lists and other useful tools +\RequirePackage{ifthen} % for <\ifthenelse> command +\RequirePackage{pifont} % 'ding' style for item of itemize env +\RequirePackage{xstring} % string utilities + +% ============= +% Class Options +% ============= + +\DeclareBoolOption{withDec} + +\DeclareDefaultOption{% + \PassOptionsToClass{\CurrentOption}{article}} + +\DeclareStringOption[english]{language} +\DeclareStringOption[Contents]{cntdir} +\DeclareStringOption[mycv_default_style]{style} +\DeclareStringOption[]{mdlname} +\ProcessKeyvalOptions* + +% ----------------------------------------------------------- +% The value of an option declared with <\DeclareStringOption> +% is stored in the macro \@