
si corro
kpsewhich .tex
yo obtengo
/usr/local/texlive/2013/texmf-dist/tex/latex/tools/.tex
Este archivo pertenece a los archivos principales de LaTeX y está casi vacío:
%%
%% 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'.
Supongo que tiene algo que ver con algo
archivo no encontrado
error pero no puedo encontrar nada al respecto en source2e
. Entonces, ¿para qué sirve?
Respuesta1
Si echas un vistazo al tex\latex\tools\
directorio, también verás otros archivos de aspecto extraño : h.tex
, e.tex
, q.tex
y . Todas estas son respuestas de una sola letra que puede dar cuando LaTeX le solicita un nombre de archivo. Considere este documento:r.tex
s.tex
\documentclass{article}
\begin{document}
\input{foo}
\end{document}
Suponiendo que eso foo.tex
no existe, si ejecuta LaTeX en este modo interactivo obtendrá:
! 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 está esperando que escriba un nombre de archivo y luego intentará cargarlo. Si el nombre de archivo proporcionado que proporciona tampoco existe, recibirá el mensaje nuevamente. Si simplemente presiona la tecla Intro, efectivamente está solicitando el archivo .tex
, que LaTeX continúa y carga. Este archivo en realidad no hace nada, pero sale del Enter file name:
mensaje.
Supongamos que en lugar de escribir h
seguido de la tecla Intro, obtienes:
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{}
?
Es decir, LaTeX tiene una entrada h.tex
que proporciona un mensaje de ayuda y un mensaje. De manera similar, si escribe x
en el Enter file name:
indicador, x.tex
se ingresa, lo que hace que la ejecución de LaTeX se cierre prematuramente, y así sucesivamente.