abenori / jlreq

Other
125 stars 18 forks source link

LuaLaTeX でタイプセットすると \item コマンドのオプション引数が正しく処理されない #87

Closed h20y6m closed 3 years ago

h20y6m commented 3 years ago

最新の jlreq.cls (2021/07/25) を使用すると LuaLaTeX でタイプセットしたときのみ \item コマンドのオプション引数が処理されず、そのまま [] つきのテキストとして処理されてしまいます。

\documentclass{jlreq}
\begin{document}
\begin{itemize}
\item[★] ほげ
\item[☆] ふが
\end{itemize}
\begin{description}
\item[ほげ] ほげほげ
\item[ふが] ふがふが
\end{description}
\end{document}

LuaLaTeX で処理すると……

image

以下の部分で元の \item コマンドの後にコードを追加しているのが原因ではないかと思います。

https://github.com/abenori/jlreq/blob/133c34ac4798346467ba16e8b519e1fd53735d24/jlreq.cls#L795-L799

abenori commented 3 years ago

ありがとうございます.\itemのオプション引数をすっかり忘れていました. 636073a で直しました.

h20y6m commented 3 years ago

ありがとうございます。2021/07/30 で修正されていることを確認しました。