Bibtexの使い方

Bibtexの使い方

- ueki ichiro の投稿
返信数: 9

富士通ノートパソコンに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
ueki ichiro への返信

Re: Bibtexの使い方

- 和田 勇 の投稿

再現テストを試みましたが

  • lea20250909.sty が添付されていないようです
    • 添付された latest.log から lea20250909.sty を復元しようとしましたが、完全な再現検証は困難でした

添付された画像のログの表示部分は leatest.blg という bibtex が出力したログについて

  • I found no \citation commands---while reading file leatest.aux
  • I found no \bibdata commands---while reading file leatest.aux
  • I found no \bibstyle commands---while reading file leatest.aux

    これらは最初の pidflatex でなんらかのエラーによりleatest.aux   に必要な文献検索情報が出力されなかったことを示すので 本文の中になんらかのエラー原因があると思います。

情報の再提供のお願い

TeXworks のような統合環境をお使いの場合、.log が2回目以降の pdflatex で書き変わってしまいますので、 お手数ですがコマンドプロンプトでの作業をお願いします。

  1. 必要な以下の3ファイルを leatest というディレクトリに集める

    • leatest.tex
    • lea20250909.sty  
    • inf48.bib
  2. コマンドプロンプトで上記作業で作成した leatest に cd コマンド等で移動し以下の二つのコマンドを実行

    • pdflatex leatest
    • bibtex leatest
  3. leatest ディレクトリを .zip で圧縮し添付ファイルとして回答してください。

    • .log .aux のほか、bibtex の処理で作成される .bbl.blg の情報も必要なので、ディレクトリごと zip アーカイブフィルを作成してください。
    • それぞれのファイル日付の作成順序の妥当性も検討しますので、重ねてですがディレクトリごとの zip アーカイブファイルを作成してください。
和田 勇 への返信

Re: Bibtexの使い方

- ueki ichiro の投稿
和田様
いつもご指導ありがとうございます。ご指定の方法で作成したzipファイルを添付します。ディレクトリを直接圧縮する方法が分からなかったので、相当すると思われるファイルフォルダーを圧縮して添付しました。よろしくお願いいたします。
 植木
ueki ichiro への返信

Re: Bibtexの使い方

- はやて (h20y6m) の投稿
文書の先頭に

    %backend for bibliography = biber

とあるのでbibtexではなくbiberというプログラムで処理する必要があると思います。
その文書はbibtexではなくbiblatexを使用しているのではないでしょうか。
紛らわしいですがbibtexとbiblatexは全く異なるもので互換性はありません。
はやて (h20y6m) への返信

Re: Bibtexの使い方

- 和田 勇 の投稿
はやて (h20y6m)さん、フォローありがとうございます。

fiber を使わなければいけないのはそうなんですが、inf48.bib に non-ascii な文字が混入しています。

そのほか、 biber で処理しても警告メッセージが出るので、追求です。

以上、経過報告です。詳細は後ほど。
はやて (h20y6m) への返信

Re: Bibtexの使い方

- ueki ichiro の投稿

はやて様

ご注意ありがとうございます。backend for bibliography = biber が bibtexではなくbiberというプログラムで処理するという意味だとは気づきませんでした。今は和田様の指示を待ちたいと思います。  

  植木

ueki ichiro への返信

Re: Bibtexの使い方

- 和田 勇 の投稿

今回の問題点

  • 文献検索情報を作成するには今回は bibtex ではなく biber を利用する
    • lea20250909.styでは biblatex-chicago   を利用するにあたってbackend=biber のオプションを利用している
    • そのほか leatest.tex  にも注意書きとしても記述されている
  • inf48.bib の不正な記述

    • 以下のような差分になるよう二箇所の修正が必要

      • 不正な?おかしな?文字の混入
      • }」の後に不正な文字の混入
      --- ../inf48.bib    2026-05-01 23:34:31.259208618 +0900
      +++ inf48.bib   2026-05-05 00:05:04.356865073 +0900
      @@ -191,7 +191,7 @@
       publisher = {Jacob Tonson},
       address    = {London},
       note = {Reprinted in  ¥textit{From Kant to Hilbert}, 1, ed W. B. Ewald, Oxford Science Publications, New York, 1996, 60-92},
      -}2
      +}
      
       @book{Cauchy2,
       author = {Cauchy, Augustin L},
      @@ -465,7 +465,7 @@
       year = {1930},
       title = {¥textit{The Principles of Quantum Mechanics}}, 
       publisher = {Oxford, Clarendon Press},
      -address縲?= {London},
      +address = {London},
       }
      
       @book{Neumann,
      
      

今後の対処

  • texworks でビルドする際は biber を用いるもので実施
  • inf48.bib はこの回答に添付したもので置き換える
    • ベタガキでしたので、vscode を利用して整形しました
    • notepad などで編集が容易なように windows風の改行コードにしてあります

参考資料(memo.md)

今回の不具合についての顛末として添付しておきます。

和田 勇 への返信

Re: Bibtexの使い方

- ueki ichiro の投稿

和田様

大変お手数をおかけして申し訳ありません。bibファイルまで訂正していただき恐縮です。返信を頂いた後、bibファイルから引用した文献だけを抜き出したファイル test.bib を作り、leatest.tex の参照ヶ所も書き直して、コマンドプロンプトで pdflatex leatest、 biber leatest、再び pdflatex leatest としましたが、生成された pdf ファイルの末尾には文献リストがついていませんでした。なにか手順に誤りがあるのでしょうか。お手数ですがご教示をお願い致します。bibファイル以外は前回と同じ内容の zip ファイルを添付します。

    植木

ueki ichiro への返信

Re: Bibtexの使い方

- 和田 勇 の投稿

文献リストが ... の原因

\printbibliography\end{document}   の後ろに記述されているからです。

41:\begin{document}
71:\end{document}   %  →↓これ以降は処理されません。
86:\printbibliography           %backend for bibliography = biber

対策

単純に \end{document}\printbibliography の直後に移動すれば当面は直ります。

しかしファイル末に`\end{document} を移動するとエラーになります。

どうやら \href{...}{...} としなければいけないところを \href{...} だけ記述されていたので、他を参照しつつ仮修正。

--- ../leatest-keep/leatest.tex 2026-05-06 16:02:30.000000000 +0900
+++ leatest.tex 2026-05-06 20:44:19.780496533 +0900
@@ -71 +70,0 @@
-\end{document}
@@ -105 +104 @@
-ORCID iD: \href{http://orcid.org/0000-0002-1550-5314}  %remove if you don't have an orcid id
+ORCID iD: \href{http://orcid.org/0000-0002-1550-5314}{0000-0002-1550-5314} %remove if you don't have an orcid id
@@ -107,0 +107,2 @@
+\end{document}
+
@@ -110 +111 @@
-]
+] 多分ゴミ
和田 勇 への返信

Re: Bibtexの使い方

- ueki ichiro の投稿

和田様

ご教示に従って tex ファイルの\end{document}の位置を移動して、完全な文書を得ることができました。ありがとうございます。大変お手数をおかけしてすみません。今後ともよろしくご指導ください。

   植木