KLFBackend::klfInput Struct Reference

Specific input to KLFBackend::getLatexFormula(). More...

#include <klfbackend.h>

List of all members.

Public Attributes

QString latex
QString mathmode
QString preamble
unsigned long fg_color
unsigned long bg_color
int dpi


Detailed Description

Specific input to KLFBackend::getLatexFormula().

This struct descibes the input of getLatexFormula(), ie. the LaTeX code, the mathmode to use, the dpi for rendering png, colors etc.

Definition at line 90 of file klfbackend.h.


Member Data Documentation

QString KLFBackend::klfInput::latex
 

The latex code to render

Definition at line 91 of file klfbackend.h.

Referenced by KLFBackend::getLatexFormula().

QString KLFBackend::klfInput::mathmode
 

The mathmode to use. You may pass an arbitrary string containing '...' . '...' will be replaced by the latex code. Examples are:

  • \[ ... \]
  • $ ... $

Definition at line 92 of file klfbackend.h.

QString KLFBackend::klfInput::preamble
 

The LaTeX preample, ie the code that appears after '\documentclass{...}' and before '\begin{document}'

Definition at line 97 of file klfbackend.h.

unsigned long KLFBackend::klfInput::fg_color
 

The foreground color to use, in format given by qRgb(r, g, b). You may not specify an alpha value here, it will be ignored.

Definition at line 99 of file klfbackend.h.

unsigned long KLFBackend::klfInput::bg_color
 

The background color to use, in format given by qRgba(r, g, b, alpha).

Warning:
background alpha value can only be 0 or 255, not any arbitrary value. Any non-zero value will be considered as 255.

(E)PS and PDF formats can't handle transparency.

Definition at line 101 of file klfbackend.h.

int KLFBackend::klfInput::dpi
 

The dots per inch resolution to use to render the image. This is directly passed to the -r option of ghostscript

Definition at line 105 of file klfbackend.h.


The documentation for this struct was generated from the following file:
Generated on Sat Apr 28 14:14:02 2007 for KLatexFormula-Library-Backend by  doxygen 1.4.6