diff options
Diffstat (limited to 'zeitung/parts/teacherprofiletemplate.tex')
-rw-r--r-- | zeitung/parts/teacherprofiletemplate.tex | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zeitung/parts/teacherprofiletemplate.tex b/zeitung/parts/teacherprofiletemplate.tex index 13b3d4b..b2e848c 100644 --- a/zeitung/parts/teacherprofiletemplate.tex +++ b/zeitung/parts/teacherprofiletemplate.tex @@ -9,7 +9,12 @@ \end{minipage} \fi \begin{minipage}[c]{0.2\textwidth} - \includegraphics[keepaspectratio=true, width=4cm]{rahmen.png} + \def\imgpath{parts/generated/teacherimages/\profname.png} + \IfFileExists{\imgpath}{} + { + \def\imgpath{rahmen.png} + } + \includegraphics[keepaspectratio=true, width=4cm]{\imgpath} \end{minipage} \ifodd\profnum\else \hspace*{.5cm}% |