aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2024-12-06 12:51:42 +0800
committerAaron LI <aly@aaronly.me>2024-12-06 12:54:14 +0800
commit5fed12f5f1ced16eff741d71faa8c6bf519c850d (patch)
tree474c25f09b131a3677527c8347d5e7f3fe38178c
parent882e80574468de40ef231669ea1b817c61bb95ac (diff)
downloadresume-5fed12f5f1ced16eff741d71faa8c6bf519c850d.tar.bz2
class: Renew the abstract environment for the summary/objectives
See also: PR #21
-rw-r--r--resume.cls18
1 files changed, 17 insertions, 1 deletions
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}
%%
@@ -347,6 +347,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
%%