Skip to content

Commit

Permalink
class: Fix the default position of photo to be left
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitianux committed Dec 6, 2024
1 parent f950475 commit effa434
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions resume.cls
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
%% https://www.latextemplates.com/template/plasmati-graduate-cv
%%

\ProvidesClass{resume}[2024/12/06 v2.6.1 Resume Class]
\ProvidesClass{resume}[2024/12/06 v2.6.2 Resume Class]
\LoadClass{article}

%%
Expand Down Expand Up @@ -325,9 +325,7 @@
\newcommand*{\makeheader}{
\ifdef{\@photo}{%
\def\@profile@width{\dimexpr \linewidth - \@photo@width - 1em}
\ifdefstring{\@photo@position}{left}{%
\@photo\hspace{1em}%
}{}%
\ifdefstring{\@photo@position}{right}{}{\@photo\hspace{1em}}%
}{%
\def\@profile@width{\linewidth}
}%
Expand All @@ -342,7 +340,7 @@
\end{minipage}
\ifdef{\@photo}{%
% photo on the right side
\ifdefstring{\@photo@position}{left}{}{\hfill\@photo}% (suppress blank)
\ifdefstring{\@photo@position}{right}{\hfill\@photo}{}% (suppress blank)
}{}
}

Expand Down

0 comments on commit effa434

Please sign in to comment.