欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【LaTeX Template】Author Biography

程序员文章站 2022-04-25 19:01:55
...

Title Page

【LaTeX Template】Author Biography

Cover page

【LaTeX Template】Author Biography

Conflicts of Interest Page

【LaTeX Template】Author Biography

Biography Page

【LaTeX Template】Author Biography

Code

\documentclass[review, 12pt]{elsarticle}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xparse}
\usepackage{blindtext}
\usepackage{morewrites}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{xkeyval}
\usepackage{tcolorbox}

\newwrite\authorbibfile
\AtBeginDocument{%
  \immediate\openout\authorbibfile=\jobname.aub%
}%
\AtEndDocument{%
\immediate\closeout\authorbibfile
\InputIfFileExists{\jobname.aub}{}{}
}%

\makeatletter
\aaa@qq.com{authorbib}{scale}[1]{%
\def\AuthorbibKVMacroScale{#1}%
}
\aaa@qq.com{authorbib}{wraplines}[10]{%
\def\AuthorbibKVMacroWraplines{#1}%
}
\aaa@qq.com{authorbib}{imagewidth}[4cm]{%
\def\AuthorbibKVMacroImagewidth{#1}%
}
\aaa@qq.com{authorbib}{overhang}[10pt]{%
\def\AuthorbibKVMacroOverhang{#1}%
}
\aaa@qq.com{authorbib}{imagepos}[l]{%
\def\AuthorbibKVMacroImagepos{#1}%
}
\makeatother

\presetkeys{authorbib}{imagepos=l, imagewidth=4cm, wraplines=8, overhang=20pt}{}
\newlength{\AuthorbibTopSkip}
\newlength{\AuthorbibBottomSkip}
\setlength{\AuthorbibTopSkip}{\baselineskip}
\setlength{\AuthorbibBottomSkip}{\baselineskip}
\NewDocumentCommand{\authorbibliography}{+o+m+m+m}{%
  \IfNoValueTF{#1}{%
  }{%
    \setkeys{authorbib}{#1}%
    \immediate\write\authorbibfile{%
      \string\begin{wrapfigure}[\AuthorbibKVMacroWraplines]{\AuthorbibKVMacroImagepos}[\AuthorbibKVMacroOverhang]{\AuthorbibKVMacroImagewidth}^^J
        \string\includegraphics[scale=\AuthorbibKVMacroScale]{#2}^^J
        \string\end{wrapfigure}^^J
    }%
  }%
  \IfNoValueTF{#3}{%
    \typeout{Warning: No author name}%
  }{%
      \immediate\write\authorbibfile{%
      \unexpanded{\vspace{\AuthorbibTopSkip}}^^J
      \string\noindent\relax
      \unexpanded{\textbf{#3}\par}^^J
      \string\noindent\relax
      \unexpanded{#4}^^J%
      \unexpanded{\vspace{\AuthorbibBottomSkip}}^^J
      }%
  }%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% \usepackage{cite} 
\usepackage[colorlinks, 
	linkcolor = red,
	anchorcolor = blue,
	citecolor = green,
	CJKbookmarks = True
]{hyperref}

\def\myauthor{Author 1, Author 2} % Author
\def\mycoauthor{} % co-author
\def\mytitle{Article Title Article Title Article Title Article Title} % title
\def\mydate{\today} % date
\def\myjournal{Journal} % date

\begin{document}
% \maketitle
\begin{titlepage}
  \begin{center}
    {\Large \textbf{\mytitle}}
    \par \vspace{2cm}
    \myauthor
    \par \vspace{13cm}
    \mydate
  \end{center}
\end{titlepage}
\thispagestyle{empty}

\section*{Cover letter}

\begin{tcolorbox}[title = To Editor]
\noindent Dear Editor:

\quad We would like to submit the enclosed manuscript entitled \textit{\mytitle}, which we wish to be considered for publication in \textit{\myjournal}.

\quad We claim that none of the material in the paper has been published or is under consideration for publication elsewhere.

\quad Thank you very much for consideration. I am looking forward to hearing from you soon.

\myauthor

\mydate

\end{tcolorbox}

\newpage
\thispagestyle{empty}

\section*{Conflicts of Interest}

The authors declare that this paper is original and has no conflict of interest.

\newpage
\thispagestyle{empty}

\section*{Author Biography}


\authorbibliography[scale=0.5, wraplines=8, overhang=40pt, imagewidth=0.25\textwidth, imagepos=r]{authors/author_1.jpg}{Author 1}{
  received his M.S. degree in...
  \\
  \\
  \\
  \\
  \\
  \\
  \\
  \\
}


\authorbibliography[scale=0.5, wraplines=8, overhang=40pt, imagewidth=0.25\textwidth, imagepos=r]{authors/author_2.jpg}{Author 2}{
  received his M.S. degree in...
}

\end{document}
相关标签: 模板 latex