latex
, not for pdflatex
. Here is a general approach. fragmaster.pl
from http://tug.ctan.org/pkg/fragmaster and save it in ~/bin
and chmod a+x fragmaster.pl
foo_fm.eps
and an accompanying LaTeX command file foo_fm
fragmaster.pl foo
to create self-contained foo.eps
and foo.pdf
which can be inserted into LaTeX documents the usual way
Here is an example using R.
x <- cbind(Age=format(c(23.0,9.7)), Sex=c('Male','Female')) tab <- latexTabular(x, align='rl') # new function in Hmisc
cat('\\psfrag{ww}{\\small', tab, '}', '\\psfrag{fx}{$f(x)$}', sep='\n', file='psfrag2_fm')
system('fragmaster.pl psfrag2')pdf
file is attached.
NOTE: If you install psfrag
you may need to sudo cp -p /usr/share/texmf/tex/latex/psfrag/psfrag.pro /usr/share/texmf-texlive/dvips/base
sudo apt-get install texlive-extra-utils
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
psfrag2.pdf | manage | 6 K | 17 Aug 2007 - 15:07 | FrankHarrell | Example output of psfrag with LaTeX table inserted |