Debian Codegraph @

texmf-dist/doc/latex/texments/README

raw
1 +-------------------------------------------+
2 | TEXMENTS |
3 | |
4 | Access the Pygments syntax highlighter |
5 | from inside LaTeX. |
6 | |
7 | By Marek Kubica, <[email protected]> |
8 +-------------------------------------------+
9
10
11 Description
12 -----------
13
14 Ever wanted to include a source file into your LaTeX code? Code gets
15 easier to read when it is colored so many people use the ``listings''
16 package that can syntax-color (highlight) your source files. Not
17 every language is supported, though. This is where ``texments''
18 comes in handy. ``texments'' is an alternative to ``listings'' and
19 uses the Pygments syntax highlighter which provides highlighting
20 for more languages than ``listings'' itself. Especially when a
21 language is rather recent, Pygments often supports it already like
22 for example Scala and Clojure.
23 ``texments'' also supports multiple color schemes, so almost everyone
24 can find a setting that pleases him.
25
26
27 Installation
28 ------------
29
30 As ``texments'' is only glue between several packages, it has some
31 dependencies. The dependencies on the LaTeX-side are ``fancyvrb'',
32 ``color'' and ``ifthen'' which should be all included in basically
33 any notable TeX distribution, so no problems are to be expected.
34 The documentation also uses the ``hyperref'' package which is also
35 part of any self-respecting TeX distribution.
36 The other dependency is the ``pygmentize'' command, which is part
37 of the Pygments (<http://pygments.org/>) library. Pygments is
38 provided by many Linux distributions in the package
39 ``python-pygments'' (Debian, Ubuntu, Fedora, openSUSE),
40 ``pygments'' (Gentoo, Arch Linux AUR) or similar. Users of other
41 systems can install it using ``easy_install Pygments'' (provided
42 that setuptools are installed) or simply by downloading the Pygments
43 tarball and running ``python setup.py install'' inside of it.
44
45 To create the ``texments.sty'' file, call ``latex texments.ins''.
46 Then you need to move the file into a place where TeX can find it,
47 probably into your TEXMF tree. To generate the documentation,
48 call ``pdflatex -shell-escape texments.dtx'' which will generate
49 the ``texments.pdf'' file which includes some examples and hints
50 how to use it. Note that the ``-shell-escape'' parameter is
51 (unfortunately) mandatory, as the macro package needs to call
52 ``pygmentize'' to highlight the content.
53
54
55 Copyright and license
56 ---------------------
57
58 Copyright (C) 2008 Marek Kubica, <[email protected]>
59
60 This package may be distributed and/or modified under the conditions
61 of the LaTeX Project Public License, either version 1.3c of this
62 license or (at your option) any later version. The latest version of
63 this license is in:
64
65 http://www.latex-project.org/lppl.txt
66
67 and version 1.3c or later is part of all distributions of LaTeX version
68 2008/05/04 or later.
69