KLATEXFORMULA
Home
About
Downloads
Screen Shots
Wiki (Manuals)
News

User Manual:Tips and Tricks

From KLFWiki

Jump to: navigation, search

Contents

Command-Line Usage

You can use KLatexFormula in command-line mode (eg. for scripts) by invoking klatexformula_cmdl executable. Type klatexformula_cmdl --help for more information. (On linux and mac, klatexformula_cmdl and klatexformula are the same executable; on windows klatexformula_cmdl is a console application.)

Skins

KLatexFormula can change appearance using the skin plugin. This plugin is installed by default, and is activated by default, you just need to go choose a skin under the "Plugins" tab of the settings dialog, under the "Skin" heading.

Note that skins may also provide a syntax highlighting scheme. To avoid changing your current scheme, check the "Forbid skins from changing syntax highlighting scheme" check box.

System Tray Integration

KLatexFormula can embed itself in the system tray, using the system tray icon plugin. This plugin is installed and activated by default (in klatexformula 3.2), you just need to configure it.

  • go to Expanded Mode -> Settings... -> Plugins page -> "System Tray Icon" heading
  • Check the "Dock into System Tray" check box

At this point, KLatexFormula should integrate itself in the system tray. You can also further configure the other options there, such as overriding the minimize window action to send the window to the system tray instead.

OpenOffice.org Integration

KLatexFormula can be used with OpenOffice.org Writer (text documents), Draw (drawings) and Impress (presentations) using a convenient extension provided in the extras/ folder of KLatexFormula source (since KLatexFormula version 3.2), named KLFOOo.oxt.

This extension provides a toolbar to manipulate equations pasted from KLatexFormula. Select a pasted equation. You can reload this equation into KLatexFormula by clicking the "KLatexFormula" button, you can fix the equation aspect ratio with "Fix Aspect Ratio", or make the equation suitable for use inline in text ("Make Inline").

Note that for these functions to work as expected, the equation must have been pasted as an OpenOffice.org draw format (if needed, select the relevant export format from the drop-down menu under the DRAG/COPY/SAVE buttons in the KLatexFormula main window).

Note: equations pasted this way are (in most cases) compatible with the extension OOoLatex.

Inkscape and SVG Format

A KLatexFormula plugin to create SVG format output (to save to files, as well as to copy/paste and drag/drop) is available since version 3.2. It uses inkscape (minimum version 0.47) to convert EPS to SVG. The plugin can be found on the sourceforge file releases page (both precompiled and source). The plugin is called klfinksvg.

If you use the "Vector Formats" export type, you can copy and paste your equation into Inkscape as vector SVG, which is Inkscape's native format.

The easiest way is to download the extension file (klfinksvgplugin_addon.rcc) and drag & drop it into KLatexFormula's editor (since version 3.2.2) or install it with KLatexFormula's settings dialog (under Add-Ons tab).

Launching as independent process

Since version 3.2, KLatexFormula may be launched as a background, independent process (the program returns immediately to the caller) using the command-line option '--daemonize'. For example:

klatexformula --daemonize --interactive --latexinput 'f(x)=0'

will launch klatexformula with full GUI (as if --daemonize were not given), but will directly return to the shell, making klatexformula an independant process. This can be useful when invoking klatexformula from within other programs, so that klatexformula does not become a sub-process of that program (and when the latter exits, klatexformula can stay open).