Ticket #36711

\mathrm in Beamer with luatexja-preset

Open Date: 2016-10-12 14:50 Last Update: 2016-11-07 18:23

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

TeX.SX 333475 からです。

  1. \documentclass{beamer}
  2. \usepackage{luatexja-preset}
  3. \begin{document}
  4. \begin{frame}
  5. $\mathrm{a}$
  6. \end{frame}
  7. \end{document}
! LaTeX Error: Math alphabet identifier \mathrm is undefined in math version `n
ormal'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.10 \end{frame}

Ticket History (3/5 Histories)

2016-10-12 14:50 Updated by: aminophen
  • New Ticket "\mathrm in Beamer with luatexja-preset" created
2016-10-12 20:20 Updated by: h7k
  • Resolution Update from None to Fixed
  • Owner Update from (None) to h7k
Comment

よくわからないですが,lltjp-fontspec.sty でのパッチが良くなかったようです (\fontspec_setup_maths がグループ内で実行されたため,\mathrm の定義がローカルになってしまった?)

98082c02 で削除したところ,このソースでは正常に動いています. しかし,該当部分を入れたコミット cec3cd6a は

fix "Command \colon' already defined" error when fontspec is loaded without no-math option

となっているので,予想外の影響があるかも?

2016-10-13 13:14 Updated by: aminophen
Comment

ありがとうございます。

fix "Command \colon' already defined" error when fontspec is loaded without no-math option

調べたり試したりしましたが、エラー再現例を見つけられていません。

2016-11-07 18:23 Updated by: h7k
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2016-11-07 18:23

Attachment File List

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login