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\같은 이상한 모양의 다른 파일도 볼 수 있습니다 . 이는 모두 LaTeX가 파일 이름을 묻는 메시지를 표시할 때 제공할 수 있는 단일 문자 응답입니다. 다음 문서를 고려해보세요:h.texe.texq.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 키만 누르면 .texLaTeX가 계속해서 로드하는 파일을 효과적으로 요청하게 됩니다. 이 파일은 실제로 아무 작업도 수행하지 않지만 프롬프트에서 중단됩니다 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에 를 입력하면 LaTeX 실행이 조기에 종료되는 등의 원인이 됩니다.Enter file name:x.tex

관련 정보