home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / kpathsea / tex-make.h < prev    next >
C/C++ Source or Header  |  1994-02-24  |  3KB  |  69 lines

  1. /* tex-make.h: declarations for executing external scripts.
  2.  
  3. Copyright (C) 1993, 94 Karl Berry.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef KPATHSEA_TEX_MAKE_H
  20. #define KPATHSEA_TEX_MAKE_H
  21.  
  22. #include <kpathsea/c-proto.h>
  23. #include <kpathsea/tex-file.h>
  24. #include <kpathsea/types.h>
  25.  
  26.  
  27. typedef struct
  28. {
  29.   boolean enabled; /* whether to run the program */
  30.   const_string program;  /* executable name */
  31.   const_string args;     /* additional args to pass */
  32. } kpse_make_spec_type;
  33.  
  34. #define KPSE_MAKE_SPEC_ENABLED(ms) ((ms).enabled)
  35. #define KPSE_MAKE_SPEC_PROGRAM(ms) ((ms).program)
  36. #define KPSE_MAKE_SPEC_ARGS(ms) ((ms).args)
  37.  
  38. /* Indexed by `kpse_file_format_type', gives info for each file format.  */
  39. extern kpse_make_spec_type kpse_make_specs[];
  40.  
  41.  
  42. /* Says whether to throw away stderr output from the MakeTeX... scripts,
  43.    or let it be seen.  */
  44. extern boolean kpse_make_tex_discard_errors;
  45.  
  46.  
  47. /* Look for a file named by BASE_FILE in format FORMAT.  If other
  48.    information about the file is needed, it can be passed through
  49.    environment variables.  See the MakeTeXPK stuff in `tex-make.c' for
  50.    an example.  */
  51. extern string kpse_make_tex P2H(kpse_file_format_type format,
  52.                                 const_string base_file);
  53.  
  54. /* Set the environment variable MAKETEX_MAG to the magstep string
  55.    (suitable for assigning to Metafont's `mag' parameter) corresponding
  56.    to a font loaded at DPI on a base resolution of BASE_DPI.  */
  57. extern void kpse_set_maketex_mag P2H(int dpi, int base_dpi);
  58.  
  59.  
  60. /* Defines how far away a pixel file can be found from its stated size.
  61.    The DVI standard says any resolution within 0.2% of the stated size
  62.    is ok, but we are more forgiving.  */
  63. #define KPSE_BITMAP_TOLERANCE(r) ((r) / 500.0 + 1)
  64.  
  65. /* Check whether DPI2 is within KPSE_BITMAP_TOLERANCE of DPI1. */
  66. extern boolean kpse_check_bitmap_tolerance P2H(double dpi1, double dpi2);
  67.  
  68. #endif /* not KPATHSEA_TEX_MAKE_H */
  69.