Showing posts with label convert. Show all posts
Showing posts with label convert. Show all posts

Friday, June 17, 2016

Convert latex equation to png

A nice web resource to convert latex equation to .png figures is latex2png

Monday, July 6, 2015

Tuesday, August 27, 2013

How to convert latex to M$ office / openoffice readeable

The easiest and best solution I found so far to do this (under linux) is the method on
http://ubuntuforums.org/archive/index.php/t-1033441.html
Using htlatex

latex foo.tex
latex foo.tex
latex foo.tex
htlatex foo.tex
 This then will create a relatively good looking html, that can be read under soffice for instance and convert to doc / docx, etc...
This converts the equations to figures, and the layout could be better, but it works fine.

Another option is to use the  tex2rtf package
http://www.ctan.org/pkg/tex2rtf
This one generates an .rtf file, but the result on my files were not that good, and the equations were a disaster, and can not handle eps figures (pslatex)...

Tuesday, April 30, 2013

How to convert all eps files to pdf in a directory

If you just want to convert a single file, you can use epstopdf <file>
as described here

Sometimes I need to convert all the eps files to pdf, for instance because I use latexpdf and I have all the images in eps. Here is a short linux bash script that does the job.


#/usr/bin/bash
for file in *.eps
do
  epstopdf $file
done

This I have in a script file in the path. Don't forget to install the ghostscript package to be able to use epstopdf command.

Or another solution is using the find command:

 $ find . -name "*.eps" -exec epstopdf {} \;

as described in  http://www.linuxquestions.org/questions/linux-newbie-8/using-multiple-epstopdf-command-854618/

Thursday, February 28, 2013

How to use .tiff figures in MATLAB

Well, I was digging deep, and this issue does not seem to be solved :(
The best thing to do is to use png, pdf or eps instead.
When using linux the imagemagick package can be used for example as

$ convert myfile.tif myfile.pdf