Archive

Posts Tagged ‘latex’

Convert PDF to EPS

July 13, 2011 Leave a comment

Problem
I wanted to submit a paper but they required the LaTeX source too, including the images. They accepted EPS images but not PDF! WTF? All my images are in PDF format. How to convert them to EPS?

Solution

pdftops -eps file.pdf

This tip is from here.

Appendix
Here I had another difficulty: EPS images are not supported by pdflatex. Great! So I had to switch back to the old latex command…

Compilation with pdflatex:

#!/bin/bash

MAIN=main.tex

pdflatex $MAIN.tex
bibtex $MAIN
pdflatex $MAIN.tex
pdflatex $MAIN.tex

\rm *.aux *.blg *.dvi *.log *.bbl *.flg *.idx *.ind *.lof *.lot *.toc *.glo *.gls *.ilg 2>/dev/null

Compilation with latex:

#!/bin/bash

MAIN=main.tex

LATEX=latex

$LATEX $MAIN.tex
bibtex $MAIN
$LATEX $MAIN.tex
$LATEX $MAIN.tex
dvips $MAIN.dvi -o $MAIN.ps
ps2pdf $MAIN.ps

\rm $MAIN.ps *.aux *.blg *.dvi *.log *.bbl *.flg *.idx *.ind *.lof *.lot *.toc *.glo *.gls *.ilg 2>/dev/null
Categories: latex Tags: , , , ,

latex installation

October 15, 2010 1 comment

On a new system I had to install the following packages to get LaTeX working correctly: texlive-base, texlive, and texlive-latex-extra. They will pull in several other packages too.

sudo apt-get install \
    texlive-base \
    texlive \
    texlive-latex-extra \
    texlive-metapost

Without texlive I got reports of missing fonts. Without texlive-latex-extra I got errors about missing add-ons.

Categories: ubuntu Tags: , ,
Follow

Get every new post delivered to your Inbox.

Join 42 other followers