我已经在其他模板上输入了我的代码,它工作得很好,现在我必须使用另一个模板,特别是IEEE 会议链接在这里IEEE 模板对于整个项目(我将非常感谢那些能够提供帮助的人)我所有的参考资料都显示了[?]并且矩阵没有正确显示它在其他模板上运行良好但在电气电子工程师学会这是我的代码: 編輯
\documentclass[conference]{IEEEtran}
\usepackage{graphicx}
%\usepackage{fancyhdr}
\usepackage{fancyhdr}
\usepackage{algorithmic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
**edited: added packages**
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{changepage}
\usepackage{array,multirow,makecell}
\setcellgapes{1pt}
\makegapedcells
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash }b{#1}}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash }b{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash }b{#1}}
\renewcommand{\baselinestretch}{1.1} %interligne
\setlength{\parskip}{0.3cm}
\usepackage{array, multirow, makecell}
\setcellgapes{1pt}
\makegapedcells
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash }b{#1}}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash }b{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash }b{#1}}
\renewcommand{\baselinestretch}{1.1} %interligne
\setlength{\parskip}{0.3cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hyphenation{op-tical net-works semi-conduc-tor}
\newcounter{savefootnote}
\begin{document}
% paper title
\title{BB BB BB HH GG YH}
% make the title area
\maketitle
BLABLA ${H'}$ training VVV $\{ (x_{k},y_{k})
\}_{k=1}^{H'}$ , each BHHU JJDD JHDJD JSSKes where
$x_{k}\in \mathbb{R}^{O}$ as an ouHYYY $ y_{k}
\in \{1, -1\}$, GTTows:
\begin{equation}
\centering
\label{equation2}
\begin{bmatrix}
0 & Y^{T} \\[0.3em]
Y & \Omega+ I/\gamma
\end{bmatrix}
\begin{bmatrix}
b \\[0.3em]
\alpha
\end{bmatrix}
=\begin{bmatrix}
0 \\[0.3em]
\vec{e}
\end{bmatrix}
\end{equation}
\subsection{FF}
Suppose $O$-di as $ X \in \mathbb{R} ^{O} $,
CRRR $D =(O+N)$ the HHHrns $ \{ (x_{k},y_{k})
\}_{k=1}^{H}$, each patternYYYYYY $x_{k}\in
\mathbb{R}^{D}$ as an oJJJJJJJ $ y_{k} \in \{1,
-1\}$, \cite{suykens1999least,knuth1998art,
guan2002incremental, zhou2002hybrid,
chao2008incremental, liu2008incremental,
agrawal2008incremental, wang2012evolving,
liu2015neural, friedman2001elements,
utgo1994improved, shah2004sequential,
hariharan:2013} :
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(HERE IS A PRBLM)
\begin{equation}
\centering
\label{equation1}
\begin{bmatrix}
0 & Y^{T} \\[0.3em]
Y & \Omega+ I/\gamma
\end{bmatrix}
\begin{bmatrix}
b \\[0.3em]
\alpha
\end{bmatrix}
=\begin{bmatrix}
0 \\[0.3em]
\vec{e}
\end{bmatrix}
\end{equation}
With $\alpha=[\alpha_{1},..,\alpha_{L}]^{T}$, $Y=
[y_{1},y_{2},y_{3}..,y_{H}]^{T}$, $ \vec{e}=[1,1,1,..,1]^{T}$
, $\Omega_{ij}=y_{i}y_{j}\varphi_{2}
(x_{j})=y_{i}y_{j}k_{2}(x_{i},x_{j})$ where $j <= H$ and
$i>=1$
NOT well:
\begin{equation}
\centering
\label{equation1}
y(x)=sign (W_{O}^{T}\varphi_{1}(x_{O})+W_{D}^{T}\varphi_{2}
(x_{D})+b)\\
= sign(\sum_{i=1}^{H'}\alpha_{i}y_{i}K_{1}
(x_{iO},x_{O})+\sum_{k=1}^{H}\alpha''_{k}y_{k}K_{2}
(x_{kD},x_{D})+b)
\end{equation}
%\end{thebibliography}
\bibliographystyle{IEEEtran}
%\bibliography{myfile}
\end{document}
这是在其他模板上正确显示的相同代码的矩阵。
答案1
- 切勿放入
\centering
方程环境 equation
仅适用于单行方程,如果您希望包含多行,则必须使用以下amsmath
环境之一align
:,, ...split
multline
- 在序言中缺少粗体数学字体的包,还有
amsmath
…… bmatrix
在矩阵之前用数组括起来进行添加{
是多余的
已清理姆韦加上错过的包裹后是:
\documentclass[conference]{IEEEtran}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{algorithmic}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{changepage}
\usepackage{array, booktabs, makecell, multirow}
\setcellgapes{1pt}
\makegapedcells
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash }b{#1}}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash }b{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash }b{#1}}
\renewcommand{\baselinestretch}{1.1} %interligne
\setlength{\parskip}{0.3cm}
\usepackage{amsmath, amssymb, bbm} % <-- added
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hyphenation{op-tical net-works semi-conduc-tor}
\newcounter{savefootnote}
\begin{document}
\title{BB BB BB HH GG YH}
\maketitle
BLABLA ${H'}$ training VVV $\{ (x_{k},y_{k})\}_{k=1}^{H'}$ , each BHHU JJDD JHDJD JSSKes where $x_{k}\in \mathbb{R}^{O}$ as an ouHYYY $ y_{k} \in \{1, -1\}$, GTTows:
\begin{equation}\label{equation2}
\left\{
\begin{bmatrix}
0 & Y^{T} \\
Y & \Omega+ I/\gamma
\end{bmatrix}
\begin{bmatrix}
b \\
\alpha
\end{bmatrix}
=\begin{bmatrix}
0 \\
\vec{e}
\end{bmatrix}
\right.
\end{equation}
\subsection{FF}
Suppose $O$-di as $ X \in \mathbb{R} ^{O} $, CRRR $D =(O+N)$ the HHHrns $ \{ (x_{k},y_{k}) \}_{k=1}^{H}$, each patternYYYYYY $x_{k}\in \mathbb{R}^{D}$ as an oJJJJJJJ $ y_{k} \in \{1, -1\}$,
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(HERE IS A PRBLM)
\begin{equation}\label{equation1}
\left\{
\begin{bmatrix}
0 & Y^{T} \\
Y & \Omega+ I/\gamma
\end{bmatrix}
\begin{bmatrix}
b \\[0.3em]
\alpha
\end{bmatrix}
=\begin{bmatrix}
0 \\[0.3em]
\vec{e}
\end{bmatrix}
\right.
\end{equation}
With $\alpha=[\alpha_{1},..,\alpha_{L}]^{T}$, $Y=
[y_{1},y_{2},y_{3}..,y_{H}]^{T}$, $ \vec{e}=[1,1,1,..,1]^{T}$
, $\Omega_{ij}=y_{i}y_{j}\varphi_{2}
(x_{j})=y_{i}y_{j}k_{2}(x_{i},x_{j})$ where $j <= H$ and
$i>=1$
NOT well:
\begin{multline}\label{equation1}
y(x)=sign (W_{O}^{T}\varphi_{1}(x_{O})+W_{D}^{T}\varphi_{2}
(x_{D})+b)\\
= sign(\sum_{i=1}^{H'}\alpha_{i}y_{i}K_{1}(x_{iO},x_{O})\\
+ \sum_{k=1}^{H}\alpha''_{k}y_{k}K_{2}(x_{kD},x_{D})+b)
\end{multline}