![作者姓名中的所属机构编号 - 使用 TeX4ht](https://linux22.com/image/388281/%E4%BD%9C%E8%80%85%E5%A7%93%E5%90%8D%E4%B8%AD%E7%9A%84%E6%89%80%E5%B1%9E%E6%9C%BA%E6%9E%84%E7%BC%96%E5%8F%B7%20-%20%E4%BD%BF%E7%94%A8%20TeX4ht.png)
我的代码如下:
\documentclass{article}
\usepackage{ifthen}
\makeatletter
\newboolean{Journal}
\newboolean{Proceedings}
\newboolean{NewProceedings}% 02-14-13
\renewcommand{\maketitle}{
\begingroup
\renewcommand{\thefootnote}{\arabic{footnote}}%
\ifthenelse{\boolean{@twocolumn}}
{\ifthenelse{\equal{\col@number}{\@ne}}
{\@maketitle}
{\twocolumn[\@maketitle]}}%
{\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle}
\@thanks
\endgroup
\setcounter{footnote}{0}%
\let\thanks\relax
\let\maketitle\relax\let\@maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
%
\renewcommand{\@maketitle}{%
\newpage
\null
% \begin{center}%
\ifthenelse{\boolean{Journal}}
{\vspace{0.00in}}
{\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\vspace{1.40in}}% 02-14-13
{\vspace{1.40in}}}
\centering
{\large\bfseries\@title\par}%
\vspace{1.0em}%
{\normalsize\normalfont
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
% \end{center}%
\par
\vspace{0.5em}}%
\makeatother
\begin{document}
\makeatletter
\let\@fnsymbol\@arabic
\makeatother
\title{Article Title}
\author{
Author 1
%
% ---- The first of two styles for addresses: using footnotes and \thanks ----
\thanks{
Research Associate, Research Centre, University, GPO Box 000, Perth,
WA 000 (corresponding author). E-mail: [email protected]},
%
% Adding a second author with the same affiliation (still using \thanks):
% \\
Author 2
\thanks{
Research, Research Centre, University, GPO Box, WA 000.},
%
Author 3
\thanks{Professor, Research Centre, University, GPO Box 000, 6845,;
Department of Maths, University of Technology, PO Box 000.}
%
and
Author 4
\thanks{
Research Fellow, Research Centre, University, GPO Box 0000.}
}
\maketitle
This is for test
\end{document}
上面的代码生成以下输出:
为了转换 HTML,我使用以下命令:
htlatex 测试“xhtml,fn-in” “-cunihft” “-cvalidate -p”
转换正确,但作者列表中没有显示所属机构 ID。请指出我的代码中哪里出了问题:
答案1
\let \footnote \thank
您必须在重新定义的宏中添加行\@maketitle
:
\renewcommand{\@maketitle}{%
\newpage
\null
% \begin{center}%
\ifthenelse{\boolean{Journal}}
{\vspace{0.00in}}
{\ifthenelse{\boolean{NewProceedings}}% 02-14-13
{\vspace{1.40in}}% 02-14-13
{\vspace{1.40in}}}
\centering
\let \footnote \thanks
{\large\bfseries\@title\par}%
\vspace{1.0em}%
{\normalsize\normalfont
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
% \end{center}%
\par
\vspace{0.5em}}%
结果: