von olpo » So 11. Mär 2018, 09:40
Hmm, bei dem tätsächlichen Projekt will das noch nicht:
Ich bin dabei
komacv-casual.sty zu editieren. Von Zeile 88 bis 126 wird der Titel des CV erzeugt (siehe Code).
\providecommand\@cvtitlecasual{%
\newbox{\@picbox}
\savebox{\@picbox}{%
\ifundef{\@photoname}{}{% with picture:
\ifthenelse{%
\equal{\@photoframe}{frame} \OR
\equal{\@photoframe}{mframe}
}{% with frame:
\fcolorbox{@framecolor}{@framebackcolor}{%
\includegraphics[width=\@photowidth]{\@photoname}%
}% end fcolorbox
}{% without frame:
\includegraphics[width=\@photowidth]{\@photoname}%
}% end ifdefstring frame
}% end ifundef photoname
}% end savebox picbox
\settowidth\@titlepicwidth{\usebox{\@picbox}}
\setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
\usebox{\@picbox}%
\hspace*{\@titlesepwidth}%
\parbox[b]{\@titlenamewidth}{%
\raggedleft{\firstnamestyle\firstname}%
~{\familynamestyle\familyname}\\
\raggedleft\color{@firstnamecolor}\rule{\@titlenamewidth}{.25ex}\par
}% end parbox
\vspace{\@aftertitlevspace}
%% optional acadtitle
\ifdefempty{\acadtitle}{}{%
\raggedleft\acadtitlestyle{\acadtitle}}\\[2.5em]%
%% optional quote
\ifdefempty{\cvquote}{}{%
{\centering
\begin{minipage}{\@quotewidth}%
\centering\quotestyle{\cvquote}
\end{minipage}\\[\@afterquotevspace]%
}
}%
}% end \@cvtitle-casual
In dem ersten Abschnitt wird eine
@picbox angelegt und zu Beginn des zweiten Abschnitts mit
\usebox{\@picbox} verwendet.
Neben diese
@picbox wird eine
\parbox gesetzt.
Ich möchte nun erreichen, daß die \parbox in die Ecke oben rechts gesetzt wird.
Hmm, bei dem tätsächlichen Projekt will das noch nicht:
Ich bin dabei [i]komacv-casual.sty[/i] zu editieren. Von Zeile 88 bis 126 wird der Titel des CV erzeugt (siehe Code).[code]\providecommand\@cvtitlecasual{%
\newbox{\@picbox}
\savebox{\@picbox}{%
\ifundef{\@photoname}{}{% with picture:
\ifthenelse{%
\equal{\@photoframe}{frame} \OR
\equal{\@photoframe}{mframe}
}{% with frame:
\fcolorbox{@framecolor}{@framebackcolor}{%
\includegraphics[width=\@photowidth]{\@photoname}%
}% end fcolorbox
}{% without frame:
\includegraphics[width=\@photowidth]{\@photoname}%
}% end ifdefstring frame
}% end ifundef photoname
}% end savebox picbox
\settowidth\@titlepicwidth{\usebox{\@picbox}}
\setlength\@titlenamewidth{\textwidth-\@titlesepwidth-\@titlepicwidth}
\usebox{\@picbox}%
\hspace*{\@titlesepwidth}%
\parbox[b]{\@titlenamewidth}{%
\raggedleft{\firstnamestyle\firstname}%
~{\familynamestyle\familyname}\\
\raggedleft\color{@firstnamecolor}\rule{\@titlenamewidth}{.25ex}\par
}% end parbox
\vspace{\@aftertitlevspace}
%% optional acadtitle
\ifdefempty{\acadtitle}{}{%
\raggedleft\acadtitlestyle{\acadtitle}}\\[2.5em]%
%% optional quote
\ifdefempty{\cvquote}{}{%
{\centering
\begin{minipage}{\@quotewidth}%
\centering\quotestyle{\cvquote}
\end{minipage}\\[\@afterquotevspace]%
}
}%
}% end \@cvtitle-casual[/code]
In dem ersten Abschnitt wird eine [i]@picbox[/i] angelegt und zu Beginn des zweiten Abschnitts mit [i]\usebox{\@picbox}[/i] verwendet.
Neben diese [i]@picbox[/i] wird eine [i]\parbox[b][/i] gesetzt.
Ich möchte nun erreichen, daß die [i]\parbox[b][/i] in die Ecke oben rechts gesetzt wird.