Skip to content

Live previewing of PostScript/EPS files in Atom using GhostScript.

License

Notifications You must be signed in to change notification settings

Alhadis/Atom-PostScript

Repository files navigation

PostScript support for Atom

Live previews of PostScript/EPS files using GhostScript.

Figure 1: Structural formula rendering

To preview an .eps or .ps file, press CTRL + Shift + M.

Installation

  1. Install GhostScript if needed.
    Download a precompiled binary or install using a package manager.

    On Linux, using APT, DNF, et al:

    # Debian/Ubuntu
    sudo apt-get update
    sudo apt-get install ghostscript
    
    # RPM-based distros
    sudo yum install ghostscript

    On macOS, using Homebrew or MacPorts:

    # Homebrew
    brew install ghostscript
    
    # MacPorts
    sudo port install ghostscript

    On Windows, using Chocolatey:

    choco install ghostscript
  2. Clone this repository to ~/.atom/packages using Git.
    After checkout, install libraries needed by this package's UI:

    On Linux and macOS:

    cd ~/.atom/packages
    git clone 'https://github.com/Alhadis/Atom-PostScript.git' postscript
    cd postscript
    apm install .
    apm install --production file-icons

    On Windows:

    cd %HOMEPATH%\.atom\packages
    git clone "https://github.com/Alhadis/Atom-PostScript.git"
    ren Atom-PostScript postscript
    cd postscript
    apm install --production file-icons
    
    :: Node.js is required on Windows due to a bug in APM
    npm install --production .

About

Live previewing of PostScript/EPS files in Atom using GhostScript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published