CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Include OpenFoam code Latex (

emirust November 19, 2012 05:47

Include OpenFoam code Latex
Hello foamers!

I couldn't seem to find any threads on including OpenFoam code in Latex (for example some code from the blockMeshDict).

I guess the listings package is the one to be used, but what are the options you specify to get a neat result?


emirust November 22, 2012 09:23

Come on, nobody ever included some code in Latex? ;)

Lieven November 22, 2012 09:40

You can always check out or similar websites but don't forget to change the special characters into the latex-format.

l_r_mcglashan November 22, 2012 11:42

I use minted:

santiagomarquezd November 26, 2012 13:53

I use lgrind but minted looks more pretty indeed.


Phicau November 28, 2012 03:56

I use Listings:

All times are GMT -4. The time now is 00:11.