-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebase on moderncv 2.3.1 switch to lualatex remove comments remove biblatex optimize orphaned sections workaround use the DINish font Signed-off-by: Martin Dünkelmann <[email protected]>
- Loading branch information
Showing
14 changed files
with
130 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,35 @@ | ||
%! Package = cv | ||
%! Author = martin | ||
%! Date = 30.06.21 | ||
|
||
\NeedsTeXFormat{LaTeX2e} | ||
\ProvidesPackage{aussehen/CV}[2021/06/30 cv theming Package] | ||
|
||
\RequirePackage[ngerman]{babel} | ||
\RequirePackage{csquotes} | ||
\RequirePackage[ngerman]{isodate} | ||
\ProvidesPackage{aussehen/CV}[2024/08/19 cv theming Package] | ||
|
||
% moderncv themes | ||
\moderncvstyle{casual} % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy' | ||
\moderncvcolor{blue} % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red' | ||
\moderncvcolor{blue} | ||
\moderncvstyle{casual} | ||
|
||
\RequirePackage[firstyear=2009,lastyear=2022,marksyr=0.4ex,marksmo=0.2ex]{moderntimeline} | ||
|
||
% adjust the page margins | ||
% Die Seitenränder anpassen | ||
\RequirePackage[scale=0.75]{geometry} | ||
\setlength{\footskip}{136.00005pt} % depending on the amount of information in the footer, you need to change this value. comment this line out and set it to the size given in the warning | ||
%\setlength{\hintscolumnwidth}{3cm} % if you want to change the width of the column with the dates | ||
%\setlength{\makecvheadnamewidth}{10cm} % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks... | ||
|
||
% Use the helvet font. A font similliar to Arial | ||
\RequirePackage{helvet} | ||
\renewcommand{\familydefault}{\sfdefault} | ||
|
||
% Veröffentlichungen nach ISO 690 (Nachfolger von DIN 1505) | ||
% Further help at https://github.com/michal-h21/biblatex-iso690 | ||
\RequirePackage[style=iso-authoryear]{biblatex} | ||
\addbibresource{datenbanken/Veroeffentlichungen.bib} | ||
% Dinish Schriftart. Siehe https://github.com/playbeing/dinish | ||
\RequirePackage{fontspec} | ||
\RequirePackage{unicode-math} | ||
\defaultfontfeatures{Ligatures=TeX} | ||
\setmainfont[ | ||
Extension = .otf, | ||
Path = aussehen/font/, | ||
UprightFont = *-Regular, | ||
BoldFont = *-Bold, | ||
ItalicFont = *-Italic, | ||
BoldItalicFont = *-BoldItalic | ||
]{DINish} | ||
\setsansfont{Latin Modern Sans} | ||
\setmonofont{Latin Modern Mono} | ||
\setmathfont{Latin Modern Math} | ||
|
||
% bibliography with mutiple entries | ||
%\usepackage{multibib} | ||
%\newcites{book,misc}{{Books},{Others}} | ||
\RequirePackage[ngerman]{babel} | ||
|
||
% TODO WORKAROUND avoid orphaned section headers | ||
% TODO WORKAROUND avoid orphaned section headers until moderncv 2.4.1 | ||
% https://github.com/moderncv/moderncv/issues/10 | ||
% https://github.com/xdanaux/moderncv/issues/82 | ||
\RequirePackage{needspace} | ||
\let\oldsection=\section | ||
\renewcommand{\section}{ | ||
\newcommand{\sectionavoidpagebreak}[2]{ | ||
\needspace{3\baselineskip} | ||
\oldsection | ||
\section{#1}\label{sec:#2} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
% Brief | ||
\recipient{Company Recruitment team}{Company, Inc.\\Somestreet 123\\Somestadt} | ||
\date{\today} | ||
\opening{Sehr geehrte Damen und Herren,} | ||
\closing{Mit freundlichen Grüßen} | ||
\enclosure[Anhang]{Lebenslauf} | ||
|
||
% Lebenslauf | ||
\name{Max}{Mustermann} | ||
\title{Zusammenfassender Titel} | ||
\born{4. Juli 1776} | ||
\address{Musterstr. 42}{53123 Bonn}{Germany} | ||
\phone[mobile]{+1~(234)~567~890} | ||
\phone[fixed]{+2~(345)~678~901} | ||
\email{[email protected]} | ||
\homepage{https://www.maxmustermann.com} | ||
|
||
\extrainfo{Zusätzliche Informationen} | ||
\photo[64pt][0.4pt]{bilder/Profilfoto} | ||
\quote{Irgendein Zitat} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,64 @@ | ||
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' ); | ||
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' ); | ||
$clean_ext .= " acr acn alg glo gls glg"; | ||
sub makeglossaries { | ||
my ($base_name, $path) = fileparse( $_[0] ); | ||
pushd $path; | ||
my $return = system "makeglossaries", $base_name; | ||
popd; | ||
return $return; | ||
} | ||
# https://mirrors.ctan.org/support/latexmk/example_rcfiles/glossaries_latexmkrc | ||
|
||
# This shows how to use the glossaries package | ||
# (http://www.ctan.org/pkg/glossaries) and the glossaries-extra package | ||
# (http://www.ctan.org/pkg/glossaries-extra) with latexmk. | ||
|
||
# N.B. There is also the OBSOLETE glossary package | ||
# (http://www.ctan.org/pkg/glossary), which has some differences. See item 3. | ||
|
||
# 1. If you use the glossaries or the glossaries-extra package, then you can use: | ||
|
||
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' ); | ||
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' ); | ||
$clean_ext .= " acr acn alg glo gls glg"; | ||
|
||
sub makeglossaries { | ||
my ($base_name, $path) = fileparse( $_[0] ); | ||
my @args = ( "-q", "-d", $path, $base_name ); | ||
if ($silent) { unshift @args, "-q"; } | ||
return system "makeglossaries", "-d", $path, $base_name; | ||
} | ||
|
||
# 2. The above will tend to run makeglossaries more often than needed, since | ||
# each out of date file will trigger the use of makeglossaries, even | ||
# though makeglossaries makes all the glossaries. The following solution | ||
# solves this, but at the expense of not having the convenience that | ||
# makeglossaries can change how it makes the glossaries depending on the | ||
# settings of the glossaries package. | ||
# A better solution will need more advanced work. | ||
# | ||
# add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' ); | ||
# add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' ); | ||
# $clean_ext .= " acr acn alg glo gls glg"; | ||
# | ||
# sub makeglossaries { | ||
# my @args = ( "-s", "$_[0].ist", "-t", "$$Psource.ilg", | ||
# "-o", $$Pdest, $$Psource ); | ||
# if ($silent) { unshift @args, "-q"; } | ||
# return system "makeindex", @args; | ||
# } | ||
|
||
# 3. If you use the OBSOLETE glossary package, then you can do the following: | ||
# (Note that the code lines are commented out to avoid trouble when this | ||
# file is simply copied into a latexmkrc or this file is arranged to be | ||
# read by latexmk, and one of the modern packages glossaries and | ||
# glossaries-extra is used.) | ||
|
||
## For the main glossary: | ||
#add_cus_dep( 'glo', 'gls', 0, 'makeglo2gls' ); | ||
#sub makeglo2gls { | ||
# system("makeindex -s \"$_[0].ist\" -t \"$_[0].glg\" -o \"$_[0].gls\" \"$_[0].glo\"" ); | ||
#} | ||
|
||
## For acronyms: | ||
## | ||
## ===> WARNING: The code below is ONLY FOR PACKAGE glossary, NOT FOR | ||
## glossaries and glossaries-extra. In the current glossaries and | ||
## glossaries-extra packages the roles of the .acr and .acn files are | ||
## exchanged compared with the old glossary package. Hence the the | ||
## code below will fail with the more modern packages. | ||
#add_cus_dep( 'acr', 'acn', 0, 'makeacr2acn' ); | ||
#sub makeacr2acn { | ||
# system( "makeindex -s \"$_[0].ist\" -t \"$_[0].alg\" -o \"$_[0].acn\" \"$_[0].acr\"" ); | ||
#} |