No description, website, or topics provided.
OCaml TeX Roff Makefile Standard ML C
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
backend
bugs
concrete
contrib
customdoc
dvi
examples
gui
latex
multi-examples
opam
papers
presentations
test
testspace
testsuite
www
.bzrignore
.gitignore
.merlin
AUTHORS
CHANGES
FAQ
INSTALL
LICENSE
META.in
Makefile.in
README.txt
TODO
_tags
alphafill.mp
arrow.ml
backend-test.ml
box.ml
brush.ml
cairost.ml
color.ml
command.ml
compile.ml
compiled_types.ml
concrete.ml
configure.in
dash.ml
defaults.ml
defaults.mli
diag.ml
duplicate.ml
file.ml
file.mli
generate.ml
handbookgraphs.ml
hash.ml
hashcons.ml
hashcons.mli
headache_config.txt
header.txt
helpers.ml
hist.ml
legend.ml
mPprint.ml
metaPath.ml
metapost.ml
metapost.mli
metapost_tool.ml
misc.ml
mlpost.1
mlpost.el
mlpost.mli
mlpost_cairo.mlpack
mlpost_concrete.mlpack
mlpost_desc_options.ml
mlpost_no.mlpack
mlpost_nolablgtk.odocl
mlpost_options.ml
mlpost_options.mli
mlpost_options.mllib
mlpost_yeslablgtk.odocl
myocamlbuild.ml.in
myocamlmacroparser.mll
name.ml
num.ml
ocamlbuild.Makefile
othergraphs.ml
path.ml
pen.ml
picture.ml
plot.ml
point.ml
print.ml
radar.ml
real_plot.ml
scan_prelude.mll
shapes.ml
signature.ml
test_freetype.ml
test_vf.ml
tests.ml
tool.ml
transform.ml
tree.ml
tree_adv.ml
triangle.ml
types.ml
types.mli
version.ml.in

README.txt

**************************************************************************
*                                                                        *
*  Copyright (C) Johannes Kanig, Stephane Lescuyer                       *
*  Jean-Christophe Filliatre, Romain Bardou and Francois Bobot           *
*                                                                        *
*  This software is free software; you can redistribute it and/or        *
*  modify it under the terms of the GNU Library General Public           *
*  License version 2.1, with the special exception on linking            *
*  described in file LICENSE.                                            *
*                                                                        *
*  This software 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.                  *
*                                                                        *
**************************************************************************

This is MLPost !

Usage:
------

* Open the Mlpost pack:

         open Mlpost

* Define your figures in an Ocaml file fig.ml

	 let fig_a = ...
	 let fig_b = ...

  Each figure has type Command.t.

* Add some code to emit Metapost code, as follows


	let () = Metapost.emit "file_a" fig_a
	let () = Metapost.emit "file_b" fig_b

* Then run the mlpost program on this file

       mlpost fig.ml

  It will create PostScript figures in files file_a.1, file_b.1, etc.


Options:
--------

mlpost supports the following options:

-pdf
	creates .mps files instead of .1, for inclusion in LaTeX files
	compiled with pdflatex (the PostScript file is actually the
	same, but the suffix is used by pdflatex to identify
	PostScript produced by Metapost)

-latex main.tex
        indicates the main LaTeX file, from which the prelude is
        extracted to be passed to Metapost (this way you can use
        macros, fonts and packages from your LaTeX document in your
        figures).

-xpdf
        opens an xpdf viewer with the generated figure. Subsequent calls with
        the option -xpdf will refresh the viewer, if it is still open.

-native
        compile to native code. This is usually faster.

-eps
        produce standalone postscript files

-ocamlbuild
        use ocamlbuild to compile the source; this may be useful it there are
        a lot of dependencies

-ccopt <options>
        pass options to the ocaml compiler

-execopt <options>
        pass options to the compiled program


Cairo output:
-------------

The following functions are not supported in combination with the Concrete /
Cairo modules:

* Path.build_cycle
* Pen.square
* Pen.from_path