# Blog entry generator

Here is a quick and dirty script I set up to generate my blog entries.

You can use LaTeX code and soucecode to write your blog entries. LaTeX code is transformed into PNG. Sourcecode is transformed so it can be read used with syntaxhighlighter.

You need some software to compile the things:

• Python (tested with version 3.1.1)
• LaTeX
• dvipng

The script can be invoked using the command (here new.htm is compiled to a blog entry):

python latex2png.py new.html

## To-do-list

• support multi-line LaTeX-parts
• refactor code

## An example:

Below you find a piece of code and the result.

< h1 > An example < /h1 >

Here is a simple example using a formula: $\sqrt{2+x^2}$.

And some code:

[code cpp]
int main(){
return 0;
}
[/code]


Below you can see the result:

# An example

Here is a simple example using a formula: .

And some code:

int main(){
return 0;
}