-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslide.tex
103 lines (88 loc) · 3.22 KB
/
slide.tex
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
\documentclass{beamer}
\usepackage{ctex, hyperref, fontspec}
\usepackage[T1]{fontenc}
% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,pstricks,listings,stackengine}
\usepackage{caption,array,amssymb}
\usepackage{minted} % code block environment
\usepackage{annotate-equations}
\usepackage{xjtu}
% font and style
\usemintedstyle{manni} % code block style
\usefonttheme[onlymath]{serif} % font in math environment
% \setsansfont{PingFang SC} % Make sure your system has this font
% \setCJKsansfont{STSongti-SC-Bold} % Chinese font, make sure your system has this font
% set background picture
\setbeamertemplate{background}{
\includegraphics[width=\paperwidth,height=\paperheight]{pic/xjut_draw.png}
}
% natbib settings for "informs2014.bst"
\usepackage{natbib}
\bibpunct[, ]{(}{)}{,}{a}{}{,}%
\def\bibfont{\tiny}%
\def\bibsep{\smallskipamount}%
\def\bibhang{24pt}%
\def\newblock{\ }%
\def\BIBand{and}%
\author{Add Your Name Here}
\title{Add Title Here}
\subtitle{Add Subtitle Here}
\institute{Add Institute Here}
\date{\zhtoday}
% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}
\lstset{
basicstyle=\ttfamily\small,
keywordstyle=\bfseries\color{deepblue},
emphstyle=\ttfamily\color{deepred}, % Custom highlighting style
stringstyle=\color{deepgreen},
numbers=left,
numberstyle=\small\color{halfgray},
rulesepcolor=\color{red!20!green!20!blue!20},
frame=shadowbox,
}
\begin{document}
\begin{frame}
\titlepage
\begin{figure}[htpb]
\begin{center}
\includegraphics[width=0.2\linewidth]{pic/XJUT_Logo.png}
\end{center}
\end{figure}
\end{frame}
\begin{frame}
\tableofcontents[sectionstyle=show,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
\begin{frame}{Support eqn-annotation}
\begin{align*}
\begin{aligned}
{\left[\{U\}^{t=1: \tau}, V, \Theta\right] } & =\underset{\{U\}^{t=1: \tau}, V, \Theta}{\operatorname{argmin}} \sum_{i=1}^n \sum_{j=1}^{p+n} \sum_{t=1}^\tau\left\|z_{i j}^t-\eqnmarkbox[red]{mathrm-g}{\mathrm{g}}\left(v_j^{\top} \eqnmarkbox[blue]{u-i-t-1}{u_i^t} ; \Theta\right)\right\|_2^2 \\
& +\lambda_U \sum_{i=1}^n \sum_{t=1}^\tau\left\|\eqnmarkbox[blue]{u-i-t-2}{u_i^t}\right\|_2^2+\lambda_V \sum_{j=1}^{p+n}\left\|v_j\right\|_2^2
\end{aligned}
\end{align*}
\annotate[yshift=1em]{left}{mathrm-g}{$\mathrm{g}(\cdot)$ encodes the neural network parameterized by $\Theta$}
\annotate[yshift=-1em]{below,left}{u-i-t-2}{$u_i^t=f\left(u_i^{t-1}\right)$}
\end{frame}
\begin{frame}[fragile]{Code Block Example}
\begin{minted}[fontsize=\tiny]{python3}
class ProdLDA(nn.Module):
def __init__(self, vocab_size, num_topics, hidden, dropout):
super().__init__()
\end{minted}
\end{frame}
\begin{frame}
\begin{center}
{\Huge\calligra Thanks!}
\end{center}
\end{frame}
% \begin{frame}[allowframebreaks]{References}
% \bibliography{your_bib_file.bib}
% \bibliographystyle{informs2014}
% \end{frame}
\end{document}