CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Include OpenFoam code Latex (http://www.cfd-online.com/Forums/openfoam-post-processing/109485-include-openfoam-code-latex.html)

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?

Thanks!

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 http://techlogbook.wordpress.com/200...code-in-latex/ 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:

http://code.google.com/p/minted/

santiagomarquezd November 26, 2012 13:53

I use lgrind but minted looks more pretty indeed.

Regards.

Phicau November 28, 2012 03:56

I use Listings:

http://en.wikibooks.org/wiki/LaTeX/Packages/Listings


All times are GMT -4. The time now is 22:52.