]> git.lyx.org Git - lyx.git/commitdiff
support for moderncv: Layout file and template as we currently have no CV template...
authorUwe Stöhr <uwestoehr@web.de>
Tue, 3 Apr 2007 01:52:34 +0000 (01:52 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 3 Apr 2007 01:52:34 +0000 (01:52 +0000)
(The next days I'll also prepare support for europecv, the second nicht CV class that is also required to use in some fields.)

I hope I'm not too rash here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17700 a592a061-630c-0410-9148-cb99ea01b6c8

development/scons/scons_manifest.py
lib/Makefile.am
lib/layouts/moderncv.layout [new file with mode: 0644]
lib/templates/modernCV.lyx [new file with mode: 0644]
lib/templates/modernCV.png [new file with mode: 0644]
lib/templates/test.bib [new file with mode: 0644]

index 7db423027b0b081aaa2e3932ade03d5d824bcd68..db5a7d39dbf390ef5e2dd352c4610116ad3207bc 100644 (file)
@@ -2184,6 +2184,7 @@ lib_layouts_files = Split('''
     ltugboat.layout
     manpage.layout
     memoir.layout
+    moderncv.layout
     mwart.layout
     mwbk.layout
     mwrep.layout
@@ -2267,6 +2268,7 @@ lib_templates_files = Split('''
     README.new_templates
     aa.lyx
     aastex.lyx
+    agu_article.lyx
     beamer-conference-ornate-20min.lyx
     de_beamer-conference-ornate-20min.lyx
     dinbrief.lyx
@@ -2276,17 +2278,19 @@ lib_templates_files = Split('''
     g-brief2.lyx
     g-brief-de.lyx
     g-brief-en.lyx
+    ijmpc.lyx
+    ijmpd.lyx
     hollywood.lyx
     kluwer.lyx
     koma-letter2.lyx
     latex8.lyx
     letter.lyx
+    modernCV.lyx
+    modernCV.png
     revtex.lyx
     revtex4.lyx
     slides.lyx
-    ijmpc.lyx
-    ijmpd.lyx
-    agu_article.lyx
+    test.bib
 ''')
 
 
index ab478b7c35df24001511cf7ec533d499c40c1219..5cdd5f788290577867f14f53f1f1c88ad033ec0f 100644 (file)
@@ -926,6 +926,7 @@ dist_layouts_DATA =\
        layouts/ltugboat.layout \
        layouts/lyxmacros.inc \
        layouts/manpage.layout \
+       layouts/moderncv.layout \
        layouts/mwart.layout \
        layouts/mwbk.layout \
        layouts/mwrep.layout \
@@ -994,6 +995,7 @@ dist_templates_DATA = \
        templates/README.new_templates \
        templates/aa.lyx \
        templates/aastex.lyx \
+       templates/agu_article.lyx \
        templates/beamer-conference-ornate-20min.lyx \
        templates/de_beamer-conference-ornate-20min.lyx \
        templates/dinbrief.lyx \
@@ -1004,16 +1006,18 @@ dist_templates_DATA = \
        templates/g-brief-de.lyx \
        templates/g-brief-en.lyx \
        templates/hollywood.lyx \
+       templates/ijmpc.lyx \
+       templates/ijmpd.lyx \
        templates/kluwer.lyx \
        templates/koma-letter2.lyx \
        templates/latex8.lyx \
        templates/letter.lyx \
+       templates/modernCV.lyx \
+       templates/modernCV.png \
        templates/revtex.lyx \
        templates/revtex4.lyx \
        templates/slides.lyx \
-       templates/ijmpc.lyx \
-       templates/ijmpd.lyx \
-       templates/agu_article.lyx
+       templates/test.bib
 
 texdir = $(pkgdatadir)/tex
 dist_tex_DATA = \
diff --git a/lib/layouts/moderncv.layout b/lib/layouts/moderncv.layout
new file mode 100644 (file)
index 0000000..fa1f6ce
--- /dev/null
@@ -0,0 +1,49 @@
+#% Do not delete the line below; configure depends on this
+#  \DeclareLaTeXClass{curriculum vitae (modern)}
+# modern CV textclass definition file.
+# Author : Uwe Stöhr (uwestoehr@web.de)
+
+
+# General textclass parameters
+Format 3
+Columns                        1
+Sides                  1
+SecNumDepth            -1
+TocDepth               -1
+
+
+# Standard style definition
+Style Standard
+       Margin                Static
+       LatexType             Paragraph
+       LatexName             dummy
+       ParIndent             MM
+       ParSkip               0.4
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       LabelType             No_Label
+End
+
+Input stdfloats.inc
+Input stdcounters.inc
+
+Style Section
+       Margin                Dynamic
+       LatexType             Command
+       LatexName             section
+       NeedProtect           1
+       NextNoIndent          1
+       LabelSep              xxx
+       ParSkip               0.4
+       TopSep                1.3
+       BottomSep             0.7
+       ParSep                0.7
+       Align                 Block
+       AlignPossible         Block, Left
+       LabelType             No_Label
+       Font
+         Family              Sans
+         Series              Bold
+       EndFont
+End
+
diff --git a/lib/templates/modernCV.lyx b/lib/templates/modernCV.lyx
new file mode 100644 (file)
index 0000000..844f391
--- /dev/null
@@ -0,0 +1,1227 @@
+#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 263
+\begin_document
+\begin_header
+\textclass moderncv
+\begin_preamble
+\moderncvstyle{classic}
+% possible styles are "classic", "casual", "'nocolor" (black & white), and "roman" (for roman fonts instead of sans serif fonts)
+
+\firstname{Paul}
+\familyname{Testman}
+
+\title{Curriculum Vitae}
+
+\address{Teststreet\\
+03333 Nicecity\\
+Switzerland}
+
+\phone{+43(0)999 9999}
+\email{testman@testman.xx}
+\extrainfo{www.lyx.org}
+
+\photo[64pt]{modernCV}
+
+\quote{You only live twice.}
+
+\AtBeginDocument{\maketitle}
+\end_preamble
+\language english
+\inputencoding auto
+\font_roman default
+\font_sans default
+\font_typewriter default
+\font_default_family default
+\font_sc false
+\font_osf false
+\font_sf_scale 100
+\font_tt_scale 100
+\graphics default
+\paperfontsize 12
+\spacing single
+\papersize default
+\use_geometry false
+\use_amsmath 1
+\use_esint 1
+\cite_engine basic
+\use_bibtopic false
+\paperorientation portrait
+\secnumdepth 3
+\tocdepth 3
+\paragraph_separation indent
+\defskip medskip
+\quotes_language english
+\papercolumns 1
+\papersides 1
+\paperpagestyle default
+\tracking_changes false
+\output_changes false
+\author "usti" 
+\end_header
+
+\begin_body
+
+\begin_layout Standard
+\begin_inset Note Note
+status open
+
+\begin_layout Standard
+
+\series bold
+Note:
+\series default
+ The personal settings like your name, address, etc.
+ are set in the document preamble.
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Education
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cventry{
+\end_layout
+
+\end_inset
+
+2003--2006
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Master of Economics
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Institution
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+City
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Country
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Description
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cventry{
+\end_layout
+
+\end_inset
+
+2001--2003
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Bachelor of Economics
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Institution
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+City
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Country
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Description
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Master Thesis
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvitem{
+\end_layout
+
+\end_inset
+
+Title
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\emph on
+Title of the thesis
+\emph default
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvitem{
+\end_layout
+
+\end_inset
+
+Supervisors
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Names of supervisors
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvitem{
+\end_layout
+
+\end_inset
+
+Description
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\size small
+Description text
+\size default
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Experience
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cventry{
+\end_layout
+
+\end_inset
+
+February 2006--
+\newline
+current
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Maintainer of OpenSource projekts
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Maintainer of the xxx documentation
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cventry{
+\end_layout
+
+\end_inset
+
+2005--2006
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Employer
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Corp.
+ name
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+City
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Country
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Description
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Languages
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvlanguage{
+\end_layout
+
+\end_inset
+
+French
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Native
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvlanguage{
+\end_layout
+
+\end_inset
+
+Dutch
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Near-native
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Primary education degree obtained in a Dutch college
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Computer skills
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvcomputer{
+\end_layout
+
+\end_inset
+
+OS
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Linux, Unix, Windows
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+administration
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Apache, Mailman
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvcomputer{
+\end_layout
+
+\end_inset
+
+Programming
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\shape smallcaps
+Java
+\shape default
+, C/C++
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+scripting
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+PHP, Shell, Ruby
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvcomputer{
+\end_layout
+
+\end_inset
+
+Scientific
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Matlab, Autocad, Abaqus
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+typography
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+LaTeX, ConTeXt, Scribus, QuarkXPress
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvcomputer{
+\end_layout
+
+\end_inset
+
+Web\InsetSpace ~
+design
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+XHTML, CSS, AJAX
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+database
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+MySQL, PostgreSQL
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Interests
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvitem{
+\end_layout
+
+\end_inset
+
+Adventure\InsetSpace ~
+sports
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\size small
+I like practicing adventure sports like skiing, rock climbing and scuba
+ diving, and have been a boy scout for five years.
+\size default
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvitem{
+\end_layout
+
+\end_inset
+
+Travelling
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+
+\size small
+I love travelling around the world.
+\size default
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Section with a list
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvlistitem{
+\end_layout
+
+\end_inset
+
+Single item.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvlistitem{
+\end_layout
+
+\end_inset
+
+Another single item.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvlistdoubleitem{
+\end_layout
+
+\end_inset
+
+Double\SpecialChar \ldots{}
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+\SpecialChar \ldots{}
+ item.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}%
+\end_layout
+
+\end_inset
+
+
+\newline
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvlistdoubleitem{
+\end_layout
+
+\end_inset
+
+Another double\SpecialChar \ldots{}
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+\SpecialChar \ldots{}
+ item.
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Section
+Section with your own content
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+closesection 
+\end_layout
+
+\end_inset
+
+Your content here, inside an unformatted environment.
+ You can use here e.g.
+ mathematics 
+\begin_inset Formula \[
+E=mc^{2}\]
+
+\end_inset
+
+put some table or figure, etc.
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+emptysection
+\end_layout
+
+\end_inset
+
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+cvitem{
+\end_layout
+
+\end_inset
+
+Now
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+Back to moderncv layout, without making a new section
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+
+\backslash
+nocite{*}
+\end_layout
+
+\end_inset
+
+
+\begin_inset Note Note
+status collapsed
+
+\begin_layout Standard
+Prints all entries of BibTeX-file
+\end_layout
+
+\end_inset
+
+
+\begin_inset LatexCommand bibtex
+options "plain"
+bibfiles "test"
+
+\end_inset
+
+
+\end_layout
+
+\end_body
+\end_document
diff --git a/lib/templates/modernCV.png b/lib/templates/modernCV.png
new file mode 100644 (file)
index 0000000..8541c00
Binary files /dev/null and b/lib/templates/modernCV.png differ
diff --git a/lib/templates/test.bib b/lib/templates/test.bib
new file mode 100644 (file)
index 0000000..f1be181
--- /dev/null
@@ -0,0 +1,16 @@
+This file was created with JabRef 2.2.
+Encoding: Cp1252
+
+@BOOK{LComp2004,
+  title = {The LaTeX Companion Second Edition},
+  publisher = {Addison-Wesley},
+  year = {2004},
+  author = {Frank Mittelbach and Michael Goossens}
+}
+
+@MISC{Parkin2005,
+  author = {Scott Pakin},
+  title = {The Comprehensive {\LaTeX{}} Symbol List},
+  year = {2005}
+}
+