Skip to content

Commit

Permalink
Define \email command for the cover page.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehao committed Feb 12, 2019
1 parent 315011f commit 39620d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions initialization.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
\title{课程名称}
\subtitle{The Course Name}
\date{\today}
\author{讲者\\ {\scriptsize\href{mailto:someone@email.address}{\itshape someone@email.address}}}
% \author{讲者}
% \email{someone@email.address}
\author{讲者}
\email{someone@email.address}
6 changes: 3 additions & 3 deletions styles/cuzbeamer.cls
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
\par%
\vspace*{0.5em}%
}
% \newcommand{\email}[1][]{\gdef\cuz@email{#1}}%
\newcommand{\email}[1]{\gdef\cuz@email{#1}}%
\setbeamertemplate{author}{
\ifxstringequal{\cuz@option@titlealignment}{left}{%
\raggedright%
Expand All @@ -187,8 +187,8 @@
\vspace*{2em}%
\insertauthor%
\par%
% {\scriptsize \href{mailto:\cuz@email}{\itshape \cuz@email}}%
% \par%
{\scriptsize \href{mailto:\cuz@email}{\itshape \cuz@email}}%
\par%
\vspace*{0.25em}%
}
\setbeamertemplate{date}{
Expand Down

0 comments on commit 39620d1

Please sign in to comment.