Skip to content

Commit

Permalink
class: Explain why \ignorespaces is required for CJK abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
liweitianux committed Dec 6, 2024
1 parent effa434 commit d0630a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions resume.cls
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,11 @@
\phantomsection
\addcontentsline{toc}{section}{\ifdef{\@zh}{摘要}{Abstract}}
\ifdef{\@zh}{%
\onehalfspacing\hspace{2em}%
\ignorespaces% remove the beginning glue to make the indentation correct
% Use "\ignorespaces" to remove the beginning space, which becomes a
% glue between western and CJK characters, to make the indentation
% correct.
% Credit: https://tex.stackexchange.com/a/331456
\onehalfspacing\hspace{2em}\ignorespaces
}{}%
}{%
\par
Expand Down

0 comments on commit d0630a0

Please sign in to comment.