Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#39 の続きです。
確かに,otfパッケージにも uplatex オプションを自動で与えなければ価値が半減しますね。
早速追加しました。
昨日のコードでは,autodetect-engine と uplatex を同時指定した場合には autodetect-engine が優先され,実際には pLaTeX が動いていた場合には uplatex 指定が無視されてコンパイルが成功するようになっていました。
しかし,otfパッケージを使用する場合を考えると,事情が変わってきます。
\usepackage
するという状況を考えると,クラスファイル側で uplatex 指定を無視しても,グローバルオプションとして uplatex が伝わってしまい,結局 otf パッケージが JY2 なんたらというエラーを出してしまいます。
そこで,「クラスファイルオプションで autodetect-engine と uplatex を同時指定しているが実際には pLaTeX でコンパイルしている」という状況下では,クラスファイルの段階で「You are running pLaTeX. ~」というエラーを出すように変更しました。