I am making a latex template for presentation slides using beamer class.
I want to allow people to enter their email address and employee_id in the main tex file, before the line of \begin{document}.
I know the following codes, but it shows \newcommand in the preamble. I think it is not a clean template.
\documentclass{beamer}
\title{Latex Template for Presentation Slides}
\date{7 February 2018}
\author{My Name}
\newcommand{\email}{my.name@email.com}
\newcommand{\employeeid}{ID: 123456}
\begin{document}
\begin{frame}
\insertauthor
\email
\employeeid
\end{frame}
\end{document}
I want the following way. And the definition of \newcommand{\email}{} and \newcommand{\employeeid} should be added in beamerinnerthememytheme.sty file, and the users should only give their info in the main .tex file.
\documentclass{beamer}
\title{Latex Template for Presentation Slides}
\date{7 February 2018}
\author{My Name}
\email{my.name@email.com}
\employeeid{12345678}
\begin{document}
\begin{frame}
\insertauthor
\email
\employeeid
\end{frame}
\end{document}
I have seen post Email field in beamer class?, but it is not what I want. I want:
- more than email address (e.g. employee id)
- email address, employee id can be shown in different location/slides than the author name.
Do you know how to define such commands \email and \employeeid?
Thanks!
