作者姓名中的所属机构编号 - 使用 TeX4ht

作者姓名中的所属机构编号 - 使用 TeX4ht

我的代码如下:

\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}}%

结果:

在此处输入图片描述

相关内容