Graphics gui

From TeX on Mac OS X wiki

Jump to: navigation, search

Contents

LaTeX Color Selector

Creates LaTeX colour definitions for colours chosen using the standard OS X interface.

Inkscape with TeXText plugin

Inkscape is open source (GPL)

TeXText is either open source or creative commons (source code is available; licence is unclear but source is hosted on a site which accepts only OSI and CC code)

The following steps allow for the insertion of editable LaTeX equations in Inkscape using TeXText on OS X Leopard 10.5.5:

  1. Download Inkscape and install it. Tested with Inkscape-0.46-2.LEOPARD.UNIVERSAL. You also might need to update X11.app by downloading and installing the latest Xquartz. Run Inkscape at least once to make sure it does work.
  2. Download TeXText. Tested with version 0.4.4.
  3. Install pstoedit-bin and pstoedit-shlibs from Fink (download the binary version; if you compile from source it takes several hours as it compiles every dependence). Not sure if both are needed. Tested with version 3.45-1.
  4. Install MacTeX. Tested with the MacTeX-2008 distribution.
  5. Comment/delete in textext.py the lines:
       if 'plot-svg' not in out:
          raise RuntimeError("Pstoedit not compiled with plot-svg support")
    Apparently the script does not detect that pstoedit does have plot-svg support. Indeed, when running the command
    pstoedit -help | grep svg

    in the Terminal we get

       pstoedit: version 3.45 / DLL interface 108 (build Oct 10 2008 - release
       build - g++ 4.0.1 (Apple Inc. build 5484)) : Copyright (C) 1993 - 2007
       Wolfgang Glunz
           plot-svg:        .svg:    svg  via GNU libplot
       (/sw/lib/pstoedit-3.45/libp2edrvlplot.so)

    so we know it is installed!

  6. In textext.py replace
       exec_command(['pdflatex', self.tmp('tex')] + latexOpts)

    with

       exec_command(['/usr/texbin/pdflatex', self.tmp('tex')] + latexOpts)

    Even though the path to pdflatex is in the shell's $PATH environmental variable, textext.py needs the full path, as applications get their value of $PATH from ~/.MacOSX/environment.plist. Another solution is to make sure that ~/.MacOSX/environment.plist has /usr/texbin in PATH.

  7. Place textext.inx and textext.py inside the application bundle. This is done by right-clicking on Inkscape.app on the Finder and selecting Show Package contents and there going to
      Contents/Resources/extensions/

    When putting it in

      ~/.inkscape/extensions/ 

    it does not work.

  8. Remove libpng12.0.dylib from
    Contents/Resources/lib/ 

    inside the Inkscape application bundle. The version included is not new enough for

    pstoedit. I believe that its role will be taken by the libpng12.0.dylib installed by Fink in
    /sw/lib/
    or already in the system in
    /usr/X11/lib/

If successful you will have a TeX Text item in the Effects menu in Inkscape, which you can use to insert/edit LaTeX into your open document.

These instructions were gleaned from the Inkscape forum.

IPE

GUI editor that allows easy embedding of LaTeX in the resulting PDF (default save format). The LaTeX can be edited later when the PDF is loaded into IPE. Cannot read generic PDF documents (but you may get lucky, I guess).

JasTeX

by Michel Duong, Gregory Kokanosky and Yannick Ozouf

Open source (GPL)

GUI for GasTeX.

An updated version by Pierre Moro is available on the GasTeX page.

Jpgfdraw

by Nicola Talbot.

Open source (GPL)

An interactive multiplatform 2D graphicse editor that output pgf code. Multiplatform (java). Output formats also include eps, png and svg.

jPicEdit

Open source (GPL)

Described on the project web site as a:

... multi-platform and interactive picture editor for LaTeX and PSTricks...

LaTeXDraw

Open source (GPL)

Written in Java. An interactive multiplatform 2D graphicse editor that can output eps and pstricks code. Latest version 2.0 stores files in svg format.

WARMFigToPDF

(Temporarily hosted by WSU. Email Joseph Slater for problems.)

TUG Article on WARMFigToPDF

by Francesco Costanzo and Gary L. Gray

Freeware with source

A system for labeling figures generated with Adobe Illustrator. WARMFigToPDF is an AppleScript that works with Illustrator, WARMreader, and xy-pic to automate the process of labeling figures in LaTeX. From the website:

  • Label our figure with some reasonably complex mathematical expressions.
  • Uses the same fonts as the document. Generally means Computer Modern, Lucida Bright, or Times.
  • Works well with Adobe Illustrator (for example drawn from scratch or cleaned up and annotated Mathematica plots).

WARMreader/Xy-pic

by Ross Moore

Freeware

For Textures, OzTeX and possibly CMacTeX
I recently started using WARMreader with Xy-pic to label plots and diagrams. The reason I have done this is because of the endless string of problems with various versions of Adobe Illustrator and TeX fonts (who knows what Illustrator for OS X will do to this situation when it finally shows up). It is rather confusing at first, but it is quite nice once you get the hang of it. By itself, Xy-pic is a package for typesetting a variety of graphs and diagrams with TeX. Xy-pic works with most formats (including LaTeX, AMS-LaTeX, AMS-TeX, and plain TeX), in particular Xy-pic is provided as a LaTeX2e `supported package' (following the `CTAN LaTeX2e bundle' standard).WARMreader, along with Xy-pic, is a system for placing labels on included graphics in a way that does not require the user be concerned with explicit lengths or coordinates. The full system was developed specifically for use on Macintosh computers but, due to its modularity, can be used with other systems as well.The WARMreader package defines macros to read information from a file, indicating the location of specially marked points where labels may be desired. It also provides a link to the Xy-pic macros, which allow arbitrary labels to be attached at these points.

Personal tools