我在使用 \bTABLE \eTABLE 创建表格时遇到问题。创建 14 行(每行 6 列)后,出现以下错误:
luatex warning > nodes: node 53798 has an attribute list that is free already, case 1
! error: (nodes): trying to delete an attribute reference of a non attribute nodemtx-context | fatal error: return code: 256
我的源文件中的表格如下所示(仅显示几行“数据”):
\startplacetable[
title={Metric prefixes},
reference=u0:prefixes,
location=middle
]
{
\bTABLE
\setupTABLE[column][1][align=left]
\setupTABLE[column][5][align=right]
\setupTABLE[column][6][align=right]
\bTABLEhead
\bTR[topframe=on, bottomframe=off, rulethickness=0.5pt, loffset=1mm, roffset=1mm]
\bTD ordinary \eTD \bTD scientific \eTD \bTD prefix \eTD \bTD prefix \eTD \bTD example \eTD \bTD example \eTD
\eTR
\bTR[topframe=off, bottomframe=on, rulethickness=0.5pt, loffset=1mm, roffset=1mm]
\bTD number \eTD \bTD notation \eTD \bTD name \eTD \bTD symbol \eTD \bTD \eTD \bTD explained \eTD
\eTR
\bTR[leftframe=off, rightframe=off]
\bTD[nc=6] \eTD
\eTR
\eTABLEhead
\bTABLEbody
\bTR
\bTD $1 000 000 000 000 000 000$ \eTD \bTD $10^{18}$ \eTD \bTD exa \eTD \bTD E \eTD \bTD $2$ Eflops \eTD \bTD $2$ exaflops of performance \eTD
\eTR
\bTR
\bTD $1 000 000 000 000 000$ \eTD \bTD $10^{15}$ \eTD \bTD peta \eTD \bTD P \eTD \bTD $2$ PB \eTD \bTD $2$ petabytes of data \eTD
\eTR
\bTR
\bTD $1 000 000 000 000$ \eTD \bTD $10^{12}$ \eTD \bTD tera \eTD \bTD T \eTD \bTD $12$ TJ \eTD \bTD $12$ terajoules of energy \eTD
\eTR
\bTR
\bTD $1 000 000 000$ \eTD \bTD $10^{9}$ \eTD \bTD giga \eTD \bTD G \eTD \bTD $3$ GW \eTD \bTD $3$ gigawatts of power \eTD
\eTR
\bTR
\bTD $1 000 000$ \eTD \bTD $10^{6}$ \eTD \bTD mega \eTD \bTD M \eTD \bTD $15$ Mg \eTD \bTD $15$ megagrams of mass \eTD
\eTR
\bTR
\bTD $1 000$ \eTD \bTD $10^{3}$ \eTD \bTD kilo \eTD \bTD k \eTD \bTD $80$ km \eTD \bTD $80$ kilometers of distance \eTD
\eTR
\bTR
\bTD $100$ \eTD \bTD $10^{2}$ \eTD \bTD hecto \eTD \bTD h \eTD \bTD $990$ hPa \eTD \bTD $990$ hectopascals of pressure \eTD
\eTR
\bTR
\bTD $10$ \eTD \bTD $10^{1}$ \eTD \bTD deca \eTD \bTD da \eTD \bTD $5$ dag \eTD \bTD $5$ dekagrams of mass \eTD
\eTR
\bTR
\bTD $0.1$ \eTD \bTD $10^{-1}$ \eTD \bTD deci \eTD \bTD d \eTD \bTD $4$ dm \eTD \bTD $4$ decimeters of length \eTD
\eTR
\bTR
\bTD $0.01$ \eTD \bTD $10^{-2}$ \eTD \bTD centi \eTD \bTD c \eTD \bTD $164$ cm \eTD \bTD $164$ centimeters of height \eTD
\eTR
\bTR
\bTD $0.001$ \eTD \bTD $10^{-3}$ \eTD \bTD milli \eTD \bTD m \eTD \bTD $250$ ml \eTD \bTD $250$ milliliters of volume \eTD
\eTR
\bTR
\bTD $0.000001$ \eTD \bTD $10^{-6}$ \eTD \bTD micro \eTD \bTD $\mu$ \eTD \bTD $100$ \unit{micro second} \eTD \bTD $100$ microseconds of time \eTD
\eTR
% \bTR
% \bTD $0.000000001$ \eTD \bTD $10^{-9}$ \eTD \bTD nano \eTD \bTD n \eTD \bTD $650$ nm \eTD \bTD $650$ nanometers of length \eTD
% \eTR
\eTABLEbody
\eTABLE
}
我被困住了 ;-(
非常感谢你的帮助,J
答案1
我没有看到你的错误。但你的代码似乎是错误的。你确实
\startplacetable[...]{
...
}
使用下面的代码我没有收到任何错误。
\starttext
\startplacetable[
title={Metric prefixes},
reference=u0:prefixes,
location=middle
]
\bTABLE
\setupTABLE[column][1][align=left]
\setupTABLE[column][5][align=right]
\setupTABLE[column][6][align=right]
\bTABLEhead
\bTR[topframe=on, bottomframe=off, rulethickness=0.5pt, loffset=1mm, roffset=1mm]
\bTD ordinary \eTD \bTD scientific \eTD \bTD prefix \eTD \bTD prefix \eTD \bTD example \eTD \bTD example \eTD
\eTR
\bTR[topframe=off, bottomframe=on, rulethickness=0.5pt, loffset=1mm, roffset=1mm]
\bTD number \eTD \bTD notation \eTD \bTD name \eTD \bTD symbol \eTD \bTD \eTD \bTD explained \eTD
\eTR
\bTR[leftframe=off, rightframe=off]
\bTD[nc=6] \eTD
\eTR
\eTABLEhead
\bTABLEbody
\bTR
\bTD $1 000 000 000 000 000 000$ \eTD \bTD $10^{18}$ \eTD \bTD exa \eTD \bTD E \eTD \bTD $2$ Eflops \eTD \bTD $2$ exaflops of performance \eTD
\eTR
\bTR
\bTD $1 000 000 000 000 000$ \eTD \bTD $10^{15}$ \eTD \bTD peta \eTD \bTD P \eTD \bTD $2$ PB \eTD \bTD $2$ petabytes of data \eTD
\eTR
\bTR
\bTD $1 000 000 000 000$ \eTD \bTD $10^{12}$ \eTD \bTD tera \eTD \bTD T \eTD \bTD $12$ TJ \eTD \bTD $12$ terajoules of energy \eTD
\eTR
\bTR
\bTD $1 000 000 000$ \eTD \bTD $10^{9}$ \eTD \bTD giga \eTD \bTD G \eTD \bTD $3$ GW \eTD \bTD $3$ gigawatts of power \eTD
\eTR
\bTR
\bTD $1 000 000$ \eTD \bTD $10^{6}$ \eTD \bTD mega \eTD \bTD M \eTD \bTD $15$ Mg \eTD \bTD $15$ megagrams of mass \eTD
\eTR
\bTR
\bTD $1 000$ \eTD \bTD $10^{3}$ \eTD \bTD kilo \eTD \bTD k \eTD \bTD $80$ km \eTD \bTD $80$ kilometers of distance \eTD
\eTR
\bTR
\bTD $100$ \eTD \bTD $10^{2}$ \eTD \bTD hecto \eTD \bTD h \eTD \bTD $990$ hPa \eTD \bTD $990$ hectopascals of pressure \eTD
\eTR
\bTR
\bTD $10$ \eTD \bTD $10^{1}$ \eTD \bTD deca \eTD \bTD da \eTD \bTD $5$ dag \eTD \bTD $5$ dekagrams of mass \eTD
\eTR
\bTR
\bTD $0.1$ \eTD \bTD $10^{-1}$ \eTD \bTD deci \eTD \bTD d \eTD \bTD $4$ dm \eTD \bTD $4$ decimeters of length \eTD
\eTR
\bTR
\bTD $0.01$ \eTD \bTD $10^{-2}$ \eTD \bTD centi \eTD \bTD c \eTD \bTD $164$ cm \eTD \bTD $164$ centimeters of height \eTD
\eTR
\bTR
\bTD $0.001$ \eTD \bTD $10^{-3}$ \eTD \bTD milli \eTD \bTD m \eTD \bTD $250$ ml \eTD \bTD $250$ milliliters of volume \eTD
\eTR
\bTR
\bTD $0.000001$ \eTD \bTD $10^{-6}$ \eTD \bTD micro \eTD \bTD $\mu$ \eTD \bTD $100$ \unit{micro second} \eTD \bTD $100$ microseconds of time \eTD
\eTR
\bTR
\bTD $0.000000001$ \eTD \bTD $10^{-9}$ \eTD \bTD nano \eTD \bTD n \eTD \bTD $650$ nm \eTD \bTD $650$ nanometers of length \eTD
\eTR
\eTABLEbody
\eTABLE
\stopplacetable
\stoptext