\maketitle 错误“未定义的控制序列”

问题描述 投票:0回答:0

我目前正在写我的论文,我在背面使用乳胶模板。我的主页上有以下代码,但是当我编译时,我在 \maketitle 的行上得到一个“未定义的控制序列”。有人可以帮忙吗?

\documentclass[a4paper,12pt,openany]{book}

\usepackage{times}
\usepackage{verbatim}
\usepackage{color}
\usepackage{url}
\usepackage{graphicx}
\usepackage{array}
%%\usepackage{amsmath, amssymb, amsthm}
%%\usepackage{amsmath}
%%\usepackage{booktabs} % For formal tables
\usepackage{booktabs} % For formal tables
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{xr}
%\externaldocument{Supplementary_Material}
%%%\usepackage{amsthm}
%%%\usepackage{academicons}
%%\usepackage[left=0.8cm, right=0.8cm, top=1.2cm, bottom=0.8cm]{geometry}
\usepackage{algorithm}
%%%\usepackage{algorithmic}
%%%\usepackage[noend]{algorithmic}
\usepackage{algorithmicx}
\usepackage{array}
%\usepackage{makecell}
\usepackage{caption}
\captionsetup{labelsep=period}
%%\usepackage[hyphens]{url}

%%\usepackage{algorithm}
\usepackage{stfloats}
%%\usepackage{algorithmicx}
% Watermark
\usepackage{eso-pic}

%\usepackage[square]{natbib}
\usepackage[scriptsize]{subfigure}
\usepackage{xcolor}
\usepackage{bm}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usetikzlibrary{arrows}
\usetikzlibrary{positioning}
\usetikzlibrary{patterns}

\usetikzlibrary{shapes.geometric}
\tikzset{
%    ->,
    >=stealth',
    shorten >=1pt,
    auto,
    thick,
    attribute node/.style={circle,draw,font=\scriptsize, minimum width=1cm},   
    item node/.style={rectangle,draw,font=\scriptsize, minimum width=0.9cm, minimum height=0.9cm},   
    people node/.style={regular polygon,regular polygon sides=6,draw,font=\scriptsize, minimum width=1cm},   
}
%%%%\pgfplotsset{every tick label/.append style={font=\scriptsize}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{hyphenat}
\hyphenation{multi-streaming que-ries approx-ima-tion You-tube GPD-Sel data-sets where-as attri-butes TD-SSel}
% please place your own definitions here and don't use \def but
% \newcommand{}{}
%\DeclareMathOperator*{\argmax}{argmax}
%\DeclareMathOperator*{\argmin}{argmin}
%%


\newcommand{\fr}{ \textit{Feasibility Ratio} }
\newcommand{\ssgs}{\texttt{SSGSelect }}
\newcommand{\sigmod}{\texttt{GD-LM-MIN }}
\newcommand{\cf}{\texttt{TrustSVD }}
\newtheorem{definition}{Definition}
\newtheorem{theorem}{Theorem}
%\theoremstyle{plain}
\newcommand{\argmax}{\arg\!\max} 
\newtheorem{lemma}{Lemma}
\newtheorem{innercustomgeneric}{\customgenericname}
\providecommand{\customgenericname}{}
\newcommand{\newcustomtheorem}[2]{%
  \newenvironment{#1}[1]
  {%
   \renewcommand\customgenericname{#2}%
   \renewcommand\theinnercustomgeneric{##1}%
   \innercustomgeneric
  }
  {\endinnercustomgeneric}
}

%%\newcustomtheorem{customthm}{Theorem}
%%\newcustomtheorem{customlemma}{Lemma}


  %%%{
    % \theoremstyle{plain}
    %%\newtheorem{assumption}{Assumption}
    %%\newtheorem{definition}{Definition} 
  %%}
%%\usepackage{algorithm}
%%%\usepackage{stfloats}
%%\usepackage{algorithmicx}
% Watermark
%%\usepackage{eso-pic}
% Watermark Settings
\newcommand\WatermarkPicture{%
   \put(0,0){%
   \parbox[b][\paperheight]{\paperwidth}{%
     \vfill
     \centering
     %\includegraphics[width=146pt,keepaspectratio]{wm_fatma.pdf}% The gif provided by the NTHU library is in dimension 146x139
     \includegraphics[width=110pt,keepaspectratio]{nthu-logo}% <-- But some people use a smaller logo....
     \vfill
     }
   }
}
% uncomment this if you want to indent the first paragraph
%\usepackage{indentfirst}

% uncomment this if you want to make pdf file with hyperlink
% \usepackage[dvipdf,colorlinks=false,unicode]{hyperref}

% uncomment the following and correct them if you want to set 
% set the pdf properties
%\hypersetup{
%   pdfauthor={Tz-Huan Huang},
%   pdftitle={A Benchmark for Region-of-Interest Detection in Images},
%   pdfsubject={Master Thesis}
%}

\usepackage{ntu}

\setcounter{tocdepth}{2}

\pagestyle{plain}

\begin{document}

\AddToShipoutPicture{\WatermarkPicture} % Add Watermark
%\ClearShipoutPicture - remove watermark

% cover page
\maketitle

% side page, used for printing on spline.
%\makeside

%\frontmatter

\begin{CJK}{UTF8}{bsmi}
\CJKhorz
%\makecertification

% comment one of the following unless you are sure you want to 
% have both english and chinese acknowledgements in your thesis
%\input{acknowledgementsEN}
%\input{acknowledgementsCH}

\input{abstractCH}
\input{abstractEN}
\input{acknowledgementsEN}

\tableofcontents
% \listoffigures
% \listoftables

\end{CJK}
\listoffigures
\listoftables

\mainmatter

% input your thesis here
\input{introduction}
\input{Chap2}
\input{Chap3}
\input{Chap4}
\input{Chap5}
\input{conclusion}
%\input{related}
%\input{photoshoot}
%\input{modeling}
%\input{application}
%\input{conclusion}

\backmatter

\addcontentsline{toc}{chapter}{\bibname}
\bibliographystyle{abbrv}

% input your reference here
 \bibliography{thesis}

\appendix

\end{document}

我怀疑我有一些不兼容的包,但我找不到有问题的包。我想知道是否有人有修复它的解决方案。

latex pdflatex overleaf
© www.soinside.com 2019 - 2024. All rights reserved.