Skip to content
Raphael edited this page Jun 14, 2016 · 12 revisions

Installation

Aside from a working LaTeX installation (TeX Live recommended), all you need is

  • a working Ruby installation (version 2.3.0 or higher) and
  • a working Gnuplot installation.

The latter is due to a shortcoming in how dependencies are handles (cf. #65). This is going to be fixed at some point in the future.

Then,

  • clone ltx2any to your machine with Git, e.g.

    git clone https://github.com/akerbos/ltx2any.git /your/path/to/ltx2any

    on UNIX-style shells, and

  • put (a link to) ltx2any.rb into the PATH.

Tips for GNU/Linux

  • You can symlink Bash script ltx2any from a folder in your PATH.
  • A convenient way to install Pandoc is with cabal update; cabal install pandoc. You can keep it up to date using the same command.

Tips for Windows

  • Install Ruby 2.3.0 (x64) or later by using the RubyInstaller.

  • Install gnuplot; gp503-win32-mingw.exe works.

    During installation, at "Select Additional Tasks", put a checkmark at "Add application directory to your PATH environment variable" (scroll down at the window).

  • pandoc works if its available in your PATH environment.

  • Having ruby and gnuplot installed, you can run ltx2any by invoking ruby <path-to-clone-of-ltx2any>\ltx2any.rb <file>.

Provided by koppor

Integration with editors and IDEs

TeXstudio

  1. Open Preferences -> Build.

  2. add a User Command named ltx2any:ltx2any with content /your/path/to/ltx2any/ltx2any -lf raw -synctex %.

    Note: Option -lf raw (raw logfile) enables error/warning display of TeXStudio. If you want to use any of the processed ltx2any logs, change this accordingly.

  3. Change Build & View to txs:///ltx2any | txs:///view-pdf.

Provided by samcarter8

Clone this wiki locally