TeX Live の .tex ファイルは何の目的で使用されますか?

TeX Live の .tex ファイルは何の目的で使用されますか?

もし私が走ったら

kpsewhich .tex

私は

/usr/local/texlive/2013/texmf-dist/tex/latex/tools/.tex

このファイルは LaTeX コア ファイルに属しており、ほぼ空です。

%%
%% This is file `.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fileerr.dtx  (with options: `return')
%% 
%% This is a generated file.
%% 
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
%% 2006 2008 2009
%% The LaTeX3 Project and any individual authors listed elsewhere
%% in this file.
%% 
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
%% --------------------------------------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This file may only be distributed together with a copy of the LaTeX
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
%% without such generated files.
%% 
%% The list of all files belonging to the LaTeX `Tools Bundle' is
%% given in the file `manifest.txt'.
%% 
 \message{File ignored}
\endinput
%%
%% End of file `.tex'.

それは何かと関係があると思う

ファイルが見つかりません

エラーですが、 ではそれに関する情報が見つかりませんsource2e。それで、それは何のために使用されるのでしょうか?

答え1

ディレクトリを見てみるとtex\latex\tools\、他にも奇妙に見えるファイルがいくつかあります: h.tex、、、および。これらはすべてe.tex、 LaTeX がファイル名の入力を要求したときに指定できる 1 文字の応答です。次のドキュメントを考えてみましょう:q.texr.texs.tex

\documentclass{article}

\begin{document}

\input{foo}

\end{document}

それがfoo.tex存在しないと仮定して、インタラクティブ モードで LaTeX を実行すると、次のようになります。

! LaTeX Error: File `foo.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name: 

LaTeX はファイル名の入力を待機し、入力するとそれをロードしようとします。指定したファイル名も存在しない場合は、再度プロンプトが表示されます。Enter キーを押すと、実質的にファイル を要求し.tex、LaTeX が先に進んでロードします。このファイルは実際には何もしませんが、Enter file name:プロンプトから抜け出します。

代わりに、次hのように入力して Enter キーを押すと、次のようになります。

Enter file name: h
(/home/texlive/2013/texmf-dist/tex/latex/tools/h.tex
! The file name provided could not be found.
Use `<enter>' to continue processing,
`S' to scroll future errors
`R' to run without stopping,
`Q' to run quietly,
or `X' to terminate TeX
! .
l.41 \errmessage{}

? 

つまり、LaTeXにはh.texヘルプ メッセージとプロンプトを提供する入力があります。同様に、プロンプトxに と入力するとEnter file name:x.texが入力され、LaTeX の実行が途中で終了するなどします。

関連情報