CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Include OpenFoam code Latex

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By l_r_mcglashan

Reply
 
LinkBack Thread Tools Display Modes
Old   November 19, 2012, 05:47
Default Include OpenFoam code Latex
  #1
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
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 is offline   Reply With Quote

Old   November 22, 2012, 09:23
Default
  #2
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
Come on, nobody ever included some code in Latex?
emirust is offline   Reply With Quote

Old   November 22, 2012, 09:40
Default
  #3
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Mol, Belgium
Posts: 295
Rep Power: 13
Lieven will become famous soon enough
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.
Lieven is offline   Reply With Quote

Old   November 22, 2012, 11:42
Default
  #4
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 14
l_r_mcglashan will become famous soon enough
I use minted:

http://code.google.com/p/minted/
lakeat likes this.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   November 26, 2012, 13:53
Default
  #5
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
I use lgrind but minted looks more pretty indeed.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   November 28, 2012, 03:56
Default
  #6
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Posts: 237
Rep Power: 7
Phicau is on a distinguished road
I use Listings:

http://en.wikibooks.org/wiki/LaTeX/Packages/Listings
Phicau is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cht tutorial in 15 braennstroem OpenFOAM Running, Solving & CFD 197 June 10, 2015 03:02
Mapping of pointFields with topology changes mturcios777 OpenFOAM Programming & Development 15 May 28, 2015 21:29
importing FORTRAN code to OPENFOAM s.m OpenFOAM Pre-Processing 2 October 30, 2012 09:52
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


All times are GMT -4. The time now is 07:44.