ConTeXt:雙連字符或三連字符在逐字塊內解釋

ConTeXt:雙連字符或三連字符在逐字塊內解釋

例如:

\definetyping
  [code]
  [numbering=line,
   bodyfont=small,
   before={\startframedtext[width=\textwidth]},
    after={\stopframedtext}]

\startcode
<--
\stopcode

將產生<and (破折號),而不是預期的雙連字--。這是一個錯誤嗎? MKIV在這裡。

答案1

使用 TeXlive 2016 中的目前 ConTeXt 範例

\definetyping
  [code]
  [numbering=line,
   bodyfont=small,
   before={\startframedtext[width=\textwidth]},
    after={\stopframedtext}]

\starttext
\startcode
<--
\stopcode
\stoptext

排版為

在此輸入影像描述

這意味著問題已經解決。

相關內容