ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* **SPAM** ConTeXt breaks pdfcrop
@ 2012-06-18  6:38 S Barmeier
  2012-06-18 10:47 ` Vladimir Lomov
  0 siblings, 1 reply; 6+ messages in thread
From: S Barmeier @ 2012-06-18  6:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Thank you.
Severin

P.S.: I'm on ubuntu 12.04.
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: **SPAM** ConTeXt breaks pdfcrop
  2012-06-18  6:38 **SPAM** ConTeXt breaks pdfcrop S Barmeier
@ 2012-06-18 10:47 ` Vladimir Lomov
  2012-06-21  0:00   ` S Barmeier
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Lomov @ 2012-06-18 10:47 UTC (permalink / raw)
  To: ntg-context

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

-- 
"Protozoa are small, and bacteria are small, but viruses are smaller
 than the both put together."
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: **SPAM** ConTeXt breaks pdfcrop
  2012-06-18 10:47 ` Vladimir Lomov
@ 2012-06-21  0:00   ` S Barmeier
  2012-06-21  0:32     ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: S Barmeier @ 2012-06-21  0:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: **SPAM** ConTeXt breaks pdfcrop
  2012-06-21  0:00   ` S Barmeier
@ 2012-06-21  0:32     ` Aditya Mahajan
  2012-06-21  0:42       ` S Barmeier
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2012-06-21  0:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Thu, 21 Jun 2012, S Barmeier wrote:

> 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?

You can also use pdftrimwhite (requires perl) which is part of the ConText 
distribution:

mtxrun pdftrimwhite filename.pdf result.pdf

Aditya


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: **SPAM** ConTeXt breaks pdfcrop
  2012-06-21  0:32     ` Aditya Mahajan
@ 2012-06-21  0:42       ` S Barmeier
  2012-06-21  0:45         ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: S Barmeier @ 2012-06-21  0:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 06/21/2012 09:32 AM, Aditya Mahajan wrote:
> 
> On Thu, 21 Jun 2012, S Barmeier wrote:
> 
>> 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:
>>>> ...
>>>> Does anybody have a suggestion of how to deal with this issue
>>>> successfully?
> 
> You can also use pdftrimwhite (requires perl) which is part of the
> ConText distribution:
> 
> mtxrun pdftrimwhite filename.pdf result.pdf
> 
> Aditya

Nice, does there exist documentation for pdftrimwhite? Running it on a
two-paged document, the output only contains the first page and clips
the document to the very edge. Is there a way to have all pages with a
1cm margin?

Severin
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: **SPAM** ConTeXt breaks pdfcrop
  2012-06-21  0:42       ` S Barmeier
@ 2012-06-21  0:45         ` Aditya Mahajan
  0 siblings, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2012-06-21  0:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 21 Jun 2012, S Barmeier wrote:

> On 06/21/2012 09:32 AM, Aditya Mahajan wrote:
>>
>> On Thu, 21 Jun 2012, S Barmeier wrote:
>>
>>> 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:
>>>>> ...
>>>>> Does anybody have a suggestion of how to deal with this issue
>>>>> successfully?
>>
>> You can also use pdftrimwhite (requires perl) which is part of the
>> ConText distribution:
>>
>> mtxrun pdftrimwhite filename.pdf result.pdf
>>
>> Aditya
>
> Nice, does there exist documentation for pdftrimwhite? Running it on a
> two-paged document, the output only contains the first page and clips
> the document to the very edge. Is there a way to have all pages with a
> 1cm margin?

There is some documentation in the source code.

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-06-21  0:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-18  6:38 **SPAM** ConTeXt breaks pdfcrop S Barmeier
2012-06-18 10:47 ` Vladimir Lomov
2012-06-21  0:00   ` S Barmeier
2012-06-21  0:32     ` Aditya Mahajan
2012-06-21  0:42       ` S Barmeier
2012-06-21  0:45         ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).