PHPackages                             gregwar/tex2png-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gregwar/tex2png-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

gregwar/tex2png-bundle
======================

LaTeX to PNG formulas converter

41.8k4[1 PRs](https://github.com/Gregwar/Tex2pngBundle/pulls)PHP

Since Jun 5Pushed 13y ago2 watchersCompare

[ Source](https://github.com/Gregwar/Tex2pngBundle)[ Packagist](https://packagist.org/packages/gregwar/tex2png-bundle)[ RSS](/packages/gregwar-tex2png-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Gregwar's Tex2pngBundle
=======================

[](#gregwars-tex2pngbundle)

`GregwarTex2pngBundle` provides a service and a twig helper to convert Tex formulas to PNG images

Installation
============

[](#installation)

### Step 1: Download the GregwarTex2pngBundle

[](#step-1-download-the-gregwartex2pngbundle)

***Using the vendors script***

Add the following lines to your `deps` file:

```
    [GregwarTex2pngBundle]
        git=git://github.com/Gregwar/Tex2pngBundle.git
        target=/bundles/Gregwar/Tex2pngBundle

```

Now, run the vendors script to download the bundle:

```
$ php bin/vendors install
```

***Using submodules***

If you prefer instead to use git submodules, then run the following:

```
$ git submodule add git://github.com/Gregwar/Tex2pngBundle.git vendor/bundles/Gregwar/Tex2pngBundle
$ git submodule update --init
```

***Using Composer***

Add the following to the "require" section of your `composer.json` file:

```
    "gregwar/tex2png-bundle": "1.0.0"

```

And update your dependencies

```
    php composer.phar update

```

### Step 2: Configure the Autoloader

[](#step-2-configure-the-autoloader)

If you use composer, you can skip this step.

Add it to your `autoload.pp` :

```
