Skip to content

Commit

Permalink
class: Renew the abstract environment for the summary/objectives
Browse files Browse the repository at this point in the history
See also: PR #21
  • Loading branch information
liweitianux committed Dec 6, 2024
1 parent 882e805 commit 5fed12f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion 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.0 Resume Class]
\ProvidesClass{resume}[2024/12/06 v2.6.1 Resume Class]
\LoadClass{article}

%%
Expand Down Expand Up @@ -346,6 +346,22 @@
}{}
}

%%
%% Abstract
%%

\RenewDocumentEnvironment{abstract}{}{
\phantomsection
\addcontentsline{toc}{section}{\ifdef{\@zh}{摘要}{Abstract}}
\ifdef{\@zh}{%
\onehalfspacing\hspace{2em}%
\ignorespaces% remove the beginning glue to make the indentation correct
}{}%
}{%
\par
\medskip
}

%%
%% Sections
%%
Expand Down

0 comments on commit 5fed12f

Please sign in to comment.