我无法使用 flotrow.sty 更改框名称。请提供建议
方框 1: 应改为框 1:
平均能量损失
\documentclass{article}
\usepackage{floatrow}
\DeclareNewFloatType{Box}{%
placement=htbp,%
fileext=lob}%
\floatsetup[Box]{%
style=BOXED,%
capposition=top,%
justification=justified}%
\newenvironment{BOX}[2][htbp]{%
\begin{Box}[#1]%
\ifx\relax#2\relax\else\processtable{\textbf{#2}\vspace*{-6.5pt}}\fi%
}{\end{Box}}%
\newenvironment{BOX*}[2][htbp]{%
\begin{Box*}[#1]%
\ifx\relax#2\relax\else\caption{\textbf{#2}\vspace*{-6.5pt}}\fi%
}{\end{Box*}}
\begin{document}
\begin{BOX*}[!t]{Among the various hydrocarbon polymers}
Among the various hydrocarbon polymers, polyether ether ketone (PEEK) based membranes are well known ({Xing:2004}; {Jiang:2005}; {Fathima:2007}) due to their good thermal stability, appropriate mechanical strength, and when sulfonated, good proton conductivity, which increases with the degree of sulfonation (DS). However, these aromatic polymer electrolytes with high IEC, which show high proton conductivity, have the problem of weak mechanical behavior due to some water solubility, and this is one of the main obstacles for application in PEMFCs ({Dyck:2002}; {Roziere:2003}; {Karlsson:2005}; {Parcero:2006}; {DiVona:2010}).
\end{BOX*}
\end{document}
下面提到了我的必需输出
答案1
默认情况下,标签与环境名称相同;只需更改它:
\documentclass{article}
\usepackage{floatrow}
\DeclareNewFloatType{Box}{
name=BOX,
placement=htbp,
fileext=lob
}
\floatsetup[Box]{
style=BOXED,
capposition=top,
justification=justified
}
\newenvironment{BOX}[2][htbp]{%
\begin{Box}[#1]%
\ifx\relax#2\relax\else\processtable{\textbf{#2}\vspace*{-6.5pt}}\fi%
}{\end{Box}}%
\newenvironment{BOX*}[2][htbp]{%
\begin{Box*}[#1]%
\ifx\relax#2\relax\else\caption{\textbf{#2}\vspace*{-6.5pt}}\fi%
}{\end{Box*}}
\begin{document}
\begin{BOX*}[!t]{Among the various hydrocarbon polymers}
Among the various hydrocarbon polymers, polyether ether ketone (PEEK) based membranes are well known ({Xing:2004}; {Jiang:2005}; {Fathima:2007}) due to their good thermal stability, appropriate mechanical strength, and when sulfonated, good proton conductivity, which increases with the degree of sulfonation (DS). However, these aromatic polymer electrolytes with high IEC, which show high proton conductivity, have the problem of weak mechanical behavior due to some water solubility, and this is one of the main obstacles for application in PEMFCs ({Dyck:2002}; {Roziere:2003}; {Karlsson:2005}; {Parcero:2006}; {DiVona:2010}).
\end{BOX*}
\end{document}