home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / bmp2tex1.zip / bmp2tex.txt < prev    next >
Text File  |  1994-09-04  |  3KB  |  71 lines

  1.  
  2.                            BMP2TEX
  3.  
  4.                a converter from BitMAp to LaTeX
  5.  
  6.  
  7. 0. Copyright notice
  8.  *  Copyright (c) 1994 Maurizio Giunti - All rights reserved  *
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions
  11. are met:
  12.  1. Redistributions of source code must retain the above copyright
  13.     notice, this list of conditions and the following disclaimer.
  14.  2. Redistributions in binary form must reproduce the above copyright
  15.     notice, this list of conditions and the following disclaimer in the
  16.     documentation and/or other materials provided with the distribution.
  17.  3. All advertising materials mentioning features or use of this software
  18.     must display the following acknowledgement:
  19.     "This product includes software developed by Maurizio Giunti"
  20.  
  21. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  22. INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  23. AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  26. PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  27. OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  28. WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR
  29. OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  30. ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31.  
  32. 1. What is BMP2TEX
  33. BMP2TEX is a small utility to convert a bitmap of any dimension but with a
  34. single bit plane (2 colors) to a LaTeX readable file.
  35.  
  36. 2. Syntax:
  37.   BMP2TEX <bitmap> <out>
  38.  
  39. Where <bitmap> is the name of the bitmap file and <out> is the name of the
  40. LaTeX file to create.
  41.  
  42. 3. Bitmap formats
  43. At this moment BMP2TEX can only read bitmap files in Windows3 or OS/2 2.xx
  44. format with a single bit plane, not compressed.
  45. That means you must convert other type of images to this format before trying
  46. to convert them in LaTeX format, using the right utility (something like
  47. PMJPEG for OS/2 o PaintShop for Windows).
  48.  
  49. 4. How to use a LaTeX image file
  50. You can import any image created with BMP2TEX, inserting the following
  51. statement in your .TEX file:
  52.  
  53.         {\unitlength=1pt \input{ <pic> }}
  54.  
  55. where instead of <pic> you must insert the name of the picture file.
  56. To resize the image you have to change the \unitlength definition, for example
  57. if you need a bigger image try to use 2pt, or if you need a smaller image
  58. try 0.5pt.
  59.  
  60.  
  61. 5 The author
  62. For any problem or question, please contact me:
  63.  
  64.         Maurizio Giunti
  65.         Via Foggini, 24
  66.         I-50142 Firenze
  67.  
  68.         Fidonet: 2:332/102.3
  69.         Internet: giunti@stat.ds.unifi.it
  70.  
  71.