summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Tool/tex.py
Commit message (Collapse)AuthorAgeFilesLines
* py2/3 remove rb from tex processing.William Deegan2017-03-191-6/+6
|
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-241-6/+0
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-101-6/+0
| |
* | Merged default branch into python3-port to keep it up to date.Gary Oberbrunner2014-08-231-6/+12
|\ \ | |/ | | | | | | Hand-updated a few things to keep them python3-safe, and handled several merge conflicts.
| * Fix the newglossary action to work with variantDirRobert Managan2014-08-121-1/+1
| |
| * Merged in rmanagan/scons/scons-fix-for-issue-2942 (pull request #132)Gary Oberbrunner2014-04-261-2/+5
| |\
| | * Improve support for biblatex package. Fix a case where we did not recognize ↵Robert Managan2014-04-251-2/+5
| | | | | | | | | | | | that auxiliary files would be made and hence we did not clean them
| * | add name.synctex.gz to list of side effect files and those to be cleanedRobert Managan2014-04-241-1/+4
| |/
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-311-0/+1
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-221-47/+47
|/
* Add separate biber action and add logic to call either bibtex or biber ↵Robert Managan2012-10-071-4/+18
| | | | depending on which is needed; the files created tell us which to call.
* Remove lines that were commented out instead of being deletedRobert Managan2012-09-161-4/+0
|
* Support auxiliary files created by \newglossary commandRobert Managan2012-09-161-4/+52
|
* Add support for using biber instead of bibtex.Robert Managan2012-06-141-2/+38
|
* Add support for the biblatex package; search for new keywards to get side ↵Robert Managan2012-06-141-7/+9
| | | | effects and dependencies right
* Add support for Latex's multibib package and in the process generalize how ↵Rob Managan2012-02-191-7/+31
| | | | we check aux files for processing
* Update path information for OSX.Robert Managan2011-09-061-0/+33
| | | | | | If one of the tools that use TeX applications is generated add the paths in /etc/paths and /etc/paths.d version 10.5 (Leopard)
* Since latex will add valid etension when it looks for files weRobert Managan2011-05-181-18/+19
| | | | | | need to change os.path.exists() to os.path.isfile() to handle the case where we have a directory named foo and a file foo.tex. Then an \input{foo} will not find the directory instead of the file
* Add support for the bibunits package. This should help thesis writers.Robert Managan2010-09-121-22/+40
|
* WHen checking the .tex file for which side effects it generates alwaysRobert Managan2010-08-191-1/+2
| | | | | | | add them if the .tex file is generated by another builder and is not yet created. If the file exists then only add the side effects if they will be created.
* Merged revisions 4727-4729,4731-4938,4940-5028 via svnmerge fromSteven Knight2010-06-151-9/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/branches/pending ........ r4942 | stevenknight | 2010-06-03 12:41:20 -0700 (Thu, 03 Jun 2010) | 13 lines Isseu 2641: Latest drop of the TestCmd infrastructure, v. 1.3, including: * Support for test timeouts. * Ability to set separate match_stdout and match_stderr functions. * Ability to set separate diff_stdout and diff_stderr functions. * Static methods for the various underlying match* and diff* functionality. * Ability to get at the various match* and diff* functions by attribute name. * Got rid of checks for difflib now that Python 2.3 is the floor (for this infrastructure, anyway). Ripple effects in two test scripts. Added upstream unit test modules (QMTest/Test{Cmd,Common}Tests.py). Added a README.txt file. ........ r4943 | stevenknight | 2010-06-03 13:00:31 -0700 (Thu, 03 Jun 2010) | 2 lines Grab the correct TestCmd files with the updated version number. ........ r4946 | managan | 2010-06-04 09:39:20 -0700 (Fri, 04 Jun 2010) | 4 lines On Windows add a '/D' to the command line so it recognizes drive letters in the source or target file paths ........ r4947 | managan | 2010-06-04 09:51:48 -0700 (Fri, 04 Jun 2010) | 5 lines The scanner was not parsing the dependencies in \includegraphics commands when there was whitespace (including carriage returns) in the command. While we need a better long term fix this covers this concern. ........ r4948 | managan | 2010-06-04 11:13:12 -0700 (Fri, 04 Jun 2010) | 3 lines Dropped an import line that is needed by the last commit of mine for Windows depenedant option on latex command lines ........ r4949 | managan | 2010-06-04 12:27:48 -0700 (Fri, 04 Jun 2010) | 7 lines Some latex packages break up commands where you normally could not by using a comment character at the end of the first line. Our current scanner broke on this and lost some dependecies. While we need general fix, this patch solves this problem ........ r4950 | managan | 2010-06-04 15:51:36 -0700 (Fri, 04 Jun 2010) | 5 lines Tweak how we handle comments within Latex source files when scanning and looking for dependencies. We were adding a space when a comment broke a line and we should not have. ........ r4984 | managan | 2010-06-07 09:37:40 -0700 (Mon, 07 Jun 2010) | 6 lines The multi-line_include-options test failed to check for the existence of latex. Added that so this test is skipped on systems without latex. ........
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-241-6/+1
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* Issue 2332 (preparation): refactor print statements so we canSteven Knight2010-04-061-7/+15
| | | | transition to using the Python 2.6 io.StringIO class.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-251-4/+3
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Back out post-2.0 code changes from trunk: r4643, r4642 r4640, r4637.Steven Knight2010-01-211-15/+12
| | | | | This change should itself be backed out before merge "pending" back into trunk.
* Somehow I managed to lose this change in a commentRobert Managan2010-01-201-1/+1
|
* Update tex builder to handle the case where a \input{foo}Robert Managan2010-01-201-12/+15
| | | | | | command tries to work with a directory named foo instead of the file foo.tex. The builder now ignores a directory and continues searching to find the correct file.
* I got the order of the arguments wrong in a Clean() call I added to help fix tehRobert Managan2010-01-071-1/+1
| | | | auxiliary file problem.
* Change scanner to properly search for included file from theRobert Managan2010-01-041-3/+16
| | | | | | | | directory of the main file instead of the file it is included from. Also update the emitter to add the .aux file associated with \include{filename} commands. This makes sure the required directories if any are created for variantdir cases. Half of the patch from Stefan Hepp.
* Add a test for the case where a latex file uses \input{} to include theRobert Managan2009-11-251-8/+80
| | | | | | | | | | file that contains the documentclass command Add logic to is_LaTeX routine to search through included files until \documentclass is found Also added comments, converted comments at start of 2 routines into doc strings..
* Fix tex code to handle broken nomenclature package. (Fixes test failure on ↵William Deegan2009-09-161-2/+2
| | | | | | centos5 slave). Code by Rob Managan.
* As I set up the test case for the glossary and nomencl packagesRobert Managan2009-08-211-23/+31
| | | | | | | | | | | I found that when only one tool (say pdftex) is initialized that some of the actions for bibtex... are not created. Moved most common actions and environment settings to one routine in tex.py that the other text tools (pdftex, pdflatex, latex) call. Also fixed a typo in the nomenclature action setup. There was a '$' that should not have been there.
* Add test for glossaries package. and patch tex.pyRobert Managan2009-08-211-3/+42
| | | | to support it
* Move the definition of env['LATEXSUFFIXES'] from Defaults.py to theRobert Managan2009-08-061-0/+2
| | | | | | | various *tex.py generate functions. This is to avoid adding LATEXSUFFIXES to the environment when the tools are not loaded.
* Turns out that in my revamped TeX builder I was listing the .dvi orRobert Managan2009-07-221-5/+5
| | | | | | | | | | .pdf output file as a sideeffect since it is listed as an output file in the .fls file. This caused the message that there were two ways to build the file. In fixing it I have to exclude both the .dvi and .pdf target because some test decks produce both... THat hsoudl rarely happen in practice but It is better to handle that case.
* Update tex builder to use the -recorder option.Robert Managan2009-07-221-13/+38
| | | | | | | | | | | | | | | | | This was prompted because MikTeX, used on Windows, does not put the same information on files opened into the log file. The -recorder option gives a .fls file that is the same on all platforms. We still use the .log file contents to find warnings and errors that mean we need to rerun latex... Also add message about errors so user does not have to scroll up through all the latex output to find if there was an error. Update all tests to handle the new command line option. Add one more test on grpahics conversion.
* Issue 2401: Fix usage of comparison with None, patch from Jared GrubbGreg Noel2009-05-031-2/+2
|
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-091-0/+6
|
* Remove the feature that would build .pdf graphics filesRobert Managan2009-01-091-26/+5
| | | | | | | | | | | | | | | | | | from .eps files for the pdf latex builder That is if the .tex file has "\includegraphics{figure1}" and the file figure1.eps then when using the .DVI builder latex will find the file and all is fine. However, when using the .PDF builder pdflatex can not process .eps files and will fail. After this patch the user will need to add env.PDF('figure1.eps') Update two tests that used the old feature and would fail otherwise I could not come up with a way to test for a feature that is removed. That is, I can write a test that works before the update and fails after but not the other way around.
* Issue 2255: Handle scanning of UTF-8 and UTF-16 files. (Greg Spencer)Steven Knight2008-12-121-4/+4
|
* Accidently left a debug print in.Robert Managan2008-11-251-4/+5
|
* Add a test for the case of a .DVI build using a .eps graphics.Robert Managan2008-11-251-10/+20
| | | | | | Test that we don't make a .pdf file from the graphic. The patch also covers the case of requiring the graphics files I search for to have an extension so we don't try to build fig.eps from fig.eps...
* I found that my coding for automatically building .pdf files from .eps filesRobert Managan2008-11-121-1/+1
| | | | | | failed when the .tex file is in a subdirectory. I added a new test and made the one line fix.
* Python 1.5 and 2.1 compatibility: string methods, nested scopes.Steven Knight2008-11-121-1/+2
|
* This new test and emitter update recursively checks the whole source of theRobert Managan2008-10-301-37/+45
| | | | | | | | | | | latex document for commands that affect what side effect files will be created, and for graphics files that are included (so we can convert postscript to pdf if pdflatex is being run). Now that this is recursive we could tighten up on the side effect file list (e.g. a \makeindex with no \index commands won't make all the files we tell scons to expect as side effects) but I think that is asking for trouble if we mess it up.
* Python 1.5 compatibility.Steven Knight2008-10-081-1/+3
|
* Reset the default Verbose value to False.Steven Knight2008-10-071-1/+1
|
* test/TEX/PDF_single_source.pyRobert Managan2008-10-071-59/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* This patch removes setting the variable TEXPICTS in the tex tools andRobert Managan2008-09-301-1/+5
| | | | | | | | | | | | | | sets it in tee dvi2ps and dvipdf tools where it is needed. This means that we can reset it to the original value at the end of the tool. This is done by storing the .tex source file's path in the .dvi file's Node .attribute slot and retrieving it in the dvi2ps and dvipdf tools from the source. I also updated the list of graphics extensions in the Latex scanner I set up one function that gets called to run either dvi2ps or dvipdf after setting TEXPICTS.
* Change FUTURE markers to TODO(1.5) so we are all using the same style.Greg Noel2008-09-251-2/+2
|