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

SublimeText 4でのコンパイル問題

- 久仁光 若松 の投稿

皆様、いかがお過ごしでしょうか?

SublimeText 4でのコンパイル問題についての報告です!

SublimeText 4でLaTeXのコンパイル[cmd+B]が漸く復活しました。

Sublime User Forumに最近頻繁に投稿されている

「Can’t build Latex」への最終解決法。(チョット大袈裟?)

結論は、古い方の「LaTeXTools」の削除と、

「LaTeXTools」の再インストールです。

小生の環境はMac OS 13.7.8 Ventura

Sublime Text 4 (Build 4700)最新版です。

TeXディストリビューションはMacTeX 2025を使用

復活までの半日の試行錯誤については、

長くなりそうなので、添付ファイルにて。

zip File 1.ネット検索過程の説明。

2.Package Control.sublime-settingsへの書き込み修正。

SublimeText4でコンパイル問題を抱えた方の参考になれば幸甚です。

インライン数式での改行

- でび まる の投稿

でびまる といいます。

今更かも分りませんがインライン数式での改行についてご教示ください。
経験的に、デフォルトではインライン数式中の改行は「=」や「+」、「-」の後で行なわれる様です。
(「=」は関係記号、「+」は2項演算子でしょうが代表的に)
不要でしょうが例を示してみると(bxjsarticle 始めてで使い方怪しいです)、改行しない1行目に「A」を付けても改行にならず、「い」や「AB」を付けると等号の後で改行され行頭に「0」が来ます。
「いろ」にしたらもっと押されて「+」の後で改行されてしまい行頭には「2=0」が来ます。

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

\documentclass[lualatex,paper={65mm}{90mm},12pt,ja=standard]{bxjsarticle}

\pagestyle{empty}
\begin{document}
$a-b+c=1-3+2=0$いろはに

A $a-b+c=1-3+2=0$ BCD

い$a-b+c=1-3+2=0$ろはに

AB $a-b+c=1-3+2=0$ CD

いろ$a-b+c=1-3+2=0$はに

\end{document}

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

(ファイル、画像の挿入、添付上手くできてないかも)

個人的には「=」や「+」の前で改行して行頭に「=0」や「+2=0」が来る様な設定ができると嬉しいのですが
その様な方法はあるでしょうか。組版の是非は別にして、改行位置の選択肢が増えればと思います。
ChatGPT などに聞いても使えそうな回答はなさそうに思います。(マクロはNGです)
よろしくお願いします。

VerbatimOut環境でのTABの扱い(platexとlualatexでの違い)

- 陽二郎 若座 の投稿

下記のソースをplatexとlualatexでコンパイルするときの動作が異なることに気がつきました.

TABの前の空白文字はTABに変えてテストしてください.

動作環境はmacOS上のTeXLive2026のTeXShopです.

```

\documentclass{article}
\usepackage{fancyvrb}
\begin{document}
Test VerbatimOut.
\begin{VerbatimOut}[codes={\catcode009=12\relax}]{output.txt}
    SPACE
 TAB
\end{VerbatimOut}
\end{document}

```

platex ではoutput.txtに`^^I`が入ってしまいますが, lualatexではTABのままです.

行頭のTABを消すのがLaTeXのverbatim環境の使用だったと思いますが, fancyvrbパッケージは考え方を変えて, TABを通すようになっているように見えます. そこは理解できるのですが, `^^I`がファイルに出力されると, 出力ファイルが使いツールで使いにくくなってしまいます.

他の環境でもこのような現象があるのでしょうか?

Bibtexの使い方

- ueki ichiro の投稿

富士通ノートパソコンにWindows11、2023年版のTexを載せて論文を書いています。或る雑誌のLaTeX template に下記のようにデータを入れてコンパイルし、続いてBibtex でコンパイルしたところ、添付のスクリーンショット ss-1 のようなエラーメッセージが出ました。この中に出てくる\citation等のコマンドは美文書作成入門第8版にも載っていません。このエラーにどう対処したらいいかわかりません。templateで指定されているpackage のlea20250909とinf48.bib、logファイル、 およびエラーメッセージに出てくるleatest.aux を添付します。どう対処したらいいかご教示下さい。  植木

%!TEX TS-program = pdflatex

%backend for bibliography = biber

\documentclass[11pt,twoside]{article} %do not change the options

%%%%%%%%%%%%%%%%%%%

%STYLE FYLE OF THE JOURNAL

\usepackage{lea20250909}

%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%

%TITLE, AUTHOR, DATE

\title{The Role of the Infinite in the Development of Mathematics} %insert your title in lowercase letters

\shorttitle{short title} %insert your short title in lowercase letters. if you want to use your title, copypaste it here

\author{\textsc{}}

%to prepare for blind peer review: remove your name

%to prepare for publiation: insert your name. The first letter has to be uppercase, whereas the other letters have to be lowercase.

%\author{\textsc{Firstname1 Lastname1} and \textsc{Firstname1 Lastname2}} in case there are two authors

%\author{\textsc{Firstname1 Lastname1}, \textsc{Firstname1 Lastname2} and \textsc{Firstname3 Lastname3}} in case there are three authors

\date{} %leave empty

%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%

%USER PACKAGES BELOW

%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%

%USER SETTINGS BELOW

%%%%%%%%%%%%%%%%%%%

\theoremstyle{leatheoremstyle} %lea style for theorems, definitions, etc

\newtheorem{thm}{Theorem} %feel free to use your own abbreviations

\newtheorem{defn}{Definition} %feel free to use your own abbreviations

%feel free to add your own environments using the \newtheorem command

%%%%%%%%%%%%%%%%%%

\bibliography{inf48} %insert name of your bibliography file

\begin{document}

%%%%%%%%%%%%%%%%%%%

%TITLE, AUTHOR, ABSTRACT, KEYWORDS

\thispagestyle{empty} %style for the first page

\maketitle

\begin{abstract} %insert abstract

The following hypothesis is proposed, 'In mathematics, contradictions involved in the development of human knowledge are represented with the infinite'. Then the author describes a history of mathematical physics on the base of the hypothesis, and he concludes, 'The contradiction in mathematical description of motion was represented with the infinite within recursive (computable) set level, by early Newtonian mechanics. The contradiction to describe discontinuous phenomena with continuous functions was represented with the infinite higher than the recursive set level, namely with the infinite of arithmetical set level in second order arithmetic (ordinary mathematics), by mechanics of continuous bodies. The contradiction about ``ether'' was represented also with the infinite of arithmetical set level. Contradictions appeared in macroscopic physics applied to microscopic phenomena were represented with the further higher infinite in third or higher order arithmetic (set-theoretic mathematics), by quantum mechanics'. The hypothesis is supported by studies in the higher infinite.

%leave whitespace between the text and the keywords

\begin{keywords}

infinity\sep contradiction\sep history\sep mathematical physics\sep dialectic\sep reverse mathematics

%replace by your own keywords and delete \ldots

\end{keywords}

\end{abstract}

%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%

%MAIN TEXT

\section{Introduction}

\ \

'Philosophy of science without history of science is empty; history of science without philosophy of science is blind' \citep{Lakatos}.

\ \

E. Wigner said, 'The first point is that the enormous usefulness of mathematics in the natural sciences is something bordering on the mysterious and that there is no rational explanation for it' \citep{Wigner}. This quotation from the pioneer of quantum physics shows that elucidating the essential nature of mathematics is important for the natural science.

\end{document}

%%%%%%%%%%%%%%%%%%%

%ACKNOWLEDGEMENTS

\section*{Acknowledgements} %to prepare for blind peer review: remove this section

%to prepare for publication add this section

%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%

%BIBLIOGRAPHY

\printbibliography %backend for bibliography = biber

%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%

%% AUTHOR INFO %%%%

%%%%%%%%%%%%%%%%%%%

\begin{flushright}

Ichiro \textsc{Ueki}\\ %insert your last name in lowercase letters but the first letter should be a capital letter

Member of The History of Mathematics Society of Japan, Member of The Tokushima Society for The History of Science, Japan\\

Email: \href{mailto:ueki1@snow.ocn.ne.jp}{ueki1@snow.ocn.ne.jp}\\

ORCID iD: \href{http://orcid.org/0000-0002-1550-5314}{0000-0002-1550-5314} %remove if you don't have an orcid id

\vspace{.7cm}

Ichiro \textsc{ueki}\\ %insert your last name in lowercase letters

Member of The History of Mathematics Society of Japan, Member of The Tokushima Society for The History of Science, Japan\\

Email: \href{mailto:ueki1@snow.ocn.ne.jp}{ueki1@snow.ocn.ne.jp}\\

ORCID iD: \href{http://orcid.org/0000-0002-1550-5314} %remove if you don't have an orcid id

\end{flushright}

]

添付 ss-1.png

定理環境と箇条書き環境について

- eevee314 の投稿

amsthmパッケージを使って定理環境を構成し,その中で箇条書き環境を使うことを考えています.環境はWindows10,TeX Studio 2026,uplatexです.

箇条書き環境は通常の地の文のような書式にしたいです.つまり文章の左端は通常通り,アイテムの最初の記号および各段落の最初は一文字分字下げされた状態にしたいです.そのためには例えばenumitemパッケージを用い,wideというキー設定を行えば良さそうであることが分かりました.

ただこの設定のもと定理環境の先頭で箇条書き環境を使う場合,一つ目のアイテムの字下げのみが余分です.これがなくなるような上手い設定方法はないでしょうか?

参考用TeXファイル

\RequirePackage{plautopatch}
\documentclass[uplatex,dvipdfmx]{jsarticle}
\usepackage{amsthm}
\newtheoremstyle{mythm}{}{}{\normalfont}{}{\bfseries}{}{ }{}
\theoremstyle{mythm}
\newtheorem{thm}{定理}
\usepackage{enumitem}
\begin{document}
\begin{thm}
ああああああああああああああああああああああああああああああああああああああああああああああああ

あああああ
\begin{enumerate}[wide]
\item ああああああああああああああああああああああああああああああああああああああああああああああああああ

あああああ
\item ああああああああああああああああああああああああああああああああああああああああああああああああああ

あああああ
\end{enumerate}
\end{thm}
\begin{thm}
\begin{enumerate}[wide]
\item ああああああああああああああああああああああああああああああああああああああああああああああああああ

あああああ
\item ああああああああああああああああああああああああああああああああああああああああああああああああああ

あああああ
\end{enumerate}
\end{thm}
\end{document}

LatexWorkshopでpdfファイルが開けないです。

- 勘定 奉行 の投稿

環境はWindows11、vscode1.118.1です。

私はlatexmxをインストールし、vscodeで自動ビルドを組んでtexファイルへの書き込みをリアルタイムでpdfファイルに更新しています。

現在問題なのはなにをしてもpdfファイルがvscode上で開けないことです。pdfファイルを見ようとすると

Web ビューの読み込みエラー: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

というエラーが出ます。今ではいったん"latex-workshop.view.pdf.viewer": "browser",とsetting.jsonに書き、ブラウザで見るようにしてます。

latexmxによる自動コンパイルは問題なくでき、生成、更新されるpdfファイルは正しく表示されています。どうしたらvscodeでpdfファイルが見れるようになるのでしょうか。ご教授お願い致します。

二段組オプションbが効かない

- 十文字 KO の投稿

texlive2026を新しくインストールし、lualatex (LuaHBTeX 1.24.0)で2段組み処理するとフロートオプションbが効かなくなりました。LuaHBTeX 1.21.0 (texlive2025)では効いてました。環境はWindows11 Homeです。原因わかりますでしょうか?

\documentclass[twocolumn]{ltjsarticle}

\begin{document}

ほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげ
ほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげ
ほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげ

\begin{figure*}[b]
\centering
\fbox{図図図}
\end{figure*}

ほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげ
ほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげほげ

\end{document}

\rubyを使用した際の行間の不揃いを直したい

- t bz の投稿

\rubyを使用した際に行間が空いてしまいます。
行間を一定に保つためにはどうしたらよいでしょうか。
ちなみに、\rubyはokumacroのものを使用しております。

dvipdfmx が出力するメッセージを網羅的に知りたい

- ya ra の投稿

dvipdfmx がターミナルに出力するエラーメッセージや警告のパターンについて知りたいと考えています。

現在、VS Code の LaTeX Workshop 拡張機能には dvipdfmx に対応したログパーサが用意されておらず、自分で実装・PR することを検討しています。
しかし、そのためには dvipdfmx がどのような形式でエラーメッセージや警告を出力するのか、体系的に把握する必要があります。

以前、この件についてリポジトリに issue を提出したのですが、「メンテナは dvipdfmx を使用していないためコミュニティの助けが必要」との回答をもらいました。(参考
そのため、自分で対応を進めたいと考えています。

dvipdfmx のエラーメッセージや警告メッセージには、どのような種類・パターンがあるのでしょうか。あるいは、それらを網羅的に把握する方法があれば教えていただけると助かります。

なお、かなり古いバージョンではメッセージの形式が異なることを認識しています。しかし、本件では現在一般的に利用されている比較的新しいバージョンのみを対象とし、過去バージョンとの互換性は考慮しない予定です。

他のログパーサについて

LaTeX や BibTeX 等のエラーメッセージを補足するログパーサは以下のディレクトリにあります。

https://github.com/James-Yu/LaTeX-Workshop/tree/master/src/parse/parser

現在把握しているメッセージパターン

以下のメッセージパターンを把握しています。

  • dvipdfmx:warning:
  • dvipdfmx:fatal:
  • No output PDF file written.

これ以外にも考慮すべき典型的なメッセージの出力パターンがあれば知りたいです。

TeXLive のインストールが終わっていないようだが使える

- 吉田 茂生 の投稿

TeX Live のインストールを開始してから5時間くらいになると思います。が、「TeX Live へようこそ!」が出てきません。しかし、TeXworks を使ってみたところ、正常に動くようです。インストールは終わったと考えてよいのでしょうか?どなたかご存じの方がおられれば教えてください。

以下で状況をより詳しく説明します。

当方は、OS としては Windows 11 Pro v21H2 を使っており、ISO イメージ texlive2025-20250308.iso を使って管理者としてインストール作業をしています。

インストーラの経過表示にエラーらしきものはなく、表示の流れをたどっていくと、コンポーネントのインストールは

Installing [4813/4813, time/total: 45:13/45:13]: zztex [147k]
Time used for installing the packages: 45:14

で終わっており、それから mktexlsr が始まり、それも

mktexlsr: Updated C:/texlive/2025/texmf-config/ls-R.
mktexlsr: Done.

で終了し、その後、

setting up ConTeXt caches: running mtxrun --generate ...done
running context --luatex --generate ...done
running mtxrun --script fonts --reload ...done
running context --luajittex --generate ...done
pre-generating all format files, be patient...
running fmtutil-sys --no-error-if-no-engine=luametatex,luajithbtex,luajittex,mfluajit --no-strict --all ...done
running path adjustment actions
finished with path adjustment actions
running package-specific postactions
ptex2pdf programs already included in tools.ini, not adding again.
default is already set as pLaTeX (ptex2pdf) in TeXworks.ini, no change.

まで行ったところで止まっております。TeXworks は使えるみたいなので、インストールは終わったのかなあとも思いつつ、「TeX Live へようこそ!」が出てこないので不安です。よろしくお願いします。