質問用フォーラムです。ご質問の前に質問のしかたをご覧ください。

tlmgr update 後にコンパイルできなくなりました

- Adbird の投稿
環境:TeXLive2022(+TLW64)、Windows 10 pro(21H2)

tlmgr update --self --all

でアップデート後、コンパイルできなくなりました。

アップデート後、tl-win64.zipを改めてダウンロード、展開・配置し直して
fmtutil-sys --all
luaotfload-tool --force --update -vvv
は実行しております。

以下のようなエラーが出ます(logファイルを添付しました)。

----------------------------

$ lualatex テスト
This is LuaHBTeX, Version 1.15.0 (TeX Live 2022)
(c:/texlive/2022/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(c:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/texlive/2022/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(c:/texlive/2022/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(c:/texlive/2022/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2022/texmf-dist/tex/latex/everyhook/everyhook.sty
(c:/texlive/2022/texmf-dist/tex/latex/svn-prov/svn-prov.sty))
(c:/texlive/2022/texmf-dist/tex/luatex/luatexja/ltj-base.sty)
(c:/texlive/2022/texmf-dist/tex/luatex/luatexja/ltj-latex.sty
(c:/texlive/2022/texmf-dist/tex/luatex/luatexja/patches/lltjfont.sty
(c:/texlive/2022/texmf-dist/tex/latex/base/tuenc.def
! Undefined control sequence.
l.77 \newprotectedluacmd
\@remove@tlig@@@
?
! Emergency stop.
l.77

-------------------------------

32bitでもコンパイルしてみましたが、以下のようなエラーが出てコンパイルできません。

-------------------------------
$ lualatex テスト
This is LuaHBTeX, Version 1.15.0 (TeX Live 2022)
restricted system commands enabled.
(./テスト.tex
LaTeX2e <2021-11-15> patch level 1
L3 programming layer <2022-04-29>c:/texlive/2022/texmf-dist/tex/latex/l3kernel
/expl3.lua:282: bad bytecode register
stack traceback:
[C]: in function 'lua.getbytecode'
c:/texlive/2022/texmf-dist/tex/latex/l3kernel/expl3.lua:282: in main chunk
[C]: in function 'require'
[\directlua]:1: in main chunk.
\lua_now:e #1->\__lua_now:n {#1}

l.1
\documentclass{ltjsarticle}
?
! Emergency stop.
\lua_now:e #1->\__lua_now:n {#1}

l.1
\documentclass{ltjsarticle}
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:1,4:1
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on テスト.log.

--------------------------------

コンパイルしようとしているTeXファイルは以下の内容です。試しにCloud LaTeXにアップロードしてコンパイルしましたが、問題なくコンパイルできました。

------------------------------

\documentclass{ltjsarticle}
\usepackage{luatexja}

\title{論文タイトル}
\author{著者}
\date{}

\begin{document}
\maketitle% タイトル・著者名の出力。(段組みなしのとき)
\begin{abstract}% 論文要旨(アブストラクト)
概要を書く。
\end{abstract}
%\maketitle% タイトル・著者名の出力。twocolumn(2段組のとき)

\section{見出し}

文章を書く。

\end{document}

-------------------------------

どのように対処すればよいでしょうか?
よろしくお願いいたします。

subsectionの見た目をsubsubsectionと同じにする

- 草 ほうれん の投稿
jlreqを使っています。
現在、sectionの下を外見上の理由でsubsubsetionにしていますが、意味的に気持ち悪いのでsubsectionを使いたいです。
subsetionの見た目をsubsubsectionと同じにするにはどうすればいいですか?

白紙pdfが生成される

- niemand の投稿
TeXLive2022を使用していますが、9月末頃のupdate以降、

\documentclass[uplatex, 12pt]{jsarticle}
\usepackage[dvipdfmx]{hyperref}
\usepackage{pxjahyper}
\begin{document}
test
\end{document}

で白紙pdfが生成されるようになりました。

このソースで、
・文字サイズを10ptに変更(または削除)する
または
・\usepackage{pxjahyper} を削除する
と正常なpdfが生成されます。

なお、\usepackage[a4paper]{geometry} を追加した場合は文字サイズ指定を無視して(10pt?の) pdfが生成されます。

目次で「第〜章」と章タイトルの間の余白を減らす

- 佐藤 清 の投稿
jlreqを使っています。 目次で「第〜章」と章タイトルの間の余白が大きいので小さくしたいです。 今は\chapter[\hspace{-2em}タイトル]{タイトル}のようにしていますが、これだと各ページの隅にある「第〜章 タイトル」という表示でタイトルが左に寄りすぎます。 なお、経験上、外部パッケージを使うと何故か表示が崩れたりエラーになったりすることがあります。

jlreqで縦組時に、minipageの横組ができない

- 洋一郎 石川 の投稿
【環境】
Windows 10 Home 21H2
TeX Live 2022

【タイプセット】
LuaLaTeX

【症状】
クラスファイルにjlreqを使って縦組みをし、minipageを横組にすると以下のメッセージを吐いて停止します。
-----
! Missing number, treated as zero.

<
l.30 \begin{minipage}<
y>{160mm}
?
-----
組方向を指定しないときは、縦組みでPDFが作成できます。

ltjtarticleを指定すると、意図に近い出力になりますが、本文のフォント・用紙のサイズが指定したものになりません。

jlreqを使ってminipageを横組にするにはどうしたらよいでしょうか。
何かを指定し忘れていますでしょうか。ご教示をお願いいたします。

ソース、ログ、PDFをZIPに固めたものを添付いたします。

TeX Live 2022のインストールについて

- t bz の投稿
TeX Live 2022 をインストールして、次のファイル

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[dvipdfmx]{jarticle}
\begin{document}
abc
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

をタイプセットしたら、

tex! LaTeX Error: This file needs format `pLaTeX2e' but this is `LaTeX2e'

と表示されたので、下記サイト

https://texwiki.texjp.org/?TeXworks%2F%E8%A8%AD%E5%AE%9A#ycb12d64

の手順通りに「pLaTeX (ptex2pdf)」「pBibTeX」「mendex」を登録し、「pLaTeX (ptex2pdf)」で再びタイプセットしたところ、

This is ptex2pdf[.lua] version 20200520.0.
File cannot be found with kpathsea: -l
-ot
-kanji=utf8 -synctex=1
untitled-1.tex[.tex, .ltx]

と表示されます。

対処法をご教示いただけないでしょうか?

今までできたLatexのコードができなくなりました。

- popo stream の投稿

3週間前に作ったコードがあり、その時が問題なく実行できたのですが、今日やってみたところ下の様なエラーが出てしまい実行できませんでした。

最近emathwikiが更新されて、古い方のemathwikiから設備をしたのでその影響でしょうか?

改善する方法がありましたらよろしくお願いします。

pLaTeX(ptex2pdf)で実行しました。

下が実行したときのエラーメッセージです。

This is ptex2pdf[.lua] version 20200520.0.

Processing        Q u.tex

This is e-pTeX, Version 3.141592653-p4.0.0-220214-2.6 (utf8.sjis) (TeX Live 2022) (preloaded format=platex)

restricted \write18 enabled.

entering extended mode

(./数列第2講.tex

pLaTeX2e <2021-11-15> (based on LaTeX2e <2022-06-01> patch level 5)

L3 programming layer <2022-07-15>

 

! LaTeX Error: File `jsarticle.cls' not found.

 

Type X to quit or <RETURN> to proceed,

or enter new name. (Default extension: cls)

 

Enter file name:


頭文字を太文字にするマクロについて

- 直人 伊藤 の投稿

現在,以下のようなソースにおいて頭文字の部分を手動で太文字にしていますがそれを自動化するマクロを組むことは可能でしょうか。TeX/LaTeXのマクロについて解説しているサイトをいろいろ見てみましたが自分ではどうマクロ組めばいいのか分かりませんでした。

\documentclass{jlreq}
\begin{document}
    JSTは,\textbf{J}apan \textbf{S}tandard \textbf{T}ime の頭文字をとったものです。

    JIS(\textbf{J}apanese \textbf{I}ndustrial \textbf{S}tandards)とは,我が国の産業標準化の促進を目的とする産業標準化法(昭和24年法律第185号。以下単に「法」という。)に基づき制定される任意の国家規格です。 
\end{document}

想定している動作

想定している動作は,次のようなものです:

JSTは,\kasiramozi{Japan Standard Time}の頭文字をとったものです。と入力すると上の一段落目と同様の結果が得られる。

もちろん,この方法が難しいということであれば,例えば\kasiramoziコマンド中の単語の数を引数に取るというようなものでも構いません。

よろしくお願いします。

添付 スクリーンショット 2022-10-10 11.23.24.png

以前正常だった、目次がおかしくなりました

- mr2h の投稿
2年ほど前に、自分で作成した縦書書籍で、正常に動作していたのですが、本日再コンパイルしたところ、目次の部分が正常に表示されなくなりました。 環境は、 Win10 Pro最新版、texlive2022最新update済み、原稿tex file のプリアンブルに書いてあるような設定したものです。 原稿tex file を切り取った最初の部分を添付します。多分わかっている方からみたら、ごく初歩的な問題だろうと、思いますが、私にとっては原因と対策が不明で困った問題です。help me! 目次の『杜甫私記』はよいのですが、次の『自序』のまえに余計なsectionが表示され、ページ数との間に点々・・・・・が表示されません。

bxjsarticleにおけるmktextfmエラー

- texer の投稿

pdfLaTeXを使用してbxjsarticleクラスの文書を作成しようとすると以下のエラーが出力されます。


類似のエラー出力を探すと、「texlive-fonts-recommended」をインストールするという対処法がありましたが、そちらでは解消されませんでした。


以下に示しているコードは、エラーが発生しているコードを抜粋したものです。

こちらをコンパイルしようとすると別のエラー(! Missing $ inserted.)が発生してしまいますが、構造としては大きく違いはないものと思っています。


試しに抜粋元コードで「\three」の部分を英数字や「日本」に置き換えた場合は正常に実行が終了しますが、「国」に置き換えた場合は同様のエラーが発生します。


CJK関連のエラーではないかと考えていますが、解決の糸口が見えてこないのでご助力いただきたいです。


エラー出力の内容:

------------------------------------------------------------------------------------------

kpathsea: Running mktextfm ipxm-r-u56sat

mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ipxm-r-u56sat

This is METAFONT, Version 2.71828182 (TeX Live 2022/dev/Debian) (preloaded base=mf)



kpathsea: Running mktexmf ipxm-r-u56sat

! I can't find file `ipxm-r-u56sat'.

<*> ... mag:=1; ; nonstopmode; input ipxm-r-u56sat


Please type another input file name

! Emergency stop.

<*> ... mag:=1; ; nonstopmode; input ipxm-r-u56sat


Transcript written on mfput.log.

grep: ipxm-r-u56sat.log: No such file or directory

mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input ipxm-r-u56sat' failed to make ipxm-r-u56sat.tfm.

kpathsea: Appending font creation commands to missfont.log.

! Font C70/mc/m/n/10/56=ipxm-r-u56sat not loadable: Metric (TFM) file not found

.

<to be read again>

                   9

l.173 \end{document}


?

! pdfTeX error (font): invalid font identifier.

\font@name ->\C70/mc/m/n/10/56


l.173 \end{document}


!  ==> Fatal error occurred, no output PDF file produced!

------------------------------------------------------------------------------------------


バージョン:

------------------------------------------------------------------------------------------

$ pdflatex -v

pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)

kpathsea version 6.3.4/dev

Copyright 2021 Han The Thanh (pdfTeX) et al.

There is NO warranty.  Redistribution of this software is

covered by the terms of both the pdfTeX copyright and

the Lesser GNU General Public License.

For more information about these matters, see the file

named COPYING and the pdfTeX source.

Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.

Compiled with libpng 1.6.37; using libpng 1.6.37

Compiled with zlib 1.2.11; using zlib 1.2.11

Compiled with xpdf version 4.03

------------------------------------------------------------------------------------------


抜粋コード:

------------------------------------------------------------------------------------------

% test.tex

\documentclass[pdflatex,b5j,ja=standard]{bxjsarticle}

\usepackage{graphicx}


\usepackage{test}


\begin{document}

  test

\end{document}

------------------------------------------------------------------------------------------

% test.sty

\def\width{182}

\def\height{257}

\def\rwidth{100}

\def\rheight{8}

\def\ROOT@X{0}

\def\ROOT@Y{0}


\def\@list{

  A:B:C:,

  D:E:F:,

  G:H:I:

}


{\catcode`\p=12\catcode`\t=12\gdef\num#1pt{#1}}

\newdimen\result

\def\Add#1#2#3{\result=#1pt \advance\result by #2pt

\edef#3{\expandafter\num\the\result}

}


\def\SetPos(#1,#2)#3{

\Add{#1}\ROOT@X\root@x

\Add{#2}\ROOT@Y\root@y

        {#3}

}

\def\Put(#1,#2)#3{

\Add\root@x{#1}\xpos

\Add\root@y{#2}\ypos

\Sub\height\ypos\ypos

\put(\xpos,\ypos){#3}

}


\def\disassemble#1:#2:#3:{

\def\one{#1}\def\two{#2}\def\three{#3}

}


\def\write#1{

\@for\linebuf:=#1\do{

\expandafter\disassemble\linebuf

\Put(0,\offset){\makebox(\rwidth,\rheight)[c]{\normalsize \three\hspace{20mm}}}

\Add\offset{\rheight}\offset

}

}


\let\enddocumentorg=\enddocument

\def\enddocument{

  \writepages

  \enddocumentorg

}


\def\writepages{

  \def\ROOT@X{10}

  \def\ROOT@Y{10}

  \begin{picture}(\width,\height)

  \SetPos(0,0) {

    \def\offset{20}

    \write\@list

  }

  \end{picture}

}

------------------------------------------------------------------------------------------