rubber-1.1/0000755000175000017500000000000011430775611011323 5ustar manumanurubber-1.1/MANIFEST.in0000644000175000017500000000033411430775442013063 0ustar manumanuinclude *.in include src/version.py.in exclude src/version.py include configure include README include NEWS include COPYING include doc/Makefile include doc/rubber.texi recursive-include doc *.1 recursive-include data * rubber-1.1/COPYING0000644000175000017500000004311011430775442012357 0ustar manumanu GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. rubber-1.1/data/0000755000175000017500000000000011430775611012234 5ustar manumanurubber-1.1/data/_rubber0000644000175000017500000000544511430775442013611 0ustar manumanu#compdef rubber rubber-pipe rubber-info # Original by Emmanuel Hainry # Updated by Emmanuel Beffara local _rubber_version _rubber_path _rubber_modules eval $(rubber --version | sed 's/^.* \([^ ]*\): */_rubber_\1=/') if [[ ${_rubber_version#0} != $_rubber_version ]]; then _rubber_modules=( $(ls $_rubber_path/rubber/modules | sed -n 's/^\([^_].*\)\.py$/\1/p') ) else _rubber_modules=( $(ls $_rubber_path/modules | sed -n 's/.rub$//p') $(ls $_rubber_path/rubber/rules/latex | sed -n 's/^\([^_].*\)\.py$/\1/p') ) fi _rubber_arguments () { _arguments -s \ \*{-c,--command}'=[run the directive CMD before parsing]:command' \ \*{-e,--epilogue}'=[run the directive CMD after parsing]:command' \ {-z,--gzip}'[compress the final document]' \ '(- *)'{-h,--help}'[show help]' \ '--into=[go to directory DIR before compiling]:directory:_files -/' \ {-l,--landscape}'[change paper orientation (if relevant)]' \ {-n,--maxerr}'=[display at most NUM errors]:num' \ \*{-m,--module}'=[use module]:module:($_rubber_modules)' \ '--only=[only include the specified SOURCES]:sources' \ \*{-o,--post}'=[postprocess with module]:postprocessor:($_rubber_modules)' \ {-d,--pdf}'[produce PDF output instead of DVI]' \ {-p,--ps}'[produce a PostScript document]' \ {-q,--quiet}'[suppress messages]' \ \*{-r,--read}'[read additional directives from a file]:directives files:_files' \ {-s,--short}'[display errors in a compact form]' \ \*{-I,--texpath}'=[add DIR to the search path for LaTeX]:tex path:_files -/' \ \*{-v,--verbose}'[increase verbosity]' \ '--version[print version information and exit]' "$@" } case "$service" in rubber) _rubber_arguments \ '--clean[remove produced files instead of compiling]' \ {-f,--force}'[force at least one compilation]' \ '--inplace[compile the documents from their source directory]' \ \*{-W,--warn}'=[report warnings of the given TYPE]:warnings:(all boxes misc refs)' \ '*:LaTeX files:_files -g \*.\(tex\|dtx\|lhs\|w\)' return 0 ;; rubber-pipe) _rubber_arguments \ {-k,--keep}'[keep the temporary files after compiling]' \ \*{-W,--warn}'=[report warnings of the given TYPE]:warnings:(all boxes misc refs)' return 0 ;; rubber-info) _rubber_arguments \ '--boxes[report overfull and underfull boxes]' \ '--check[report errors or warnings default action]' \ '--deps[show the target file s dependencies]' \ '--errors[show all errors that occured during compilation]' \ '--refs[show the list of undefined references]' \ '--warnings[show all LaTeX warnings]' \ ':LaTeX file:_files -g \*.\(tex\|dtx\|lhs\|w\)' return 0 ;; esac return 1 rubber-1.1/data/modules/0000755000175000017500000000000011430775611013704 5ustar manumanurubber-1.1/data/modules/omega.rub0000644000175000017500000000004411430775442015506 0ustar manumanuset program lambda set engine Omega rubber-1.1/data/modules/aleph.rub0000644000175000017500000000004311430775442015506 0ustar manumanuset program lamed set engine Aleph rubber-1.1/data/modules/ntheorem.rub0000644000175000017500000000002211430775442016233 0ustar manumanuclean $target.thm rubber-1.1/data/modules/etex.rub0000644000175000017500000000004411430775442015363 0ustar manumanuset program elatex set engine e-TeX rubber-1.1/data/modules/minitoc-hyper.rub0000644000175000017500000000001711430775442017205 0ustar manumanumodule minitoc rubber-1.1/data/modules/revtex4.rub0000644000175000017500000000001611430775442016016 0ustar manumanumodule natbib rubber-1.1/data/modules/hyperref.rub0000644000175000017500000000006011430775442016240 0ustar manumanuwatch $target.out clean $target.out $target.brf rubber-1.1/data/modules/beamer.rub0000644000175000017500000000014611430775442015654 0ustar manumanuwatch $target.head $target.nav $target.snm clean $target.head $target.nav $target.snm module hyperref rubber-1.1/data/rules.ini0000644000175000017500000000455511430775442014102 0ustar manumanu; This is the rule file for Rubber. ; ; Each rule is introduced by an identifier in square brackets and contains ; entries of the form "key = value". See the texinfo documentation for a ; precise description of the entries. ;-- XFig figures [fig2dev-vec] target = (.*)\.(eps|pdf) source = \1.fig cost = 0 rule = fig2dev [fig2dev-bmp] target = (.*)\.png source = \1.fig cost = 10 rule = fig2dev [fig2dev-tex] target = (.*)\.(eps|pstex|pdf|pdftex)_t source = \1.fig cost = 0 rule = fig2dev ;-- Metapost figures [mpost] target = (.*)\.[0-9]+ source = \1.mp cost = 0 rule = mpost ;-- Rules using "convert" (from ImageMagick) [convert-vec-vec] target = (.*)\.(ps|eps|pdf|epdf) source = \1.{ps,eps,pdf,epdf,wmf} cost = 2 rule = shell command = convert $source $target message = converting $source into $target [convert-bmp-vec] target = (.*)\.(ps|eps|pdf|epdf) source = \1.{bmp,gif,jbg,jbig,pct,pcx,pgm,pict,png,pnm,ppm,tga,tif,tiff,xbm,xcf,xpm} cost = 8 rule = shell command = convert $source $target message = converting $source into $target [convert-lossy-vec] target = (.*)\.(ps|eps|pdf|epdf) source = \1.{jpeg,jpg} cost = 11 rule = shell command = convert $source $target message = converting $source into $target [convert-bmp-bmp] target = (.*).(gif|png|tif|bmp|tga|pcx) source = \1.{bmp,gif,jbg,jbig,pct,pcx,pgm,pict,png,pnm,ppm,tga,tif,tiff,xbm,xcf,xpm} cost = 2 rule = shell command = convert $source $target message = converting $source into $target ; more rules ? ;-- Bounding box extraction from gzipped EPS (built-in rule) [eps_gz] target = (.*\.e?ps).bb source = \1.gz cost = 0 rule = eps_gz ;-- Miscellaneous graphics converters [epstopdf] target = (.*)\.pdf source = \1.eps cost = 1 rule = shell command = epstopdf --outfile=$target $source message = converting $source to PDF [jpeg2ps] target = (.*)\.eps source = \1.{jpeg,jpg} cost = 10 rule = shell command = jpeg2ps -o $target $source message = converting $source to EPS [sam2p] target = (.*)\.(ps|eps|pdf) source = \1.{bmp,gif,jpeg,jpg,lbm,pbm,pcx,pdf,pgm,png,pnm,ppm,ps,tga,tif,tiff,xpm} cost = 7 rule = shell command = sam2p $source $target message = converting $source into $target [dia] target = (.*)\.eps source = \1.dia cost = 1 rule = shell command = dia --export $target $source message = converting $source to EPS ;-- Source conversion with lhs2TeX [lhs2TeX] target = (.*)\.tex source = \1.lhs cost = 0 rule = lhs2TeX rubber-1.1/NEWS0000644000175000017500000001314011430775442012023 0ustar manumanuVersion 1.1 (2006-03-17) Features: - Support for user-defined conversion rules. - Support for xindy and sam2p. - Improved fig2dev support. - Experimental cache system. Bugfixes: - Better parsing of log files. - Improved error reporting (including for BibTeX and Metapost). - Better handling of verbatim environments. - Many other fixes. Version 1.0 (2005-07-11) Features: - More intelligent graphics conversion rules. - New command-line options "--inplace" and "--into". - New command-line option "-W" to report warnings. - New command-line option "--only" for partial compilation. - A completion function for Zsh. Bugfixes: - Modules "index" and "verbatim" fixed. - Fixed path searching in Metapost. - Fixed paper size handling (in dvips, dvipdfm, ps2pdf). - Better handling of aux files from \include'd sources. Version 0.99.8 (2004-08-27) Features: - Support for e-TeX and Omega. - Support for package "index". - New directive "onchange". - Support for \includeonly. - Option --maxerr to display only the first errors. Bugfixes: - Portability improvement (for Cygwin and hopefully others). - Improved the semantics of directives. Version 0.99.7 (2004-02-20) Features: - Support for VTeX. - Directives "watch" and "clean" for tables of contents and such. - Support for graphics conversion using ImageMagick (lots of new formats). - Support for packages "moreverb", "verbatim", "hyperref", "beamer". - Support for post-processing through dvipdfm. - New frontend "rubber-pipe" with the behaviour of a filter. - New module "expand" to expand inputs and bibliographies. - Support for Literate Haskell code (with lhs2TeX). - Error messages are now issued in the style of GNU compilers. - Compilation by pdfTeX into DVI. - Gzipping of the final document, command-line option "-z". Bugfixes: - Error-like messages from pdfTeX are now correctly handled. - Modules are handled correctly when compiling several documents at once. - Better dependency analysis for MetaPost. - Macro arguments can now contain line breaks. Packaging: - Introduced Texinfo documentation. Version 0.99.6 (2003-04-09) Features: - Handling of \graphicspath. - Conversion of XFig figures to combined EPS/LaTeX. - Parsing of MetaPost log files for errors. - Automatic JPEG to EPS conversion (with jpeg2ps). - Support for packages "epsfig" and "natbib". - Rubber directives in source comments. - Directives for specifying paths for LaTeX and BibTeX. - Directives to control the operation of Makeindex. - Paper size specification (for dvips). Bugfixes: - The action "--deps" in rubber-info now lists each dependency only once. - Kpathsea messages are now reported also during compilation. - Avoided some crashes due to file name tracking in rubber-info. - Fixed and improved CWEB support. Version 0.99.5 (2002-12-04) Features: - New format in error and information display. - The command line now provides a meaningful return code. - New "--short" command-line switch for compact error reports. - New (default) action "--check" in rubber-info. - Parsing of BibTeX log files for errors. Bugfixes: - Made the calls to LaTeX and others more portable. - Better date computations (this caused useless compilations). - Avoid crash whith documents with cyclic file inclusion. - The action "--deps" now lists all files the document depends on. Version 0.99.4 (2002-11-06) Features: - Handle correctly multiple .aux files produced by \include. - Support for package "minitoc". - Extraction of bounding boxes from gzipped figures (eps.bb from eps.gz). - Watch for changes in .aux files to avoid useless recompilations. Bugfixes: - Behaves better when the execution of external programs fails. - Made the call to epstopdf(1) more portable. Miscellaneous: - Introduction of the RPM package. - External program execution now requires Unix-specific features. Version 0.99.3 (2002-10-12) Features: - New actions "--refs" and "--warnings" in rubber-info. - Support for XFig figures (with conversion to EPS, PDF and PNG). Bugfixes: - Display problem fixed in Metapost support. - Better parsing of \includegraphics (now handles keyval options). Version 0.99.2 (2002-09-06) Features: - Dependency analysis for Metapost. - New command-line switch "--force" to force recompiling. Bugfixes: - Parsing of starred macros. - Support for compilation of a document from a different directory. - Improved source file name tracking in log files. Packaging: - Included the man page for rubber-info. - Better dependencies for Debian. - Introduction of TODO and ChangeLog. Version 0.99.1 (2002-06-21) Features: - Initial support for "graphics" and "graphicx" (dependency analysis). - Allowed the processing of several documents with one command line. - Handling of the keyboard interrupt (control-C). - Source file name tracking for error reports. - Page number tracking in rubber-info. - Introduction of the modular support for graphics. Bugfixes: - Better error extraction from log files. - Allowed empty suffix for all graphics file names. - Better source searching algorithm. Packaging: - Introduced the Debian package. - Added the description of the modules in the man pages. Version 0.99 (2002-05-31) This was actually the first version of Rubber. It was a rewrite in Python of the now-deceased Eel (that was written in shell script). rubber-1.1/setup.py0000644000175000017500000001263111430775442013042 0ustar manumanu#!/usr/bin/env python # # This is the setup script for Rubber. It acts both as a part of the # configuration script a la autoconf and as a setup script a la Distutils. # # As the rest of Rubber, this script is covered by the GPL (see COPYING). # (c) Emmanuel Beffara, 2002--2006 import re import string import sys import os.path, glob # The module `settings' is produced by the configuration script. try: import settings except ImportError: pass ### system checking def do_check (): """ Check that everything required for Rubber is present. """ print "The configure script is running, good." try: import distutils.core print "The Distutils are installed, good." except ImportError: print """ I could not import distutils.core. You need the Distutils to install Rubber. (You don't need them to run Rubber, so you can try configuring and installing it by hand if you are brave.)""" return 1 return 0 ### substitution of variables in files def expand_vars (subst, str): """ Substitute all occurences of the pattern ${foo} in the string with the value of the key associated key in the dictionary `subst' until there are no such patterns any more. """ pattern = re.compile("\${(" + string.join(subst.keys(), "|") + ")}") def repl (match, subst=subst): return subst[match.group(1)] str2 = pattern.sub(repl, str) while str != str2: str = str2 str2 = pattern.sub(repl, str) return str def make_files (subst, files): """ Apply the given substitution (passed as a dictionary) in the specified files. The list enumerates the target files, for each target `foo' the source is named `foo.in' using standard convention. The convention for substitutions is the following: - @bar@ --> sub['bar'] - @@quux@@ --> sub['quux'] where all '${xyz}' are replaced by sub['xyz'] recursively """ import re import string words = string.join(subst.keys(), "|") pat1 = re.compile("@(" + words + ")@") pat2 = re.compile("@@(" + words + ")@@") def repl (match, subst=subst): return subst[match.group(1)] def full_repl (match, subst=subst): return expand_vars(subst, subst[match.group(1)]) for file in files: if not os.path.exists(file + ".in"): continue print "writing %s..." % file input = open(file + ".in") output = open(file, "w") for line in input.readlines(): output.write(pat1.sub(repl, pat2.sub(full_repl, line))) input.close() output.close() ### distutils setup def do_setup (): """ Run the setup() function from the distutils with appropriate arguments. """ from distutils.core import setup try: moddir = expand_vars(settings.sub, settings.sub["moddir"]) mandir = expand_vars(settings.sub, settings.sub["mandir"]) infodir = expand_vars(settings.sub, settings.sub["infodir"]) except NameError: moddir = "rubber" mandir = "man" infodir = "info" setup( name = "rubber", version = settings.sub["version"], description = "an automated system for building LaTeX documents", long_description = """\ This is a building system for LaTeX documents. It is based on a routine that runs just as many compilations as necessary. The module system provides a great flexibility that virtually allows support for any package with no user intervention, as well as pre- and post-processing of the document. The standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex, makeindex. A good number of standard packages are supported, including graphics/graphicx (with automatic conversion between various formats and Metapost compilation).\ """, author = "Emmanuel Beffara", author_email = "manu@beffara.org", url = "http://rubber.sourceforge.net/", license = "GPL", packages = ["rubber", "rubber.converters", "rubber.latex_modules"], package_dir = {"rubber": "src"}, scripts = ["rubber", "rubber-info", "rubber-pipe"], data_files = [(moddir + "/modules", glob.glob("data/modules/*.rub")), (moddir, ["data/rules.ini"]), (mandir + "/man1", ["doc/man-en/rubber.1", "doc/man-en/rubber-info.1", "doc/man-en/rubber-pipe.1"]), (mandir + "/fr/man1", ["doc/man-fr/rubber.1", "doc/man-fr/rubber-info.1", "doc/man-fr/rubber-pipe.1"]), (infodir, ["doc/rubber.info"])] ) ### command line # This is mainly the standard command line from the distutils, except that we # add specific commands for the configure script, namely: # - `check' for checking if the system is appropriate # - `config' to generate configuration-specific files # - `inst' to install the package according to the configuration's settings # (here, the install prefix is the next argument) if len(sys.argv) > 1: cmd = sys.argv[1] if cmd == "check": ret = do_check() sys.exit(ret) elif cmd == "config": sub = settings.sub make_files(sub, [ "rubber.spec", "Makefile", "doc/Makefile", "src/version.py"]) print (""" Rubber is now configured. It will use the following Python interpreter: %s It will be installed in the following directories: the main script: %s the modules: %s the man pages: %s the info pages: %s (unless you specify otherwise when running `make install')""" % (expand_vars(sub, sub["python"]), expand_vars(sub, sub["bindir"]), expand_vars(sub, sub["moddir"]), expand_vars(sub, sub["mandir"]), expand_vars(sub, sub["infodir"]))) elif cmd == "inst": sub = settings.sub sub["prefix"] = sys.argv[2] del sys.argv[2] sys.argv = sys.argv + ["--prefix", sub["prefix"]] sys.argv[1] = "install" do_setup() else: do_setup() else: do_setup() rubber-1.1/doc/0000755000175000017500000000000011430775611012070 5ustar manumanurubber-1.1/doc/man-fr/0000755000175000017500000000000011430775611013250 5ustar manumanurubber-1.1/doc/man-fr/rubber-pipe.10000644000175000017500000000002211430775442015542 0ustar manumanu.so man1/rubber.1 rubber-1.1/doc/man-fr/rubber-info.10000644000175000017500000000554211430775442015554 0ustar manumanu.TH RUBBER-INFO 1 .SH NAME rubber-info \- extraction d'information de documents LaTeX .SH SYNOPSIS .B rubber-info .RI [ options ] .RI [ action ] .I source .SH DESCRIPTION Rubber-info est un utilitaire destiné à extraire divers types d'information d'un document LaTeX. L'information peut être tirée des sources (par exemple pour l'analyse de dépendances) ou des logs de compilation (pour extraire erreurs et avertissements). Cet utilitaire est un complément au système de compilation .BR rubber (1). Les options de ligne de commande sont celles utilisées par .BR rubber (1) plus l'une des actions décrites plus bas. .SH ACTIONS L'une des options de ligne de commande suivantes doit être spécifiée, afin de choisir quel information extraire. Bien entendu, les actions qui extraient des informations des logs ne peuvent êtres effectuées que si une compilation a effectivement eu lieu. Si aucune de ces actions n'est spécifiée, c'est .I \-\-check qui est utilisée. .TP .B \-\-boxes Extrait du fichier log les emplacements dans le source où la compilation a produit des boîtes mal construites (ce sont les fameux overfull et underfull \\hbox et \\vbox). .TP .B \-\-check Affiche les erreurs de compilation s'il y en a, sinon énumère les références non définies s'il y en a, sinon affiche les avertissements et les boîtes mal construites. C'est l'action par défaut. .TP .B \-\-deps Analyse les sources et produit une liste (séparée par des espaces) des noms de tous les fichiers dont dépend le document et que Rubber ne peut pas reconstituer. .TP .B \-\-errors Extrait du fichier log la liste des erreurs qui sont survenues durant la dernière compilation. .TP .B \-h, \-\-help Affiche la liste de toutes les options disponibles et quitte. .TP .B \-\-refs Renvoie la liste des références non définies ou définies plusieurs fois (i.e. les \\ref qui ne correspondent pas à exactement un \\label). .TP .B \-\-rules Analyse les sources et produit une liste de règles de dépendances. Une règle est produite pour chaque fichier intermédiaire qui serait construit par .BR rubber . Les règles sont formattées dans le style des Makefile. .TP .B \-\-version Affiche le numéro de version et termine. .TP .B \-\-warnings Affiche stupidement la liste de tous les avertissements de LaTeX, c'est-à-dire toutes les lignes du fichier log qui contiennent "Warning". .PP .SH BUGS Il y en a surement quelques uns... Cette page se rapporte à la version 1.1 de Rubber. Le programme et cette documentation sont maintenus par Emmanuel Beffara . La page web du programme se trouve à l'adresse http://www.pps.jussieu.fr/~beffara/soft/rubber/. .SH VOIR AUSSI La documentation complète de .B rubber est maintenue en tant que manuel en Texinfo. Si les programmes .B info et .B rubber sont installés correctement sur votre système, la commande .IP .B info rubber .PP devrait vous donner accès au manuel complet (en anglais). rubber-1.1/doc/man-fr/rubber.10000644000175000017500000004700011430775442014616 0ustar manumanu.TH RUBBER 1 .SH NAME rubber \- un système de compilation de documents LaTeX . .SH SYNOPSIS .B rubber .RI [ options ] .I sources ... .br .B rubber\-pipe .RI [ options ] . .SH DESCRIPTION . Rubber est un emballage autour de LaTeX est des programmes associés. Son but est, étant donné un fichier source LaTeX, de le compiler tant que nécessaire et d'exécuter des programmes annexes comme BibTeX, makeindex, Metapost, etc. pour produire des fichiers de données si besoin est. .PP La commande .B rubber construit complètement les documents spécifiés. Les sources passés en argument peuvent être des sources LaTeX (auquel cas le suffixe .tex peut être omis), ou des fichiers dans un format que Rubber sait traduire vers LaTeX (pour le moment, cela signifie un source CWEB ou Literate Haskell). Si une compilation échoue, l'ensemble du processus est interrompu, y compris la compilation des documents suivants sur la ligne de commande, et .B rubber renvoie un code de retour non nul. .PP La commande .B rubber\-pipe fait la même chose avec un seul document, mais le source LaTeX est lu sur l'entrée standard et le document compilé est envoyé sur la sortie standard. .PP Certaines informations ne peuvent pas être extraites du source LaTeX. C'est le cas par exemple des chemins d'accès aux fichiers (qui peuvent être spécifiés par les variables d'environnement comme .BR TEXINPUTS ), ou encore le style d'index à utiliser avec Makeindex. Pour remédier à ce problème, il est possible d'ajouter de l'information pour Rubber dans les commentaires des sources LaTeX, voir pour cela la section .BR DIRECTIVES . . .SH OPTIONS Les options servent soit à choisir l'action à effectuer, soit à configurer le processus de compilation. Elles sont essentiellement les mêmes pour .B rubber et .BR rubber\-pipe . Les options sont lues selon les conventions à la GNU Getopt. .TP .B \-b, \-\-bzip2 Compresse le document final (au format .IR bzip2 ). Cette option équivaut à écrire .I \-o bzip2 après toutes les autres options. .TP .B \-\-cache Utiliser le système (expérimental) de cache. Cette fonction utilise un fichier .I rubber.cache dans le répertoire courant pour stocker le résultat de l'analyse des sources, de sorte que les compilations suivantes sont accélérées. .TP .B \-\-clean Efface tous les fichiers produits par la compilation au lieu de construire le document. Cette option n'est présente que dans .BR rubber . Elle considère la compilation qui aurait eu lieu avec les autres arguments, c'est-à-dire que «\ rubber \-\-clean toto\ » n'effacera pas toto.ps, alors que «\ rubber \-\-ps \-\-clean toto\ » le fera. .TP .BI \-c,\ \-\-command \ Exécute la commande (ou directive) spécifiée .I avant d'analyser les sources. Voir la section .B DIRECTIVES pour plus de détails. .TP .BI \-e,\ \-\-epilogue \ Exécute la commande (ou directive) spécifiée .I après l'analyse des sources. Voir la section .B DIRECTIVES pour plus de détails. .TP .B \-f, \-\-force Force au moins une compilation du source. Ceci peut être utile, par exemple, si une dépendance inhabituelle a été modifiée (par exemple un package dans un répertoire système). .TP .B \-z, \-\-gzip Compresse le document final (au format .IR gzip ). Cette option équivaut à écrire .I \-o gz après toutes les autres options. .TP .B \-h, \-\-help Affiche la liste de toutes les options disponibles et quitte. .TP .B \-\-inplace Va dans le répertoire du fichier source avant la compilation, de sorte que les fichiers produits arrivent au même endroit que les sources. .TP .BI \-\-into \ Va dans le répertoire spécifié avant la compilation, de sorte que les résultats de compilation y soient produits, au lieu d'être placés dans le répertoire courant. .TP .BI \-\-jobname \ Spécifie le nom de job à utiliser. Ceci change le nom des fichiers produits et ne s'applique qu'au premier document de la ligne de commande. .TP .B \-k, \-\-keep Cette option est utile dans .B rubber\-pipe uniquement. Avec cette option, les fichiers temporaires ne seront pas effacés après la compilation du document et l'envoi du résultat sur la sortie standard. Le document temporaire est nommé rubtmpX.tex, où X est un nombre tel qu'aucun fichier de ce nom n'existe au départ. .TP .B \-l, \-\-landscape Produit un document orienté en paysage. Cette option n'a d'effet qu'avec .B dvips et .BR dvipdfm . .TP .BI \-n,\ \-\-maxerr \ Définit le nombre maximum d'erreurs affichées. Par défaut, au plus 10 erreurs sont rapportées, l'option .I \-n \-1 les affiche toutes. .TP .BI \-m,\ \-\-module \ [: ] Utilise le module spécifié en plus des packages du document. Des arguments peuvent être passés au module en les ajoutant après un signe deux-points, ils correspondent aux options du package dans LaTeX. Le module est chargé .I avant l'analyse du document. .TP .BI \-\-only \ Compile le document partiellement, en n'incluant que les sources spécifiés. Le fonctionnement consiste à ajouter un appel à \(rsincludeonly sur la ligne de commande. L'argument est une liste de noms de fichiers séparés par des virgules. .TP .BI \-o,\ \-\-post \ [: ] Utilise le module spécifié en tant que post-processeur. Cette option est similaire à .I \-m mais elle charge le module .I après l'analyse du document. .TP .B \-d, \-\-pdf Produit un document PDF. Si cette option apparaît après .I \-\-ps (par exemple sous la forme .IR \-pd ) elle est synonyme de .IR \-o\ ps2pdf , sinon elle agit comme .IR \-m\ pdftex , pour compiler avec pdfLaTeX au lieu de LaTeX. .TP .B \-p, \-\-ps Traite le fichier DVI obtenu après compilation avec .BR dvips (1) afin de produire un document PostScript. Cette option est synonyme de .IR \-o\ dvips , elle ne peut pas être utilisée après .IR \-\-pdf . .TP .B \-q, \-\-quiet Diminue la quantité de messages affichés. C'est l'inverse de .IR \-v . .TP .BI \-r,\ \-\-read \ Lire des directives supplémentaires dans le fichier spécifié avant l'analyse des sources (voir aussi la directive «\ read\ »). .TP .B \-S, \-\-src\-specials Active l'insertion de "specials" indiquant les positions dans le code source, si le compilateur le permet. Cette option équivaut à fixer la variable .I src-specials à .IR yes . .TP .B \-s, \-\-short Formate les messages d'erreur de LaTeX de façon compacte (une erreur par ligne). .TP .BI \-I,\ \-\-texpath \ Ajoute le répertoire spécifié au chemin de recherche de fichiers de TeX. .TP .B \-v, \-\-verbose Incrémente le degré de détail dans les messages affichés. Les niveaux existants vont de 0 à 4, le niveau par défaut est 1 pour .B rubber et 0 pour .BR rubber\-pipe . Attention, dire .I \-vvv rend Rubber très bavard. .TP .B \-\-version Affiche le numéro de version et termine. .TP .BI \-W,\ \-\-warn \ Rapporter les avertissements d'un type donné, s'il n'y a pas eu d'erreur de compilation. Les types disponibles sont: .B boxes (boîtes mal construites), .B refs (références non définies ou définies plusieurs fois), .B misc (les autres messages) et .B all pour rapporter tous les messages. .PP . .SH MODULES L'action de Rubber est influencée par des modules. Les modules s'occupent des fonctionnalités de packages et de programmes auxiliaires. . .SS Packages Pour chaque package qu'un document utilise, Rubber recherche un module de même nom pour effectuer les opérations que ce package peut nécessiter en plus de la compilation par LaTeX. Des modules peuvent être ajoutés à ceux fournis par défaut pour ajouter de nouvelles fonctionnalités (c'est d'ailleurs un intérêt du système modulaire). Les modules standard sont les suivants: .TP .B beamer Ce module s'occupe des fichiers .head de Beamer de la même façon que pour les autres tables des matières. .TP .B bibtex S'occupe de traiter la bibliographie du document avec BibTeX lorsque c'est nécessaire. Ce module est chargé automatiquement lorsque le document contient la macro \(rsbibliography (voir aussi dans .B DIRECTIVES pour les options). .TP .B combine Le package combine sert à rassembler plusieurs documents LaTeX en un seul, et ce module s'occupe de gérer les dépendances dans ce cas. .TP .B epsfig Ce module gère l'inclusion de figures pour les documents qui utilisent l'ancienne méthode avec \(rspsfig. Il s'agit en fait d'une interface pour le module graphics, voir celui-ci pour les détails. .TP .B graphics, graphicx Ces modules identifient les fichier graphiques inclus par le document et de les considèrent comme des dépendances à la compilation. Ils utilisent en plus certaines règles pour construire ces fichiers. Voir la documentation en info pour plus de détails. .TP .B hyperref S'occupe des fichiers supplémentaires que produit ce package dans certains cas. .TP .B index, makeidx, nomencl Traite les index et nomenclatures du document avec .BR makeindex (1) lorsque c'est nécessaire (voir dans .B DIRECTIVES pour les options). .TP .B minitoc, minitoc-hyper Lors du nettoyage, supprime les fichiers supplémentaires produits pour la construction de tables des matières partielles. .TP .B moreverb, verbatim Ajoute les fichiers inclus par \(rsverbatiminput et les macros similaires à la liste des dépendances. .TP .B multibib S'occupe des bibliographies supplémentaires créées par ce package, et efface les fichiers associés lors du nettoyage. .TP .B natbib Peut lancer une compilation supplémentaire pour résoudre des références. .TP .B xr Ajoute les fichiers .aux utilisés pour les références externes à la liste des dépendances, afin que la compilation ait lieu lorsque les documents externes sont modifiés. .PP . .SS Pré-traitements Les modules suivants sont fournis pour l'utilisation de programmes qui produisent un source LaTeX à partir de formats différents: .TP .B cweb Ce module sert à exécuter .BR cweave (1) si nécessaire avant le processus de compilation pour produire le source LaTeX. Ce module est chargé automatiquement si le fichier spécifié sur la ligne de commande a .B .w pour suffixe. .TP .B lhs2TeX Ce module utilise le préprocesseur .B lhs2TeX pour produire le source LaTeX à partir d'un programme en Literate Haskell. Il est utilisé automatiquement si le nom du fichier d'entrée se termine par .BR .lhs . .PP . .SS Traitement après compilation Les modules suivants sont fournis pour effectuer diverses transformations après la compilation. L'ordre dans lequel ces modules sont utilisés est important, par exemple pour effectuer une série de transformations comme .RS toto.tex \(-> toto.dvi \(-> toto.ps \(-> toto.pdf \(-> toto.pdf.gz .RE il faut charger les modules .BR dvips , .B ps2pdf et .B gz dans cet ordre, par exemple avec la ligne de commande .RS rubber \-p \-o ps2pdf \-z toto.tex .RE .TP .B bzip2 Produit une version du document final compressée avec .BR bzip2 (1). .TP .B dvipdfm Lance .BR dvipdfm (1) à la fin de la compilation pour produire un document PDF. .TP .B dvips Lance .BR dvips (1) à la fin de la compilation pour produire un document PostScript. Ce module est aussi chargé par l'option de ligne de commande .IR \-\-ps . .TP .B expand Produit un source LaTeX à partir du document principal, en remplaçant les macros \(rsinput par les fichiers inclus, les macros de bibliographies par la bibliographie produite par .BR bibtex (1), et les classes et packages locaux par leur source. Si le fichier principal est .IR foo.tex , le fichier développé sera nommé .IR foo-final.tex . Voir la documentation en info pour plus de détails. .TP .B gz Produit une version du document final compressée avec .BR gzip (1). .TP .B ps2pdf Lorsque la compilation produit un document PostScript (par exemple en utilisant le module .BR dvips ), convertit ce document en PDF avec .BR ps2pdf (1). .PP . .SS Choix du compilateur Les modules suivants servent à changer de compilateur LaTeX: .TP .B aleph Utilise Aleph au lieu de TeX, c'est-à-dire compile le document avec .BR lamed (1) au lieu de .BR latex . .TP .B etex Indique à Rubber d'utiliser .BR elatex (1) au lieu de .B latex pour compiler le document. .TP .B omega Utilise Omega au lieu de TeX, c'est-à-dire compile le document avec .BR lambda (1) au lieu de .BR latex . Si le module .B dvips est utilisé, il transformera le DVI avec la commande .BR odvips (1). Notez que si le package .B omega est utilisé par le document, ce module sera chargé automatiquement. .TP .B pdftex Indique à Rubber d'utiliser .BR pdflatex (1) au lieu de .BR latex pour compiler le document. Par défaut, cela a pour effet de produire un fichier PDF au lieu d'un DVI, mais si le module est chargé avec l'option .B dvi (par exemple en disant .IR \-m\ pdftex:dvi ) le document est compilé en DVI par .BR pdflatex . Ce module est aussi chargé par l'option de ligne de commande .IR \-\-pdf . .TP .B vtex Indique à Rubber d'utiliser le compilateur VTeX. Par défaut la commande .B vlatex est utilisée, pour produire une sortie en PDF. Avec l'option .B ps (par exemple en disant «\ rubber \-m vtex:ps toto.tex\ ») le compilateur utilisé sera .B vlatexp et le résultat sera un fichier PostScript. .PP . .SH DIRECTIVES Le fonctionnement automatique de Rubber se base sur la recherche de macros dans les sources LaTeX. Dans les cas où ce mécanisme n'est pas suffisant, il est possible d'ajouter des directives dans les commentaires des sources. Une directive est une ligne de la forme .RS % rubber: cmd args .RE La ligne doit commencer par un signe «\ %\ » puis une suite quelconque de «\ %\ » et d'espaces, puis le texte «\ rubber:\ » suivi d'espaces et d'un nom de commande, éventuellement suivi d'espaces et d'arguments. Les commandes disponibles sont les suivantes: .SS Directives générales .TP .BI alias \ \ Déclare la macro LaTeX .I nom1 comme équivalente à .IR nom2 . Ceci peut être utile quand on définit une macro personnelle autour d'une macro connue de Rubber. .TP .BI clean \ Indique que le fichier spécifié doit être effacé lors du nettoyage par .IR \-\-clean . .TP .BI depend \ Considère le fichier spécifié comme une dépendance à la compilation, sa date de modification sera vérifiée. .TP .BI make \ \ [ ] Déclare que le fichier spécifié doit être produit. Les options permettent de spécifier la façon de le produire: .BI from \ indique le nom du fichier source, .BI with \ indique la règle de conversion à employer. Par exemple, «\ make toto.pdf from toto.eps\ » indique que .I toto.pdf doit être produit à partir de .IR toto.eps , avec n'importe quelle règle susceptible de le faire. Voir la documentation info pour plus de détails sur la conversion de fichiers. .TP .BI module \ \ [ ] Charge le module spécifié, éventuellement avec des options. Cette directive est équivalente à l'option de ligne de commande .IR \-\-module . .TP .BI onchange \ \ Exécute la commande shell spécifiée après la compilation lorsque le contenu du fichier spécifié a changé. Le nom de fichier se termine au premier espace sur la ligne. .TP .BI paper \ Spécifie des options relatives à la taille du papier. Pour le moment, ces options sont passées sous forme d'options .I \-t à .B dvips ou .I \-p à .BR dvipdfm . .TP .BI path \ Ajoute le répertoire spécifié au chemin de recherche de TeX (et de Rubber). Le nom du répertoire est tout le texte qui suit les espaces après «\ path\ ». .TP .BI read \ Lit le fichier de directives spécifié. Le fichier doit comporter une commande par ligne. Les lignes vides ou commençant par un «\ %\ » sont ignorées. .TP .BI rules \ Lit des règles de conversion supplémentaires dans le fichier spécifié. Ce fichier doit être au même format que le fichier .IR rules.ini , voir la documentation info pour plus de détails. .TP .BI set \ \ Définit la variable .I nom avec la .I valeur spécifiée. Pour plus d'informations sur les variables, voir la documentation en info. .TP .BI watch \ Surveille les modifications sur le fichier spécifié. Si le contenu de ce fichier change lors d'une compilation, une nouvelle compilation est déclenchée. Ce mécanisme est utile par exemple pour les tables des matières. .PP . .SS Directives spécifiques aux modules Si une commande est de la forme .IR toto.tutu , elle est considérée comme une commande .I tutu pour le module .IR toto . Si ce module n'est pas encore enregistré lorsque la directive est rencontrée, la commande est simplement ignorée. Pour les modules standard, les directives sont les suivantes: .TP .BI bibtex.crossrefs \ Spécifie le nombre minimum de .I crossref requis pour l'inclusion automatique de l'entrée référencée dans la liste de citations. Définit l'option .I -min-crossrefs lors de l'appel à .BR bibtex (1). .TP .BI bibtex.path \ Ajoute le répertoire spécifié au chemin de recherche de bases de données BibTeX (fichiers .bib). .TP .BI bibtex.sorted \ Si l'argument est .IR true , .I yes ou .IR 1 , déclare que la bibliographie est triée (c'est le comportement par défaut), sinon déclare que les citations apparaissent dans l'ordre du texte, ce qui peut nécessiter plus d'appels à .BR bibtex . .TP .BI bibtex.stylepath \ Ajoute le répertoire spécifié au chemin de recherche de styles BibTeX (fichiers .bst). .TP .BI dvipdfm.options \ Passe les options de ligne de commande spécifiées à .BR dvipdfm . .TP .BI dvips.options \ Passe les options de ligne de commande spécifiées à .BR dvips . .TP .BI index.tool \ (index)\ Spécifie l'outil à utiliser pour traiter l'index. Les choix possibles sont actuellement .BR makeindex (1) (valeur par défaut) et .BR xindy (1). L'argument .I index est optionnel, il peut être utilisé pour spécifier la liste des index auxquels s'applique la commande. S'il est présent, il doit être placé entre parenthèses et la liste est séparée par des virgules. Si l'argument est absent, la commande s'applique à tous les index. .TP .BI index.language \ (index)\ Sélectionne la langue à utiliser pour trier l'index. Ceci ne s'applique que si l'outil utilisé est .BR xindy (1). L'argument optionnel a la même signification qu'au-dessus. .TP .BI index.modules \ (index)\ ... Spécifie quels modules utiliser lors du traitement de l'index par .BR xindy (1). L'argument optionnel a la même signification qu'au-dessus. .TP .BI index.order \ (index)\ Modifie les options de tri de l'index. Les arguments dont des mots (séparés par des espaces) parmi «\ standard\ », «\ german\ », «\ letter\ ». L'argument optionnel a la même signification qu'au-dessus. .TP .BI index.path \ (index)\ Ajoute le répertoire spécifié au chemin de recherche de styles d'index (fichiers .ist). L'argument optionnel a la même signification qu'au-dessus. .TP .BI index.style \ (index)\