2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2000 The Lyx Team
9 * This file is Copyright 1996-1999
12 * ======================================================
36 Error () : error_in_line(0) {}
38 Error(int line, string const & desc, string const & text)
39 : error_in_line(line),
42 /// what line in the TeX file the error occured in
46 /// The line/cmd that caused the error.
51 typedef vector<Error> Errors;
53 Errors::const_iterator begin() const { return errors.begin(); }
55 Errors::const_iterator end() const { return errors.end(); }
57 void insertError(int line, string const & error_desc,
58 string const & error_text);
68 /** All the different files produced by TeX.
70 This is the files mentioned on page 208-9 in Lamports book +
76 /// used for table of contents et.al.
82 /// glossary (not supported by LyX so far)
86 /// written by makeindex
90 /// the LaTeX log file
100 /// list of algorithms
104 /** Return values from scanLogFile() and run() (to come)
106 This enum should be enlarged a bit so that one could
107 get more feedback from the LaTeX run.
117 UNDEF_REF = 4, // Reference '...' on page ... undefined.
119 UNDEF_CIT = 8, // Citation '...' on page ... undefined.
121 RERUN = 16, // Label(s) may have changed. Rerun to get...
131 PACKAGE_WARNING = 512,
137 TOO_MANY_ERRORS = 4096,
139 ERRORS = TEX_ERROR + LATEX_ERROR,
141 WARNINGS = TEX_WARNING + LATEX_WARNING + PACKAGE_WARNING
146 cmd = the latex command, file = name of the (temporary) latex file,
147 path = name of the files original path.
149 LaTeX(string const & cmd, string const & file, string const & path);
151 /// runs LaTeX several times
152 int run(TeXErrors &, MiniBuffer *);
155 int getNumErrors() { return num_errors;}
157 /// use this for running LaTeX once
160 /// The dependency file.
164 LaTeX(LaTeX const &);
166 LaTeX & operator= (LaTeX const &);
169 void deplog(DepTable & head);
172 void deptex(DepTable & head);
175 int scanLogFile(TeXErrors &);
178 bool runMakeIndex(string const &);
181 bool scanAux(DepTable &);
184 bool runBibTeX(string const &, DepTable &);
200 // used by scanLogFile