Danke.
In dem konkreten Fall wird die linke Box allerdings mit \savebox erzeugt.
Und bei \savebox kann ich den Parameter nicht verwenden.
Ich hatte gehofft, die \savebox mit einer minipage oder einer \parbox einzurahmen und dann mit zu positionieren.
[code]\documentclass{scrartcl}
\usepackage{showframe}
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.
Das Problem scheint bei der \@picbox zu liegen.
Wenn ich bei die \@picbox gegen unsere \foo box aus dem Mini-Bsp. ersetze, dann wird der Name im Komacv "richtig" oben rechts gesetzt.
Ich kann mir das nicht erklären. Ich dachte immer Box sei Box, unabhängig vom Inhalt.
%%%%%% -->
\newbox{\foo}
\savebox{\foo}{%
\begin{tabular}[t]{@{}l@{}}
Lorem\\ipsum\\dolor\\sit\\amet
\end{tabular}%
}
%%%%%%%%%%%%%
\providecommand\@cvtitletest{%
\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 austauschen
% \usebox{\@picbox}
\usebox{\foo}
%%%%%%%%%%%%%%
\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-test
Ich konnte den Style-Code in das Minimalbeispiel übertragen.
Tatsächlich ist \includegraphics das Problem.
Bei texwelt.de habe ich eine dreckige Lösung gefunden: https://texwelt.de/wissen/fragen/4116/w ... ausrichten