子腳註的正確語法是什麼?

子腳註的正確語法是什麼?

從 ConTeXt stable 升級到 beta 後,任何包含的程式碼都subfootnote無法編譯。例如:

\definestructureconversionset [footnote] [numbers, Characters] [numbers]
\setupenumerations            [footnote] [numberconversionset=footnote]
\starttext
    \startlines
        This is some text.\footnote{This is a footnote.}
        This is some more text.\subfootnote{This is a subfootnote.}
    \stoplines
\stoptext

此代碼改編自如何在 ConTeXt 中設定腳註以使用兩種編號格式的組合?,無法編譯並在第 6 行返回錯誤,或者基本上在任何\subfootnote放置訊息“缺少數字,視為零”的行上返回錯誤。

同樣,在數學模式環境中放置子腳註時所需的命令 和 在此更新後編譯時會出現問題\donote[subfootnote][]{}\setnotetext[subfootnote][]{}

  • ConTeXt beta的語法是否\subfootnote已更改或完全刪除?有沒有新的方法來排版子註腳?
  • 是否出現錯誤“缺少數字,視為零。”表明我需要在某處添加一個數字\subfootnote

答案1

語法沒有改變。這是一個錯誤,已在 beta 2012.10.15 19:10 中修復(請參閱 開發上下文子腳註)。更新應該足以讓子腳註再次工作。

但是,您可以使用 MkIV 語法\startsubfootnote。所以而不是

This is some text.\footnote{This is a footnote.}
This is some more text.\subfootnote{This is a subfootnote.}

你可以寫

This is some text.\startfootnote This is a footnote. \stopfootnote
This is some more text.\startsubfootnote This is a subfootnote. \stopsubfootnote

但這只是一個旁注,與問題無關。

子腳註編號的語法已更改。代替

\setupenumerations [footnote] [numberconversionset=footnote]

新語法是(更多信息維基 - 註腳

\setupnotation [footnote] [numberconversionset=footnote]

\definestructureconversionset改為\defineconversionset

這是完整的最小範例:

\defineconversionset [footnote] [numbers, Characters] [numbers]
\setupnotation       [footnote] [numberconversionset=footnote]

\starttext
  \startlines
      This is some text.\startfootnote This is a footnote. \stopfootnote
      This is some more text.\startsubfootnote This is a subfootnote. \stopsubfootnote
  \stoplines
\stoptext

結果

相關內容