Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

Thursday, June 20, 2013

Makefile for LaTeX

Sometimes it is very useful to have standardized ways to compile documents. I use vim to edit LaTeX source, and I was looking for makefile for LaTeX for a while, when I found this project:

http://code.google.com/p/latex-makefile/downloads/detail?name=latex-makefile-2.2.0.tar.gz

Simply copy the Makefile in the directory on your linux system and type

$make
 Works perfectly for me for creating the pdf from the surce.

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