Printing with FLTK: Difference between revisions

m
Minor format changes
(created stub for printing with OpenGL toolkit)
 
m (Minor format changes)
Line 1: Line 1:
Printing with graphics_toolkit FLTK has some known limitations:
Printing with graphics_toolkit FLTK has some known limitations:


* Tex/Latex symbols won't show up in the generated print even if they are
* Tex/Latex symbols won't show up in the generated print even if they are visible in the plot window. See bugs #42988, [http://savannah.gnu.org/bugs/?42320| #42320], #42340 which are mostly duplicate entries for the same problem.
  visible in the plot window. See bugs #42988, [http://savannah.gnu.org/bugs/?42320| #42320], #42340 which are
  mostly duplicate entries for the same problem.


* Can't print multiline text objects: [http://savannah.gnu.org/bugs/?31468 bug#31468]
* Can't print multiline text objects: [http://savannah.gnu.org/bugs/?31468 bug#31468]


But you can use LaTex if you want to include symbols or formulas.
However there are some ways to overcome these:
 
== Use print [ps|eps|pdf] latex [standalone] for symbols and formulas ==
 
See "help print" for a description of 'pslatex', 'epslatex'
See "help print" for a description of 'pslatex', 'epslatex'
'pdflatex', 'pslatexstandalone', 'epslatexstandalone', 'pdflatexstandalone'
'pdflatex', 'pslatexstandalone', 'epslatexstandalone', 'pdflatexstandalone'
Line 30: Line 31:
system ("gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r100x100 -dEPSCrop -sOutputFile=sombrero.png sombrero.ps")
system ("gs -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r100x100 -dEPSCrop -sOutputFile=sombrero.png sombrero.ps")
</syntaxhighlight>}}
</syntaxhighlight>}}
[[File:Sombrero_epslatexstandalone.png]]
== Use psfrag ==
TODO: Fill me!
219

edits