![](https://secure.gravatar.com/avatar/3440a230204ebcff4f0c9aa258defcda.jpg?s=120&d=mm&r=g)
On 06/18/2012 07:47 PM, Vladimir Lomov wrote:
Hello, ** S Barmeier [2012-06-18 15:38:20 +0900]:
I guess this has to do with my path variables, but having context minimals installed prevents pdfcrop from running successfully:
PDFCROP 1.33, 2012/02/01 - Copyright (c) 2002-2012 by Heiko Oberdiek.
kpathsea: Running mktexfmt pdftex.fmt /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: 395: /usr/local/texlive/2010/bin/x86_64-linux/mktexfmt: /home/user/context/tex/texmf/texconfig/tcfmgr: not found fmtutil: config file `fmtutil.cnf' not found. !!! Error: pdfTeX run failed!
Does anybody have a suggestion of how to deal with this issue successfully?
Do you familiar with shell script writing?
Thank you. Severin
P.S.: I'm on ubuntu 12.04.
Save this code as `pdfcrop-tl' (or use any other name, except pdfcrop) <code> #!/bin/bash
PATH=/usr/local/texlive/2010/bin/x86_64-linux:$PATH pdfcrop $@ exit 0 </code> and run as <terminal> $ pdfcrop-tl FILE.PDF </terminal>
(If I not mistake this is known as `wrapper'.)
--- WBR, Vladimir Lomov
Many thanks! Severin