diff options
author | Robert Managan <managan1@llnl.gov> | 2008-10-07 18:39:19 (GMT) |
---|---|---|
committer | Robert Managan <managan1@llnl.gov> | 2008-10-07 18:39:19 (GMT) |
commit | df77b84392bf621b701cdb248c58b0780e5439de (patch) | |
tree | a286e02570aab9fef4c62974bd4c4dcb6fe9053a /src/engine/SCons/Tool/pdftex.py | |
parent | 856870a4151e82c4511b4ca2e77240685d10c4af (diff) | |
download | SCons-df77b84392bf621b701cdb248c58b0780e5439de.zip SCons-df77b84392bf621b701cdb248c58b0780e5439de.tar.gz SCons-df77b84392bf621b701cdb248c58b0780e5439de.tar.bz2 |
test/TEX/PDF_single_source.py
Test of generating several .pdfs from a list of .ps (new single_source setting)
test/TEX/LATEX2.py
Based on second half of LATEX. generate all .pdf's at once by giving a list of .tex files
test of single_source
src/engine/SCons/Scanner/LaTeX.py
Add test of changing an included file.
Add test of included file having no extension
src/engine/SCons/Scanner/LaTeX.py
Add lists of acceptable graphics extensions,
In the furture make this user configurable??
Scan for files in the paths stored in env['TEXINPUTS'] and env['ENV']['TEXINPUTS']
for people who may just input their environment...
Add function findENVPatDirs for this purpose
src/engine/SCons/Tool/pdf.py
add epstopdf action
Have to add it after the pdftex action so it is not the default.
Make builder single_source since each input produces one output
src/engine/SCons/Tool/pdftex.py
use tex_eps_emitter
call pdf.generate2 to add epstopdf action after the PDFLaTeXAction
src/engine/SCons/Tool/dvipdf.py
simplify coding that adds the source directory to the search path TEXPICTS
src/engine/SCons/Tool/dvips.py
Add single_source option since each ps file comes from one dvi file
src/engine/SCons/Tool/pdflatex.py
add .tex as a valid extension and switch emitters to tex_pdf_emitter
src/engine/SCons/Tool/tex.py
fix regular expressions ^[^%]* to ^[^%\n]* for multiline environment
add REs for \input or \include and \includegraphics
get graphics extensions from Scanner.LaTeX so they are defined in one place
move modify_env_var to Scanner.LaTeX since it is used there and easier to import it here
add FindFile routine to find a file given name, list of suffixes, paths, env
returns a node for the file.
add tex_eps_emitter and tex_pdf_emitter that call a core routine with
a different list of graphics extensions that can be handled by the
tool used (latex vs. pdflatex)
revamp feature test/suffix list into two lists and build the list used
to create sideeffects for each input file...
These tests now get applied to each included file so the whole source
tree is tested.
Get list of paths from env['ENV']['TEXINPUTS'] and env['TEXINPUTS']
if find we need a .pdf file and only have .eps or .ps set up the
.pdf as a target with the .eps as source...
change emitter to tex_eps_emitter
src/engine/SCons/Tool/latex.py
add .tex as a valid extension and switch emitters to tex_eps_emitter
Diffstat (limited to 'src/engine/SCons/Tool/pdftex.py')
-rw-r--r-- | src/engine/SCons/Tool/pdftex.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/pdftex.py b/src/engine/SCons/Tool/pdftex.py index 75c6bc9..a9d3f58 100644 --- a/src/engine/SCons/Tool/pdftex.py +++ b/src/engine/SCons/Tool/pdftex.py @@ -79,7 +79,11 @@ def generate(env): bld = env['BUILDERS']['PDF'] bld.add_action('.tex', PDFTeXLaTeXAction) - bld.add_emitter('.tex', SCons.Tool.tex.tex_emitter) + bld.add_emitter('.tex', SCons.Tool.tex.tex_pdf_emitter) + + # Add the epstopdf builder after the pdftex builder + # so pdftex is the default for no source suffix + pdf.generate2(env) env['PDFTEX'] = 'pdftex' env['PDFTEXFLAGS'] = SCons.Util.CLVar('-interaction=nonstopmode') |