-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhusttalk.sty
More file actions
executable file
·129 lines (114 loc) · 3.45 KB
/
Copy pathhusttalk.sty
File metadata and controls
executable file
·129 lines (114 loc) · 3.45 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
\ProvidesExplPackage{husttalk}
{[LATEST]}{[DEV]}
{Auxiliary package for HUST LaTeX Talk}
\DeclareRobustCommand{\LaTeX}{%
L\kern-.3em%
\raisebox{.2em}{A}\kern-.14em%
\TeX}
\RequirePackage{hustvisual}
% \RequirePackage{animate} % for animated TikZ figures
\RequirePackage{unicode-math}
\RequirePackage{smartdiagram}
\RequirePackage{multicol}
\RequirePackage{qrcode}
\RequirePackage{graphicx}
\RequirePackage{siunitx}
\RequirePackage{ulem}
\RequirePackage{booktabs}
\RequirePackage{tipa} % for IPA phonetic symbols
\RequirePackage{fontawesome5} % for FontAwesome icons \faXXXX
\RequirePackage{hologo} % for \hologo{XXX} command
\RequirePackage{fancynum}
\setfnumgsym{\,}
\RequirePackage[lined,boxed,linesnumbered,ruled,vlined,algosection]{algorithm2e}
\RequirePackage{array,tabu}
\RequirePackage{multirow}
\RequirePackage{graphicx,caption,subcaption}
\RequirePackage{geometry}
\hypersetup{
unicode,
bookmarksnumbered=true,
bookmarksopen=true,
bookmarksopenlevel=0,
breaklinks=true,
colorlinks=true,
allcolors=hustred,
linktoc=page,
plainpages=false,
pdfstartview={XYZ null null 1}
}
\RequirePackage{listings}
\lstdefinelanguage{Julia}%
{morekeywords = {abstract,break,case,catch,const,continue,do,else,elseif,%
end,export,false,for,function,immutable,import,importall,if,in,%
macro,module,otherwise,quote,return,switch,true,try,type,typealias,%
using,while},%
sensitive = true,%
alsoother = {$},%
morecomment = [l]\#,%
morecomment = [n]{\#=}{=\#},%
morestring = [s]{"}{"},%
morestring = [m]{'}{'},%
}[keywords,comments,strings]%
\lstset{
basicstyle = \tiny\ttfamily\linespread{0.5},
keywordstyle = \color{hustblue}\bfseries,
commentstyle = \color{hustyouthgreen}\itshape,
stringstyle = \color{hustred},
showspaces = false,
showstringspaces = false,
showtabs = false,
numbers = none,
numberstyle = \tiny\color{hustspacegray},
% frame = lines,
rulecolor = \color{black},
emphstyle = [1]\itshape\color{hustenergyred},
emphstyle = [2]\color{hustvitalityorange},
breaklines = true,
numbersep = 5pt,
}
% Code listings
\lstdefinestyle{style@latex}{
language = [latex]TeX,
alsoletter = {*},
texcsstyle = *\color{hustoceanblue},
}
\lstnewenvironment{texcode}[1][]{\lstset{
style = style@latex,
basicstyle = \footnotesize\ttfamily,
gobble = 2,
morekeywords = {\documentclass,\usepackage,\begin,\end},#1}}{}
\colorlet{inline}{hustspacegray}
\lstdefinestyle{styleinline}{
basicstyle = \ttfamily\color{inline},
keepspaces = true
}
\ExplSyntaxOff
\lstMakeShortInline[style=styleinline]|
\DeclareDocumentCommand \cs { m }
{ \texttt{\color{inline}\textbackslash #1} }
\DeclareDocumentCommand \env { m }
{ \texttt{\color{inline} #1} }
\RequirePackage{etoolbox}
\BeforeBeginEnvironment{algorithm}{\lstDeleteShortInline|}
\AfterEndEnvironment{algorithm}{\lstMakeShortInline[style=styleinline]|}
\ExplSyntaxOn
\DeclareDocumentCommand\link{O{\faLink} m}{%
\href{#2}{\color{hustblue}#1}%
}
\newcommand{\jatext}[1]{{\addCJKfontfeatures{Language=Japanese}#1}}
\newcommand{\pkg}[1]{\textsf{#1}}
\newcommand{\cls}[1]{\textsf{#1}}
\newcommand{\zhparen}[1]{(\raisebox{0.1ex}{#1})}
\newcommand{\nonumberfootnote}[2][]{%
\let\thefootnote\relax
\footnotetext#1{#2}
}
% snippet support
\RequirePackage[siunitx]{circuitikz}
\RequirePackage{musixtex}
\RequirePackage{xpinyin}
\ExplSyntaxOff
\usetikzlibrary{arrows,intersections,positioning} % ExplPackage
\usetikzlibrary{shapes.geometric, shapes.misc, arrows.meta}
\ExplSyntaxOn