From 5fed12f5f1ced16eff741d71faa8c6bf519c850d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 6 Dec 2024 12:51:42 +0800 Subject: class: Renew the abstract environment for the summary/objectives See also: PR #21 --- resume.cls | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/resume.cls b/resume.cls index 92ba875..f90332c 100644 --- a/resume.cls +++ b/resume.cls @@ -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} %% @@ -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 %% -- cgit v1.2.2