![我的 ctable 有什么问题?](https://linux22.com/image/266108/%E6%88%91%E7%9A%84%20ctable%20%E6%9C%89%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%EF%BC%9F.png)
我似乎无法准确指出下表中的问题,希望得到一些帮助。我确信这很简单,但我看不出来……
\documentclass{article}
\usepackage{ctable}
\begin{document}
\ctable[
caption = Summary of model characteristics.,
label = tab:modelSummary,
doinside=\scriptsize,
pos=h
]{lllllll}{
\tnote{For UK grid.}
\tnote[b]{ENTEC emissions are used for shipping.}
\tnote[c]{Based on analysis of extracted `baseline' air-masses.}
}{ \FL
model & type & boundary & meteorology & chemistry & grid\tmark & emissions\tmark[b] \NN
& & conditions & & (km) & & \ML
aea & Eulerian & STOCHEM & WRF3 & CB05 & 12 & NAEI/EMEP \NN
aqum & Eulerian & GEMS/MACC & UM & UKCA/RAQ & ? & NAEI/EMEP \NN
& & & & & & ENTEC \NN
emep & Eulerian & EMEP-unified & WRF3.1.1 & EMEP-unified & 5 & NAEI/EMEP \NN
hert & Eulerian & GEMS & WRF3.2.1 & CB05 & 18 & TNO \NN
kcl & Eulerian & STOCHEM & WRF3.1 & CB05 & 9 & NAEI/EMEP \NN
name & Eulerian & Mace Head\tnote[c] & UM & STOCHEM & $\approx$10? & NAEI/EMEP \NN
& & & & & & ENTEC \NN
osrm & Lagrangian & ? & NAME (UM) & STOCHEM & 10 & NAEI/EMEP \NN
& & & & & & ENTEC \NN
ptm & Lagrangian & Mace Head? & UM & MCM3.1 & $\approx$10? & NAEI/EMEP \NN
& & & & & & GEIA \NN
wrfchem & Eulerian & ? & ? & ? & ? & ? \LL
}
\end{document}
给出:
Misplaced alignment tab character &.
\\tnote ...uperscript {\normalfont \textit {#1}}}&
#2\NN \fi
l.31 }
答案1
问题在于这条线
name & Eulerian & Mace Head\tnote[c] & UM & STOCHEM & $\approx$10? & NAEI/EMEP \NN
您需要更改\tnote
为\tmark
:
name & Eulerian & Mace Head\tmark[c] & UM & STOCHEM & $\approx$10? & NAEI/EMEP \NN
您的完整代码:
\documentclass{article}
\usepackage{ctable}
\begin{document}
\ctable[
caption = Summary of model characteristics.,
label = tab:modelSummary,
doinside=\scriptsize,
pos=h
]{lllllll}{
\tnote{For UK grid.}
\tnote[b]{ENTEC emissions are used for shipping.}
\tnote[c]{Based on analysis of extracted `baseline' air-masses.}
}{ \FL
model & type & boundary & meteorology & chemistry & grid\tmark & emissions\tmark[b] \NN
& & conditions & & (km) & & \ML
aea & Eulerian & STOCHEM & WRF3 & CB05 & 12 & NAEI/EMEP \NN
aqum & Eulerian & GEMS/MACC & UM & UKCA/RAQ & ? & NAEI/EMEP \NN
& & & & & & ENTEC \NN
emep & Eulerian & EMEP-unified & WRF3.1.1 & EMEP-unified & 5 & NAEI/EMEP \NN
hert & Eulerian & GEMS & WRF3.2.1 & CB05 & 18 & TNO \NN
kcl & Eulerian & STOCHEM & WRF3.1 & CB05 & 9 & NAEI/EMEP \NN
name & Eulerian & Mace Head\tmark[c] & UM & STOCHEM & $\approx$10? & NAEI/EMEP \NN
& & & & & & ENTEC \NN
osrm & Lagrangian & ? & NAME (UM) & STOCHEM & 10 & NAEI/EMEP \NN
& & & & & & ENTEC \NN
ptm & Lagrangian & Mace Head? & UM & MCM3.1 & $\approx$10? & NAEI/EMEP \NN
& & & & & & GEIA \NN
wrfchem & Eulerian & ? & ? & ? & ? & ? \LL
}
\end{document}