File: //usr/share/inkscape/extensions/eqtexsvg.pyc
�
��Yc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d � Z d d � Z d � Z d e j
f d � � YZ e d k r� e � Z
e
j � n d S(
s%
eqtexsvg.py
functions for converting LaTeX equation string into SVG path
This extension need, to work properly:
- a TeX/LaTeX distribution (MiKTeX ...)
- pstoedit software: <http://www.pstoedit.net/pstoedit>
Copyright (C) 2006 Julien Vitard <julienvitard@gmail.com>
2010-04-04: Added support for custom packages
Christoph Schmidt-Hieber <christsc@gmx.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
i����Nc C sD | j d d � j d � } d } x | D] } | d | 7} q( W| S( Ns t s ,s \usepackage{%s}
( t replacet split( t pkgstringt pkglistt headert pkg( ( s* /usr/share/inkscape/extensions/eqtexsvg.pyt
parse_pkgs! s
R c C s^ t | d � } | j d � | j | � | j d � | j | � | j d � | j � d S( Nt wsv %% processed with eqtexsvg.py
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
s'