wxLatexDC

Categories: graphics,printingStatus: ALPHAComponent logo
Author: Christoph Schmidt-HieberwxWidgets supported ports: all
Current maintainer: Christoph Schmidt-HieberwxWidgets supported versions: 2.9
Latest version: 0.1Build system: Bakefile-based
Programming language: C++Samples provided: 1
External dependencies: noneDocumentation: hand

Description: wxLatexDC is a device context that will generate a LaTeX2e file from graphics and text that were drawn onto it. It makes use of PSTricks (http://tug.org/PSTricks) to create Tex-compatible PostScript macros. You can create a wxLatexDC in exactly the same way as a wxSVGFileDC. At present, only a small part of the DC drawing functions have been implemented. The major advantage of using LaTeX output rather than directly writing PostScript is that typesetting can be done in LaTeX, so that graphics seamlessly integrate into documents. A positive side effect is that the PSTricks macros are more easily readable than plain PostScript.

Links for wxLatexDC:


Example

^ TOP

Integrate drawings into LaTeX documents


Usage sample

^ TOP

// Usage of wxLatexDC is similar to other DCs (such as wxSVGFileDC):
// ...
wxLatexDC latexDC(filename,GetRect().width,GetRect().height,72.0);
Draw(latexDC);
// ...


% You can then include the output in a LaTeX document
% In your header, you need to include PSTricks:
\usepackage{pstricks}

% In your document, you simply integrate the tex file:
\input{./filename}

Documentation

^ TOP

The documentation for this component is available online <<<<<<< .mine here.

======= here.

>>>>>>> .r726

Known bugs

^ TOP

None. To submit a bug report please look at wxCode support page.


Future enhancements

^ TOP

None. To submit a feature request please look at wxCode support page.