# bmeps 2.1.2

- Overview
- Download / Installation
- Usage
- Examples
- bmeps GUI
- mkpdfsls
- FAQ
- Change log
- Other projects
- PDF manual (en)
- PDF manual (de)
- Doxygen docu

## FAQ

- General FAQ
- What is bmeps?
- What license applies to the package?
- Which file types are supported?
- Installation FAQ
- Installation from source on Unix/Linux systems
- Where can I get it?
- What other software is required to install bmeps?
- How do I configure C compiler and linker to build dklibs and bmeps?
- How do I install the bmeps library?
- [Linux] How do I build and install a shared library version?
- [Solaris, Sun Workshop compilers] How do I build and install a shared library version?
- How do I build the modified dvips driver?
- Installation on Windows systems
- Where can I get a binary bmeps.exe?
- How do I build bmeps.exe from source?
- Where can I get a Win32 binary of the modified dvips?
- How can I create a context menu entry in the Windows explorer to convert fax files to PDF?
- Usage FAQ
- General usage
- How do I create an EPS file?
- How do I create a PS file?
- How do I create a PDF file?
- How do I create a bb file?
- What are the easiest to use bmeps command lines?
- Why should I avoid forward-and-backward conversion?
- What is ``image interpolation''?
- Using bmeps with LaTeX
- What must I do in my LaTeX source to use bitmap graphics?
- What's the .bb file for?
- How can I build the .bb file?
- Should I use the resolution chunk?
- Can I use PNGs with both latex/dvips and pdflatex?
- Which options are recognized by bmeps?
- How can I use bitmap graphics with the modified dvips?
- How can I configure default settings?
- Is there a template to see how things work?
- Using bmeps with pdfLaTeX
- Can I use PDF images created by bmeps containing alpha transparency with pdfLaTeX?
- How can I get rid of the "At least one alpha channel..." message?
- Mkpdfsls FAQ
- What's the purpose of this script?
- Which other software is required to run this script?
- Where can I obtain the Image::ExifTool and DKrause::LaTeXEncoder modules?
- What must I do to create a slide show?
- How do I create a project file?
- How does mkpdfsls.pl create a slide show?
- Using bmeps with other applications
- How can I export MS Excel charts to EPS using bmeps?
- Are there command line options for integration into Windows explorer?
- Troubleshooting FAQ
- Why do I get errors "dvips: ... couldn't find ... file ..."?
- Why doesn't dvips convert my pictures?
- GUI FAQ
- [Linux] How do I avoid the crash occuring after the splash screen?
- What does ``ERROR Failed to run the command shown in the line below!'' mean?

### General FAQ

What is bmeps?

Bmeps converts PNG, JPEG and NetPBM to EPS and PDF. The project source archive also cotains a library which can be linked into dvips.

What license applies to the package?

- bmeps
  Copyright (C) 2008 Dipl.-Ing. Dirk Krause
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  - Neither the name of the Dirk Krause nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
- This software is provided by the copyright holders and contributors ``as is'' and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed.
  In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Which file types are supported?

PNG, JPEG and NetPBM files can be read. PNG is the preferred input file format as it provides a good compression rate, the compression is not lossy and files may contain an alpha channel (used for transparency).

The PNG file format is a good choice for "artificial" pictures (logos, screenshots...).

The JPEG file format is a good choice for "natural scenes) (i.e. photos).
The DCT compression used by the JPEG file format is a lossy compression. Typically a user can set up the image qualitiy (and the amount of loss) in dialog boxes of applications producing JPEG images.

NetPBM should be used as intermediate file type in pipes.

Bmeps can read TIFF files using the TIFFReadRGBAImage() function from the TIFF library.
TIFF support was added to be able to convert fax files from a fax gateway from TIFF to PDF. This was tested successfully. Use of other TIFF files with bmeps is not recommended. If bmeps fails to read a TIFF file, convert the TIFF file to PNG using your favourite graphics program and let bmeps read the PNG file.
The TIFF file format is a collection of different compression and encoding mechanisms. The TIFF V6.0 baseline standard lists a number of TIFF tags, but some software vendors also use non-standard tags when writing TIFF files. You should not be surprised if bmeps fails to convert a TIFF file. If you have a choice, use PNG files instead.

### Installation FAQ

#### Installation from source on Unix/Linux systems

Where can I get it?

Source code and documentation can be found at http://sourceforge.net/projects/bmeps.

What other software is required to install bmeps?

- zlib, http://www.gzip.org/zlib/ (required)
- libbz2, http://sources.redhat.com/bzip2/ (optional)
- libpng, http://www.libpng.org/pub/png/libpng.html (required)
- JPEG lib, ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz (recommended)
- NetPBM, ftp://ftp.metalab.unc.edu/pub/Linux/apps/graphics/convert/netpbm-10.11.10.tgz (optional)
- Tiff library, http://www.remotesensing.org/libtiff (optional)
- dklibs libraries 1.20.4 or later, http://dklibs.sourceforge.net/ (required)

Install the libraries in the given order, set the environment variables `CPPFLAGS`, `CFLAGS` and `LDFLAGS` so the header files and libraries are found.

How do I configure C compiler and linker to build dklibs and bmeps?

See the dklibs FAQ: Unix/Linux installation FAQ section.

How do I install the bmeps library?

Unpack the source archive, change into the bmeps directory and run

    ./configure
    make
    make install

[Linux] How do I build and install a shared library version?

- Make sure /usr/local/bin is listed in the PATH environment variable.
- Make sure /usr/local/lib is searched for *.so files.
  On Red Hat, Fedora Core and CentOS (and maybe on other Linux distributions too) check the files in /etc/ld.so.conf.d, one of the files should contain the text /usr/local/lib.
  If the directory is not yet listed, create a new file /etc/ld.so.conf.d/usr-local.conf, the contents should be

      /usr/local/lib

- First install the dklibs libraries as shared library versions.
  After unpacking the source archive change into the dklibs-x.x.x directory and run

      ./configure
      make -f Makefile-shared-linux
      make -f Makefile-shared-linux install
      ldconfig

- Install bmeps as shared library version.
  After unpacking the source archive change into the bmeps-x.x.x directory and run

      ./configure
      make -f Makefile-shared-linux
      make -f Makefile-shared-linux install
      ldconfig

[Solaris, Sun Workshop compilers] How do I build and install a shared library version?

- Make sure /usr/local/lib is searched for *.so files.
  Add /usr/local/lib to the LD_LIBRARY_PATH environment variable.
- Install the dklibs libraries as shared library version.

      ./configure
      make -f Makefile-shared-solaris-workshop
      make -f Makefile-shared-solaris-workshop install

- Install bmeps and the bmeps library as shared library version.

      ./configure
      make -f Makefile-shared-solaris-workshop
      make -f Makefile-shared-solaris-workshop install

How do I build the modified dvips driver?

As I did not build a modified dvips driver for a long time (there was no need to do so as I have enough disk space available now) I can no longer give detailed recommendations.
In ``good old times'' the current dvips sources were available in the tetex distribution sources on CTAN. I don't know where to find them today. So I can not derive modified dvips sources from the original.
I can only recommend to run a diff command to compare the modified dvips sources in the dvips-mods/595a directory against the original dvips 595a sources to find the changes you have to apply to the dvips sources.

#### Installation on Windows systems

Where can I get a binary bmeps.exe?

In the download section of http://sourceforge.net/projects/dklibs there are two executable setup files: dklibs-win32-*-user.exe and dklibs-win32-*-base.exe. The *-user.exe is the recommended setup, it installs binaries and documentation locally on the hard disk.
The *-base.exe setup only installs the binaries locally, start menu entries for documentation will point to web resources. You should use this setup only if you really need to save disk space and the computer is permanently connected to the internet.
For previous versions (1.x.x) a Windows binary was shipped with the source package of bmeps. Bmeps 2.x.x uses the dklibs library set and needs the supplemental files (libraries, string tables...), so it can not run without the dklibs library set.

How do I build bmeps.exe from source?

There's a special source archive for Windows in the dklibs-win32 package of the dklibs library set at http://sourceforge.net/projects/dklibs in the download area. This source archive contains the code for dklibs and some applications using the dklibs library set (bmeps is one of them).
See dklibs FAQ: Windows installation from source FAQ for details about the build process.

Where can I get a Win32 binary of the modified dvips?

The MikTeX distribution includes a `dvips` containing the bitmap support.
See http://www.miktex.org.
The last MikTeX distribution I tested contained bmeps 1.54 - a very old version.

How can I create a context menu entry in the Windows explorer to convert fax files to PDF?

- Log in as Administrator
- Start regedit to edit the registry.
- Change into the HKEY_CLASSES_ROOT\.tiff key.
  If the key does not yet exist, create it and set the following entries:
  - Change the value of the `(Standard)` entry to `tifffile`.
  - Create an entry `Content Type`, set the value to `image/tiff`.
  If the key already exists and contains the entries do not apply changes.
- Change into the HKEY_CLASSES_ROOT\.tif key (one "f" only).
  If the key does not yet exist, create it and create/change the `(Standard)` and `Content Type` entries to have the same values as in HKEY_CLASSES_ROOT\.tiff.
- The `(Standard)` entry in the two keys above specifies a filetype.
  Now change to the HKEY_CLASSES_ROOT\filetype key (in the example it is HKEY_CLASSES_ROOOT\tifffile).
  Create a new subkey structure, in HKEY_CLASSES_ROOT\filetype\shell\Fax to PDF\Command set the `(Standard)` entry to `c:\programs\krause\bin\bmeps.exe -a -lfaxpdf "%1"` (see below).
- Now if you have a TIFF file created by a fax-to-mail gateway, you can select it in the explorer, press the right mouse button and choose `FAX to PDF` from the context menu to convert the file to PDF.

### Usage FAQ

#### General usage

How do I create an EPS file?

    bmeps -leps input.png output.eps

How do I create a PS file?

    bmeps -lps input.png output.ps

How do I create a PDF file?

    bmeps -lpdf input.png output.pdf

How do I create a bb file?

    bmeps -lbb input.png output.bb

What are the easiest to use bmeps command lines?

The most simple way to convert an input image to EPS, PS, PDF or bb using bmeps is to run one of the commands

    bmeps input.png output.eps
    bmeps input.png output.ps
    bmeps input.png output.pdf
    bmeps input.png output.bb

Note: If the ``-l'' option is omitted bmeps inspects the output file name suffix to find an appropriate output configuration. If you want to overwrite configuration entries using the ``-o'' option, place these options after the output file name.

Why should I avoid forward-and-backward conversion?

You might loose information (this means the result is not looking exactly as the original) when doing unnecessary forward-and-backward conversions for three reasons:

- Image interpolation
  If the image interpolation flag is set in an EPS or PDF file the viewer or renderer is allowed to modify the image for a better rendering quality. The interpolation flag is enabled by default for EPS2, EPS3 and PDF output.
  You can disable the interpolation flag using the option:

      -o i=n

- Limitations of computer mathematics.
  Imagine -- for example -- an image having a resolution chunk telling the image is at 216 dpi. Both EPS and PDF output require a scale operation using the factor 1/3.
  This can be written as a 0.33333... (with an endless number of digit 3).
  Bmeps uses a C variable of type "double" to store the scale factor, this data type can not store numbers of infinite length. When printing a double value to file the fprintf() function prints a limited number of digits only.
- Limitations in file formats.
  Some file formats use resolution units not based on inches (i.e. dots per meter or dots per centimeter) and save the result as integer values. Forward and backward conversions will loose the digits after the decimal dot.
  See also Should I use the resolution chunk?.

So if you convert an image img1.png to img1.eps and then img1.eps to test.png the files img1.png and test.png will not necessarily be 100 percent equal.

What is ``image interpolation''?

If the interpolation flag is set to true for an image EPS and PDF viewers are allowed to attempt quality improvements for better on-screen rendering.
The bt9.pdf file shows the effect. The first foil includes a PNG file (without interpolation flag set), the second foil includes a PDF file (interpolation flag is set to ``true''). When switching between the foils look at the edges of the 5-minutes-circles and the edges of the pointers.

#### Using bmeps with LaTeX

What must I do in my LaTeX source to use bitmap graphics?

When using an unmodified dvips add

    \DeclareGraphicsRule{.png}{eps}{.bb}{`bmeps #1}

to your LaTeX preamble.
Now dvips attempts to run the bmeps program for each included image using the default options configured by ``bmeps -c ...''.
Alternatively you can use

    \DeclareGraphicsRule{.png}{eps}{.bb}{`bmeps -leps2 #1}

to set the EPS version.
When running dvips make sure to allow the execution of external commands.

When using the modified dvips add

    \DeclareGraphicsRule{.png}{eps}{.bb}{}

to the document preamble.

What's the .bb file for?

To calcaluate the documents layout LaTeX needs information about the bounding boxes of included graphics.
In EPS files this information is contained in a line like

    %%BoundingBox: 0 0 800 600

directly in the file.
Other file types do not allow text lines in the file, a separated file must contain this information.

How can I build the .bb file?

Use

    bmeps -lbb file.png file.bb

to create the bounding box file `file.bb` for `file.png`.
Do not use the ebb program coming with some LaTeX distributions in conjunction with bmeps. Bmeps and ebb use different formulas to calculate the BoundingBox:

- bmeps: 1 PNG pixel = 1 EPS point.
  72 PNG pixels are used to fill one inch.
- ebb: 1 PNG pixel = 72/150 EPS points.
  150 PNG pixels are used to fill one inch.

Should I use the resolution chunk?

If you convert a bitmap image to EPS or PDF for use with LaTex or pdfLaTeX there are two ways to specify the size of the image on the page:

1. You add a resolution chunk to the bitmap image and use the "-o u.r.c=y" option when running bmeps. The *.tex file contains the includegraphics command

       \includegraphics{image}

   without the optional width argument. The image size is given by the %%BoundingBox or /MediaBox of the EPS or PDF file.
2. You do not use "-o u.r.c=y" and skip the resolution chunk from the bitmap image file. The includegraphics command

       \includegraphics[width=8cm]{image}

   contains information about the image size on the page you want. LaTex/pdfLaTeX uses this information and the %%BoundingBox or /MediaBox information to calculate correct scale factors.

I prefer version 2 for two reasons:

- The size of the graphics can be changed easily in the *.tex source if necessary, no dealing with graphics programs is necessary.
- Limitations of file formats and computer mathematics.
  The image file formats use different resolution units (dpi: dots per inch, dpm: dots per meter or dpcm: dots per centimeter) and use 16- or 32-bit integers to save the amount.
  If -- for example -- an image should be at 72 dpi and you store it as PNG the correct resolution conversion results in 2834,6457 dots per meter, this is stored as 2834 or 2835 dpm. If an application wants to show the file, it converts this value back to 71,9836 or 72,009 dpi because how should it know whether the 2834 dpm in the file mean 2834,0000 or 2834,6457 or 2834,9876 or anything else?
  If the same image is saved as TIFF or JPEG file with a resolution in dpcm the value 28,346457 is stored as 28 dpcm. Calculation backward to dpi results in 71,12 dpi.
  When using resolution information from the input image bmeps attempts to guess whether a resolution might intend 72 dpi to avoid unnecessary scaling. The delta values are as follows:

  JPEG files, resolution in dots per centimeter: | 1.67 dpi
  PNG file, resolution in dots per meter: | 0.0165 dpi
  PNG file, resolution in dots per centimeter: | 1,67 dpi
  TIFF file, resolution in dots per centimeter: | 1,67 dpi
  all file types/resolution units not listed above: | 0.00001 dpi

  Do not send bug reports about this, please. This is intended.

Can I use PNGs with both latex/dvips and pdflatex?

Of course you can.
In your documents preamble (before \begin{document}) write

    \usepackage{ifpdf}
    \ifpdf
    ...
    \else
    \DeclareGraphicsRule{.png}{eps}{.bb}{}
    \fi

for modified `dvips` or

    \usepackage{ifpdf}
    \ifpdf
    ...
    \else
    \DeclareGraphicsRule{.png}{eps}{.bb}{`bmeps #1}
    \fi

for unmodified `dvips`.
If your document contains EPS graphics too, you should change

    \includegraphics[...]{xxx.eps}

to

    \includegraphics[...]{xxx}

and provide both an EPS and a PDF version of the picture.
Use

    ps2pdf xxx.eps xxx.pdf

or - for large pictures -

    cat xxx.eps | epsffit -c 87 92 487 363 | ps2pdf - xxx.pdf

to convert the EPS file to PDF.
The `epsffit` program is contained in the psutils (http://www.dcs.ed.ac.uk/home/ajcd/psutils/index.html).
The `ps2pdf` script is contained in the Gostscript distributions. (http://www.cs.wisc.edu/~ghost)

Which options are recognized by bmeps?

See the Usage page for information.

How can I use bitmap graphics with the modified dvips?

Options for bitmap-to-EPS-conversion can be specified on the command line. Use

    dvips -I <configuration-name> ...

where <configuration-name> is the same as the ``-l'' argument to the bmeps program (a configuration name, configuration entry overwrites optionally appended separated by comma).
Examples:

- PS level 1 printer:

      dvips -I eps1 ...

- PS level 2 grayscale printer

      dvips -I eps2,color=no ...

- PS level 2 color printer

      dvips -I eps2 ...

How can I configure default settings?

Both `bmeps` and the modified `dvips` retrieve default settings from the `EPSOUTPUT` environment variable before processing command line options.
The contents of the variable must be the same as the argument to the `-I` option of the modified `dvips` as explained in the section above.
This variable can be set in your login scripts, i.e.

    setenv EPSOUTPUT eps2,color=no

in `.cshrc` or

    EPSOUTPUT="eps2,color=no"
    export EPSOUTPUT

in `.profile` or

    set EPSOUTPUT="eps2,color=no"

in `AUTOEXEC.BAT`.

Is there a template to see how things work?

Here I show a template how to use the `bmeps` with an unmodified `dvips`.

    \documentclass[ngerman,12pt,a4paper]{scrartcl}
    \usepackage{ngerman}
    \usepackage{ifpdf}
    \usepackage[latin1]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{textcomp}
    \usepackage{mathptmx}
    \usepackage[scaled=.92]{helvet}
    \usepackage{courier}
    \usepackage{array}
    \usepackage{enumerate}
    \usepackage{longtable}
    \usepackage{latexsym}
    \usepackage[ngerman]{varioref}
    \usepackage{makeidx}
    \usepackage{color}
    \ifpdf
    \usepackage[activate=normal]{pdfcprot}
    \usepackage[pdftex]{graphicx}
    %
    % - The epstopdf package requires the write18 feature to invoke
    %   eps -> pdf conversion from pdfLaTeX. To enable it use
    %   - -shell-escape command line option (recommended)
    %   - write18=enable in miktex.ini or   (not recommended, security risk)
    %   - shell_escape=1 in texmf.cnf or    (not recommended, security risk)
    % - on Windows there are errors if epstopdf is invoked by pdfLaTeX
    %   (possibly the epstopdf program does not set stdout to binary mode?)
    %
    \usepackage{epstopdf}
    \pdfcompresslevel=9
    \usepackage[
      pdftex,
      a4paper=true,
      pdftitle={Test},
      pdfsubject={Test},
      pdfauthor={Dipl.-Ing. D. Krause},
      colorlinks=true,
      linkcolor=linkgreen,
      pdfpagemode=None,
      pdfstartview=FitH
    ]{hyperref}
    \definecolor{linkgreen}{rgb}{0,0.5,0}
    \else
    \usepackage[dvips]{graphicx}
    \DeclareGraphicsRule{.png}{eps}{.bb}{`bmeps #1}
    \DeclareGraphicsRule{.jpg}{eps}{.bb}{`bmeps #1}
    \DeclareGraphicsRule{.jpeg}{eps}{.bb}{`bmeps #1}
    \DeclareGraphicsRule{.pgm}{eps}{.bb}{`bmeps #1}
    \DeclareGraphicsRule{.pbm}{eps}{.bb}{`bmeps #1}
    \DeclareGraphicsRule{.pnm}{eps}{.bb}{`bmeps #1}
    \DeclareGraphicsRule{.ppm}{eps}{.bb}{`bmeps #1}
    \usepackage[
      dvips,
      colorlinks=true,
      linkcolor=linkgreen
    ]{hyperref}
    \definecolor{linkgreen}{rgb}{0,0.5,0}
    \fi
    \setlength{\parindent}{0cm}
    \author{Dipl.-Ing.~D.~Krause}
    \title{Test mit Bildformaten}
    \renewcommand*{\sectfont}{\bfseries}
    \makeindex
    \begin{document}
    \begin{sloppy}
    \newpage
    \section{Test}
    This is a test for graphics inclusion.
    \begin{figure}
    {\centering
    \includegraphics[width=\linewidth]{arch5.jpg}
    \caption{Delicate Arch}
    }
    \end{figure}
    \end{sloppy}
    \end{document}

This template allows to use latex+dvips and pdflatex (latex+dvipdfm was not testet).
It is the template I use when writing new documents, may bee you need other packages and options.
The `DeclareGraphicsRule` is used only when not running `pdftex/pdflatex/`.

#### Using bmeps with pdfLaTeX

Can I use PDF images created by bmeps containing alpha transparency with pdfLaTeX?

Yes, you can.
Add a line

    \pdfpageattr {/Group << /S /Transparency /I true /CS /DeviceRGB>>}

to the LaTeX source preamble (suggested by J. Quirk in the pdftex mailing list).
If bmeps transfers alpha channels from PNG or TIFF to PDF a notification is printed to remind you to use that line in the preamble.

How can I get rid of the "At least one alpha channel..." message?

The message

    At least one alpha channel was converted to PDF.
      When referencing PDFs containing alpha data from your *.tex sources, you should use
      \ifpdf\pdfpageattr{/Group <</S /Transparency /I true /CS /DeviceRGB>>}\fi
      in the preamble.

or the german version

    Ein Alpha-Kanal wurde in eine PDF-Ausgabe übertragen.
      Um PDFs mit Alpha-Kanal mit pdfLaTeX zu verwenden, sollten Sie
      \ifpdf\pdfpageattr{/Group <>}\fi
      in der Präambel der LaTeX-Quelle verwenden.

is printed if bmeps converts PNG or TIFF file containing alpha channel data to PDF, transferring the alpha channel.
To turn this message off, either use the `-A` command line argument or set the preference "/pdf/suppress-alpha-info" to "true".
On Unix/Linux edit $HOME/.defaults/all and add a section

    [bmeps]
    /pdf/suppress-alpha-info=true

On Windows go to the registry key (create the key if it does not exist) HKCU\Software\DkApp\bmeps and add an entry

    "*:/pdf/suppress-alpha-info"=(REG_SZ)"true"

Instead of the asterisk ("*") you can use the computer name.
Alternatively run

    bmeps -c -A

to set `-A` as a permanent option.

#### Mkpdfsls FAQ

What's the purpose of this script?

The mkpdfsls.pl script can be used to create a slide show, i.e. for images from your digital camera.

Which other software is required to run this script?

- Perl.
- The pdftk program.
- A LaTeX distribution.
- The beamer class for LaTeX.
- The Image::ExifTool and DKrause::LaTeXEncoder Perl modules are needed if you want to use ``Comment'' EXIF tags from JPEG files as image descriptions.

Where can I obtain the Image::ExifTool and DKrause::LaTeXEncoder modules?

The Image::ExifTool module is available on CPAN.
The DKrause::LaTeXEncoder module is shipped with the dklibs library set (http://sourceforge.net/projects/dklibs). After unpacking the source archive you will find the module source in the perlxs subdirectory. Change into the DKrause-LaTeXEncoder directory and run:

    perl Makefile.PL
    make
    make install

to install the module.

What must I do to create a slide show?

- Collect all the images to use into one directory.
- Create the project file (see below), i.e. ``holidays.mks''.
- Run mkpdfsls.pl

      mkpdfsls.pl holidays.mks

How do I create a project file?

- The project file must contain at least the file names of the images to use, one per line, in the order of appearance in the resulting presentation.
- Digital cameras typically use a file name scheme containing some constant characters at the beginning followed by a growing number.
  So the easiest way to create a project file is to run:

      ls *.jpg | sort > holidays.mks

- Now edit the holidays.mks file in your favorite text editor, create the section start entries ``[options]'' and ``[files]'' and add options if necessary.
- If you want to show image comments, slide show title... you should use

      presentation maker = beamer

  and add author and title information...
- An example file might look like this:

      [options]
      presentation maker		=	beamer
      theme			=	Madrid
      background			=	black
      author			=	John Doe
      title			=	Holidays in Scotland

      [files]
      scot01.jpg	=	Nice Landscape
      scot02.jpg	=	Yet another landscape view
      scot03.jpg	=	Holyrood palace

  If your JPEG files contain comments (stored in the ``Comment'' EXIF tag) you can use these commens instead of writing all the comments again:

      [options]
      presentation maker		=	beamer
      theme			=	Madrid
      background			=	black
      author			=	John Doe
      title			=	Holidays in Scotland
      use exif		=	yes

      [files]
      scot01.jpg
      scot02.jpg
      scot03.jpg

How does mkpdfsls.pl create a slide show?

- In the first step the mkpdfsls.pl script converts each image source file into one PDF file.
- In the second step the PDF files are combined using one of the following methods:
  - The pdftk program is used.

        pdftk input1.pdf input2.pdf input3.pdf ... cat output slide-show.pdf

    Use the

        presentation maker = pdftk

    option in the project file to activate this mechanism.
    The PDF file does not automatically attempt to switch to full-screen mode.
  - A *.tex file using the article document class and referencing all the image PDF files is written, pdflatex is run on this file.
    The resulting PDF output file will just show the image.
    Use the

        presentation maker = plain

    option in the project file to activate this mechanism.
    The PDF file attempts to switch the PDF reader to full-screen mode.
  - A *.tex file using the beamer document class and referencing all the image PDF files is written, pdflatex is run on this file.
    The resulting PDF file will show the images, one per slide. Each slide additionally contains an image description, a slide show title...
    Use the

        presentation maker = beamer

    option to activate this mechanism.
    The PDF file attempts to switch the PDF reader to full-screen mode.

#### Using bmeps with other applications

How can I export MS Excel charts to EPS using bmeps?

A VB macro `ChartPict_save()` - placed in contrib/kant_krishna/excel_to_eps.vbs - was provided by Krishna Kant to export all charts to PNG files and run bmeps on these files.
Note (1): This macro is provided "as-is", no support for it as I have no knowledge of VB. I tested the macro on Office Prof. 2003, works fine. On earlier Office version (i.e. Office 97 Prof.) there were problems.
Note (2): This conversion produces bitmap graphics EPS files. Possibly you want to try exporting to WMF and use the wmf2eps program to obtain vector graphics EPS files.

Are there command line options for integration into Windows explorer?

To create context menu entries for bmeps use the ``-a'' option, create commands like

    bmeps -a -lbb "%1"

### Troubleshooting FAQ

Why do I get errors "dvips: ... couldn't find ... file ..."?

The dvips driver uses the `kpathsea` library to locate files.
This library assumes a directory structure having a so called BASEDIR. Executable files are expected to be in BASEDIR/bin/<architecture>.
When searching for a file the library estimates the directory where the executable for the current process was taken from, goes up two directory levels and treats that directory as BASEDIR.
In BASEDIR/share/texmf there is a file `ls-R` containing the file name database. This file is needed by `kpathsea` to find files.
Type

    which dvips

to find where your dvips is located. If it is in a directory
`BASEDIR/bin` move it to `BASEDIR/bin/<architecture>`.

Why doesn't dvips convert my pictures?

Probably the original `dvips` is used. Type

    dvips --version

If the first output line looks like

    dvips(k) 5.86

you are using an unmodified `dvips`. If it looks like

    dvips(k) 5.86 modified for bitmap graphics support

the `dvips` version is correct.

### GUI FAQ

[Linux] How do I avoid the crash occuring after the splash screen?

Instead of

    bmeps-gui

run

    bmeps-gui -splash:none

What does ``ERROR Failed to run the command shown in the line below!'' mean?

If you see this error message the bmeps or bmeps.exe file was not found.
Make sure this file is in one of the directories listed in the PATH environment variable.