• No results found

File not found error

N/A
N/A
Protected

Academic year: 2021

Share "File not found error"

Copied!
2
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

File not found error

Frank Mittelbach

June 1, 2021

This file is maintained by the LATEX Project team.

Bug reports can be opened (category tools) at

https://latex-project.org/bugs.html.

1

Introduction

When LATEX 2ε is unable to find a file it will ask for an alternative file name.

However, sometimes the problem is only noticed by TEX, and in that case TEX insists on getting a valid file name; any other attempt to leave this error loop will fail.1 Many users try to respond in the same way as to normal error messages,

e.g. by typing ⟨return⟩, or s or x, but TEX will interpret this as a file name and will ask again.

To provide a graceful exit out of this loop, we define a number of files which emulate the normal behavior of TEX in the error loop as far as possible.

After installing these files the user can respond with h, q, r, s, e, x, and on some systems also with ⟨return⟩ to TEX’s missing file name question.

2

The documentation driver

This code will generate the documentation. Since it is the first piece of code in the file, the documentation can be obtained by simply processing this file with LATEX 2ε.

1⟨*driver⟩

2\documentclass{ltxdoc}

3\begin{document} \DocInput{fileerr.dtx} \end{document}

4⟨/driver⟩

3

The files

3.1

Asking for help with h

When the user types h in the file error loop TEX will look for the file h.tex. In this file we put a message informing the user about the situation (we use ^^J to start

This file has version v1.1a last revised 2003/12/28

1On some systems, TEX accepts a special character denoting the end of file to return from this loop, e.g. Control-D on UNIX or Control-Z on DOS.

(2)

new lines in the message) and then finish with a normal \errmessage command thereby bringing up TEX’s normal error mechanism.

5⟨*help⟩

6\newlinechar=‘\^^J

7\message{! The file name provided could not be found.^^J%

8Use ‘<enter>’ to continue processing,^^J%

9‘S’ to scroll future errors^^J%

10‘R’ to run without stopping,^^J%

11‘Q’ to run quietly,^^J%

12or ‘X’ to terminate TeX}

13\errmessage{}

14⟨/help⟩

3.2

Scrolling this and further errors with s

For the response s we put a message into the file s.tex and start \scrollmode to scroll further error messages in this run. On systems that allow .tex as a file name we can also trap a single ⟨return⟩ from the user.

15⟨+scroll | return | run, batch⟩ \message{File ignored}

16⟨+scroll⟩ \scrollmode

17⟨+run⟩ \nonstopmode

18⟨+batch⟩ \batchmode

3.3

Exiting the run with x or e

If the user enters x or e to stop TEX, we need to put something into the cor-responding file which will force TEX to give up. We achieve this by turning off terminal output and then asking TEX to stop: first by using the internal LATEX

name \@@end, and if that doesn’t work because something other than LATEX is

used, by trying the TEX primitive \end. The \errmessage is there to ensure that TEX’s internal ”history” variable is set to error_message_issued. This in turn will hopefully set the exit code on those operating systems that implement return codes (though there is no guarantee for this).

19⟨+edit | exit⟩ \batchmode \errmessage{}\csname @@end\endcsname \end

We end every file with an explicit \endinput which prevents the docstrip program from putting the character table into the generated files.

20\endinput

Referenties

GERELATEERDE DOCUMENTEN

Ook zijn in verdere continue culture experimenten zijn verschillende aspecten belangwekkend, zoals de rnogelijkhejd van inductie door pectine of pectaat als toevoeging aan een

This file contains the external font information for special variants of the the Computer Modern fonts to be used for overhead slides.. They allow to produce slides in a similar

\@ympar gathers its argument in the same temporary box and throws away its contents by closing the group opened up in \marginpar above.

This file is maintained by the L A TEX Project team. Bug reports can be opened (category

A second option differential let the character ‘d’ behave like an ordinary operator in roman layout. The major advantage is that subscripts, indices and accents can be used with-

The amscd package provides a CD environment that emulates the commutative diagram capabilities of AMS-TEX version 2.x.. This means that only simple rectangular diagrams are

When create-tg.tex is compiled, the DVI (in the case of L A TEX) or the PDF (in all other cases) produces a single page document the title of which is “Tile Graphic Report.” The

To calculate the proportion that goes to the virus stage and the proportion that remains in the provirus stage, we divide the provirus stage into K identical pseudo stages and let