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

Class LaTeX

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.)


Method Summary
  find_include(self, include, source_dir, path)
  latex_name(self, include)
  scan(self, node, path)
  sort_key(self, include)
    Inherited from Classic
  __init__(self, name, suffixes, path_variable, regex, *args, **kw)
    Inherited from Base
  __call__(self, node, env, path)
This method scans a single object.
  __cmp__(self, other)
  __hash__(self)
  __str__(self)
  add_scanner(self, skey, scanner)
  add_skey(self, skey)
Add a skey to the list of skeys
  get_skeys(self, env)
  path(self, env, dir, target, source)
  select(self, node)

Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 http://epydoc.sf.net