I want to merge a scrlttr2
and a komacv
.
I want the headers from komacv
to be congruent with those of scrlttr2
. So on page 1 of komacv
there should be the blue line (with same length as in scrlttr2 page 1) and the name and address stuff.
Page 2 of the komacv
should accordingly have the header of page 2 of scrlttr2
(with the corresponding length on page 2).
The photo from komacv
needs to stay on the left side. It should align with the left side of the blue boxes (or with the left end of the header).
I need your help! Thanks!
Update: Deleted source code and graphics, because they are not necessary anymore.
Best Answer
komacv
is based on the KOMA-Script classscrartcl
. So it is possible to use the relatively new KOMA-Script packagescrletter
to set the letter and the cv in one document.Additional I would use
scrlayer
to define a new page style for the first pages of both the letter and the cv.But
komacv
still loadsscrpage2
and this package can not be used together withscrlayer-scrpage
. So first of allensures that
komacv
does not loadscrpage2
.Then we can the define a new layer using the
letter
pseudolengthand declare a new page style using this layer
To align the photo you can insert this directly or redefine
maketitle
or alternatively
Code:
Update (because of a comment)
If the bars in cv should be 4pt height you have to redefine
\@cvbarsection
toBut note this is only a small change of the original
komacv
code. The originalkomacv
code already breaks some of the possibilities of the current KOMA-Script version.Result with
roboto
font:Code:
Use the opitional argument of
\rule
if you want to change the vertical position of the bars.Second update
komacv
does some hacks witch break some of the possibilities of the current KOMA versions. Especially\RecdeclareSectionCommand
does not work. Also the commands\beforesecvspace
etc. seems to have no effect. There is a information in thekomacv
documentation:As a workaround you can insert
\vspace*{...}
in the redefinition of\@cvbarsection
and\@cvbarsubsection
but note this are only hacks: