-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hyperref.cfg
40 lines (38 loc) · 1.05 KB
/
hyperref.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% ocgcolorlinks has conflict with url
\ExecuteOptions{pdfusetitle, psdextra}
% \RequirePackage{url} by hyperref
\AtEndOfClass{%
\g@addto@macro{\UrlBreaks}{%
\UrlOrds
\do\1\do\2\do\3\do\4\do\5\do\6\do\7\do\8\do\9\do\0%
\do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j%
\do\k\do\l\do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t%
\do\u\do\v\do\w\do\x\do\y\do\z\do\A\do\B\do\C\do\D%
\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L\do\M\do\N%
\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X%
\do\Y\do\Z%
}%
}
\def\@oldauthor{\@latex@warning@no@line {No \noexpand \author given}}
\ifx\@author\@oldauthor
\RequirePackage{shellesc}
\ExplSyntaxOn%
\ifcase\ShellEscapeStatus
\or
\NewDocumentCommand{\@shell}{om}{\sys_get_shell:nnN{#2}{}#1}
\fi
\ExplSyntaxOff%
\ifx\@shell\@undefined
\else
\@shell[\@email]{git config user.email}
\ifx\ctexset\@undefined
\@shell[\@name]{git config user.name}
\else
\def\@name{中文名}
\fi
\author{%
\href{mailto:\@email}{\@name}
}
\fi
\fi
% ex: filetype=tex