Closed10
LuaLaTeX環境作り

ここをみながらやってみる

記事だとminimal スキーム
を選択してたけどbasic スキーム
にした.
多分ダイジョブだべ...

=^xx^= ~/dev/temp/latex-test:$ lualatex.exe test.tex
This is LuaHBTeX, Version 1.17.0 (TeX Live 2023)
restricted system commands enabled.
(./test.tex
LaTeX2e <2023-11-01>
L3 programming layer <2023-11-01>
! LaTeX Error: File `ltjsarticle.cls' not found.
or enter new name. (Default extension: cls)
Enter file name:
! Emergency stop.
<read *>
l.2 \usepackage
{luatexja} % ltjclasses, ltjsclasses を使うときはこの行..
.
301 words of node memory still in use:
1 hlist, 1 dir, 3 kern, 1 glyph, 1 attribute, 39 glue_spec, 1 attribute_list
nodes
avail lists: 2:10,3:3,4:1
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
exit status 1
Ctrl-C
してTLShell Tex Live Managerから
luatexja`パッケージをインストール.
--アンインストールを押した気がしないでもない--

! LaTeX Error: File `xkeyval.sty' not found.
-> xkeyval
パッケージ
! LaTeX Error: File `etoolbox.sty' not found.
-> etoolbox
パッケージ

(略)
luaotfload | db : Reload initiated (formats: otf,ttf,ttc); reason: File not found: "HaranoAjiMincho-Regular.otf".
! Font \JY3/mc/m/n/10=file:HaranoAjiMincho-Regular.otf:-kern;jfm=ujis at 9.2471
3pt not loadable: metric data not found or bad.
<to be read again>
relax
l.79 \kanjiencoding{JY3}\selectfont
\adjustbaseline
?
-> haranoaji
パッケージをインストール

じょうずにできたね

ドキュメント用のpdfファイルが一番容量食ってるっぽい.消しても問題なさそうな気がする...

LuaLaTeXでMS P明朝とTimesNewRomanのフォント設定

とりあえず最初のボールド何某をつっこんでみた.
$ lualatex.exe test2.tex
(略)
! LaTeX Error: \usepackage before \documentclass.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.1 \usepackage{
luatexja-fontspec}
?
(^C)
文字通り,\usepackage を \documentclass よりも前で用いた場合に現れるエラーメッセージです.
→ \usepackage を \documentclass コマンドと \begin{document} の間の部分に移動してください. 何らかのパッケージを \documentclass より先に読み込まざるを得ない場合には,\RequirePackage を使えば読み込めます.
https://texwiki.texjp.org/?LaTeX のエラーメッセージ#labd30d2 より

+\documentclass{ltjsarticle}
\usepackage{luatexja-fontspec}
+\begin{document}
\setmainfont[Ligatures={Rare,TeX}]{Times-New-Roman}
\setsansfont{Arial}
(略)
$ lualatex test2.tex
(略)
! LaTeX Error: File `fontspec.sty' not found.
fontspec
パッケージをいれた.
$ lualatex test2.tex
(略)
! LaTeX Error: Can be used only in preamble.
\documentclass{ltjsarticle}
\usepackage{luatexja-fontspec}
-\begin{document} % \begin|document}は後らしい...?
\setmainfont[Ligatures={Rare,TeX}]{Times-New-Roman}
\setsansfont{Arial}
(略)
! LuaTeX-ja error: File `jfm-jlreqv.lua' not found.
jfm-jlreqv
パッケージが見つからない事案...
このスクラップは2024/06/04にクローズされました