KLatexFormula Documentation

Installation Instructions

Download

Check first that you meet the system requirements.

Download KLatexFormula by following the quick links on the downloads page or browse all available downloads.

If a binary is available for your system, go with that. Otherwise, you may try to find a package for your distribution or to compile from source.

You can browse the release notes page or the Changelog for more information on changes between different versions.

Install: Binary

If you find a binary for your system, run for it. Official binaries:

(The Mac OS X application is not signed since I don’t have an apple developer account, so follow these instructions to bypass your mac’s warnings and start klatexformula.)

The following binaries are known to be available, contributed by third parties:

I would like to express many thanks to all third-party contributors who have provided effort into packaging KLatexFormula for various systems. (If I failed to mention some packages please feel free to let me know, and I’ll add links to your packages too.)

Install: Compiling From Source

Make sure you have read the System Requirements and especially installed all relevant development packages (gcc/g++ or clang/clang++, make, cmake, Qt5 incl. devel packages, etc.)

Open a terminal, and change to the directory where you downloaded the source archive. Then extract the source archive with the following commands:

> tar xvfz klatexformula-4.1.0.tar.gz
> cd klatexformula-4.1.0/

As of klatexformula 3.2, CMake is used as build system. Although the build system is normally capable of detecting correctly many settings and providing a reasonable default configuration, it is highly flexible and customizable. You need cmake program installed to compile KLatexFormula (just to compile, not to run it). The CMake script will guess most settings and display informative output. You can re-run cmake as many times as needed with the relevant options (eg. -DVARNAME=<value>) to tune the build process as wanted. The minimum CMake version required is 3.1.

Make a build directory, and enter it:

> mkdir build
> cd build

Run CMake:

> cmake ..

Check the output of the CMake script. This build script should be clever enough to detect reasonable values for required settings. If you are unsure and just want to have klatexformula running, then as long as no error occurred, proceed to the following step (make). Otherwise you can fine-tune your build by changing cmake variable values as specified by the output of the CMake script. For example, to change the installation directory to /usr/local (default is /usr), run cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local. You may run cmake as many times as necessary to configure the build system to your needs.

Once the build system is set up as you like, run ‘make’ to compile the source code:

> make

Then you should install klatexformula to its final location (requires administrator password for system directory install):

> sudo make install
Password:

or, if you are installing to a location which doesn’t require administrator priviledges,

> make install

And you’re done! If nothing went wrong, you can launch klatexformula by selecting its menu entry in the system menu, or with the command:

> klatexformula

If you are new to klatexformula, you can have a look at the 30-Second Get Started Overview, or look at the Full Documentation.

Uninstalling KLatexFormula

If you’ve compiled klatexformula from source, you may uninstall klatexformula by running

> sudo make uninstall