
Если я побегу
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
, q.tex
, r.tex
и s.tex
. Это все однобуквенные ответы, которые вы можете дать, когда LaTeX предложит вам имя файла. Рассмотрим этот документ:
\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 имеет input h.tex
, который предоставляет сообщение справки и подсказку. Аналогично, если вы печатаете x
в Enter file name:
подсказке, x.tex
есть input, который заставляет запуск LaTeX преждевременно завершиться и так далее.