Next: , Previous: emxvga, Up: terminal


2.19.59.20 epslatex

The `epslatex` driver generates output for further processing by LaTeX."

Syntax:

           set terminal epslatex {default}
                                   {color | monochrome} {solid | dashed}
                                   {"<fontname>"} {<fontsize>}
     

`default` mode sets all options to their defaults: `monochrome`, `dashed`, "default" and 11pt. Default size of a plot is 5 inches wide and 3 inches high.

`solid` draws all plots with solid lines, overriding any dashed patterns; `"<fontname>"` is the name of font; and `<fontsize>` is the size of the font in PostScript points. Font selection isn't supported yet. Font size selection is supported only for the calculation of proper spacing. The actual LaTeX font at the point of inclusion is taken, so use LaTeX commands for changing fonts. If you use e.g. 12pt as font size for your LaTeX documents, use '"default" 12' as options.

All drivers for LaTeX offer a special way of controlling text positioning: (a) If any text string begins with '{', you also need to include a '}' at the end of the text, and the whole text will be centered both horizontally and vertically by LaTeX. (b) If the text string begins with '[', you need to continue it with: a position specification (up to two out of t,b,l,r), ']{', the text itself, and finally, '}'. The text itself may be anything LaTeX can typeset as an LR-box. \\rule{}{}'s may help for best positioning. See also the documentation for the `pslatex` terminal driver. To create multiline labels, use \\shortstack, for example

        set ylabel '[r]{\\shortstack{first line \\\\ second line}}'
     

The driver produces two different files, one for the eps part of the figure and one for the LaTeX part. The name of the eps file is taken from the output command. The name of the LaTeX file is derived by replacing the file extension (normally `.eps`) with `.tex` instead. There is no LaTeX output if no output file is given! Remember to close the file before leaving `gnuplot`.

In your LaTeX documents use '\\input{filename}' to include the figure. The `.eps` file is included by the command \\includegraphics{...}, so you must also include \\usepackage{graphicx} in the LaTeX preamble.

Pdf files can be made from the eps file using 'epstopdf'. If the graphics package is properly configured, the LaTeX files can also be processed by pdflatex without changes, using the pdf files instead of the eps files."