Q1. 我的第一个问题是如何在有限的空间内拟合这些方程,我已经使用了 \begin{split} 和 \begin{align}..但它们不起作用
Q2. 我的第二个问题是长桌下面和上面是否有多余的空间,请告诉我如何将其移除
我的代码就像..
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first
footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage[margin=2cm]{geometry}
\usepackage[ export]{adjustbox} % remove in real document
% added
\usepackage{makecell, % added
longtable}
\renewcommand\theadfont{\bfseries\small}
\renewcommand\theadgape{}
\usepackage{enumitem}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{array,longtable}
\usepackage{longtable,booktabs}
% \usepackage[utf8]{inputenc}
% \usepackage[demo]{graphicx}
\usepackage{subfig}
\renewcommand*{\arraystretch}{1.5}
\usepackage{longtable}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\begingroup
\small % for better fit text into cells
\setlength{\LTcapwidth}{\linewidth} % that caption width is equal table
width
\setlist[itemize]{ nosep, % <-- itemize setup
leftmargin = *,
before = \vspace{-\baselineskip},
after = \vspace{-\baselineskip}
}
\setcellgapes{3pt}
\makegapedcells % for additional vertica space around cells' contents
\setlength\tabcolsep{4pt}
\setkeys{Gin}{width=\linewidth} % all images will have width equal to
cell's
widths
\centering
% \clearpage
\onecolumn
\begin{longtable}{|*{2}{p{\dimexpr0.16\linewidth-2\tabcolsep-
1.2\arrayrulewidth}|}
*{3}{p{\dimexpr0.26\linewidth-2\tabcolsep-
1.2\arrayrulewidth}|}}
\caption{\textbf{Different Types of Activation Functions}}
\label{tab:long} \\
\hline
\ thead{Activation} & \thead{Figure} & \thead{Equation}
& \thead{Advantages} & \thead{Disadvantages} \\
\hline
\endfirsthead
\caption{Overview of papers including Image Compression Based On
Deep
Learning (cont.)} \\
\thead{Activation} & \thead{Figure} & \thead{Equation}
& \thead{Advantages} & \thead{Disadvantages} \\
\hline
\endhead
\hline
\multicolumn{5}{r}{\footnotesize\textit{continued on the next
page}}
\endfoot
\hline
\endlastfoot
textbf{Hard Elish}\cite{elish} 2018
& \includegraphics[valign=t]{hardelish.jpg}
& $f{x}=\begin{cases}x* max(0,min(1,(\frac{x+1}{2}))) & \text{ if }
x\geqslant \\
(e^{x}-1) * max(0,min(1,(\frac{x+1}{2})))& \text{ if } x< 0
\end{cases}$
& \begin{itemize}
\item Hard variant of Elish
\item Product of Hard Sigmoid and Elu in negative part
\item Linear and hard sigmoid in positive part
\end{itemize}
& good \\
\end{longtable}
\clearpage
\twocolumn
\endgroup
\end{document}
最长行数据
\textbf{AbRelu}\cite{abrelu} 2018
& \includegraphics[valign=t]{abrelu.jpg}
&
\begin{equation*}
\begin{aligned}
I(v)^{n+1}(\rho)=\begin{cases}
I(v)^{n}(\rho)- \beta & \text{ if }I(v)^{n}(\rho)- \beta>0 \\
0 & otherwise
\end{cases} // \beta =\alpha *A_{v}^n
\end{aligned}
\end{equation*}
& \begin{itemize}
\item Solves the problem of dead neurons by making sure that the
neurons producing the values more than the average of all values in that
layer must not be dead
\item Allows the important negative signals as well as blocks the
irrelevant
positive signals based on the nature of the input volume
\item Data dependent and adjust the threshold based on the positive
and negative dominated data
\item Considers the average of the input volume to adjust the
input volume itself
\end{itemize}
& \begin{itemize}
\item Exponential linear squashing function has almost same properties
as Swish function
\item Combination of Elu and Sigmoid activation function
\item Sigmoid part improves information flow and linear part improves
the problem of vanishing gradient
\item Considers the average of the input volume to adjust the input
volume itself \end{itemize} \\
\hline
答案1
正如评论中提到的,一个可能的解决方案是手动将表格分成两部分,并将其括在table*
浮点数中,并在表格环境中使用tabularx
环境。借助stfloats
包将表格的第一部分放在页面底部,将第二部分放在下一页的顶部。使用宏 \ContinuedFloat
确保第二部分的标题与第一部分的标题具有相同的数字:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{cite}
\usepackage[margin=2cm]{geometry}
\usepackage[demo, % remove this option in a real document
export]{adjustbox}
\usepackage{makecell,
tabularx} % added
\renewcommand\theadfont{\bfseries\small}
\renewcommand\theadgape{}
\usepackage{stfloats} % added
\usepackage{caption} % added
\usepackage{enumitem}
\usepackage{amsmath,amssymb}
\usepackage{algorithmic}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{array, booktabs, tabularx}
\newcolumntype{R}[1]{>{\raggedright\arraybackslash}X}
\usepackage{subfig}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\usepackage{lipsum} % for dummy text
\begin{document}
\lipsum[1-3] % dummy text
\begin{table*}[b]
\caption{Different Types of Activation Functions}
\label{tab:long}
\setlist[itemize]{ nosep, % <-- itemize setup
leftmargin = *,
before = \vspace{-.6\baselineskip},
after = \vspace{-\baselineskip}
}
\setcellgapes{3pt}
\makegapedcells % for additional vertical space around cells' contents
\setkeys{Gin}{width=\linewidth, height=12mm} % all images will have width of cell's width
\setlength\tabcolsep{4pt}
\footnotesize % for better fit text into cells
\begin{tabularx}{\linewidth}{%
|*{2}{>{\raggedright}p{0.1\linewidth}|}
c|
*{2}{X|}
}
\hline
\thead{Activation} & \thead{Figure} & \thead{Equation}
& \thead{Advantages} & \thead{Disadvantages} \\
\hline
\textbf{Hard Elish}\cite{elish} 2018
& \includegraphics[valign=t]{hardelish.jpg}
& \raisebox{-4ex}{ $ % need to be set according to included equation
f{x} = \begin{cases}
x\max(0,\min(1,(\frac{x+1}{2}))) &\text{ if }x\geqslant 0 \\
(e^{x}-1)\max(0,\min(1,(\frac{x+1}{2}))) &\text{ if }x< 0
\end{cases} $}
& \begin{itemize}
\item Hard variant of Elish
\item Product of Hard Sigmoid and Elu in negative part
\item Linear and hard sigmoid in positive part
\end{itemize}
& good \\
\hline
\end{tabularx}
\end{table*}
% manually split table
\begin{table*}[t]
\ContinuedFloat
\caption{Different Types of Activation Functions (cont.)}
\label{tab:long}
\setlist[itemize]{ nosep, % <-- itemize setup
leftmargin = *,
before = \vspace{-.6\baselineskip},
after = \vspace{-\baselineskip}
}
\setcellgapes{3pt}
\makegapedcells % for additional vertical space around cells' contents
\setkeys{Gin}{width=\linewidth, height=12mm} % all images will have width of cell's width
\setlength\tabcolsep{4pt}
\footnotesize % for better fit text into cells
\begin{tabularx}{\linewidth}{%
|*{2}{>{\raggedright}p{0.1\linewidth}|}
c|
*{2}{X|}
}
\hline
\thead{Activation} & \thead{Figure} & \thead{Equation}
& \thead{Advantages} & \thead{Disadvantages} \\
\hline
\textbf{Hard Elish}\cite{elish} 2018
& \includegraphics[valign=t]{hardelish.jpg}
& \raisebox{-4ex}{ $ % need to be set according to included equation
f{x} = \begin{cases}
x\max(0,\min(1,(\frac{x+1}{2}))) &\text{ if }x\geqslant 0 \\
(e^{x}-1)\max(0,\min(1,(\frac{x+1}{2}))) &\text{ if }x< 0
\end{cases} $}
& \begin{itemize}
\item Hard variant of Elish
\item Product of Hard Sigmoid and Elu in negative part
\item Linear and hard sigmoid in positive part
\end{itemize}
& good \\
\hline
\end{tabularx}
\end{table*}
\lipsum\lipsum % dummy text
\end{document}
笔记:我之前已经提供了类似的解决方案......