SCons.Scanner.LaTeX.LaTeX

Package SCons :: Package Scanner :: Module LaTeX :: Class LaTeX |
[hide private]
[frames] | no frames]

# Class LaTeX

source code

    Base --+
           |
     Current --+
               |
         Classic --+
                   |
                  LaTeX

Class for scanning LaTeX files for included files.

Unlike most scanners, which use regular expressions that just return the included file name, this returns a tuple consisting of the keyword for the inclusion ("include", "includegraphics", "input", or "bibliography"), and then the file name itself. Based on a quick look at LaTeX documentation, it seems that we need a should append .tex suffix for the "include" keywords, append .tex if there is no extension for the "input" keyword, but leave the file name untouched for "includegraphics." For the "bibliography" keyword we need to add .bib if there is no extension. (This need to be revisited since if there is no extension for an "includegraphics" keyword latex will append .ps or .eps to find the file; while pdftex will use other extensions.)

Instance Methods | [hide private]
latex_name(self, include) | source code
sort_key(self, include) | source code
find_include(self, include, source_dir, path) | source code
scan(self, node, path=`(``)`) | source code
Inherited from `Classic`: `__init__`, `find_include_names` Inherited from `Base`: `__call__`, `__cmp__`, `__hash__`, `__str__`, `add_scanner`, `add_skey`, `get_skeys`, `path`, `recurse_nodes`, `select` Inherited from `Base` (private): `_recurse_all_nodes`, `_recurse_no_nodes`

Method Details | [hide private]

### sort_key(self, include) | source code
Overrides: Classic.sort_key

### find_include(self, include, source_dir, path) | source code
Overrides: Classic.find_include

### scan(self, node, path=`(``)`) | source code
Overrides: Classic.scan