我的表出了什麼問題?

我的表出了什麼問題?

我似乎無法找出下表的問題,希望能得到一些幫助。我確信有些簡單,但我看不到......

\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}

在此輸入影像描述

相關內容