In <[EMAIL PROTECTED]>, Angus Leeming <[EMAIL PROTECTED]> typed:
> Lars Gullik Bjønnes wrote:
> > | The problem is that "for" splits the returned list of files using
> > | whitespace...
> >
> > find foo -name \*.gif -print -exec convert {} `basename {}`.png \;
> > then (ha!)
>
> Thanks. I've just
Lars Gullik Bjønnes wrote:
> | The problem is that "for" splits the returned list of files using
> | whitespace...
>
> find foo -name \*.gif -print -exec convert {} `basename {}`.png \;
> then (ha!)
Thanks. I've just learnt something.
Don't you have to quote the args passed to convert? Bet you s
Angus Leeming <[EMAIL PROTECTED]> writes:
| The problem is that "for" splits the returned list of files using
| whitespace...
find foo -name \*.gif -print -exec convert {} `basename {}`.png \;
then (ha!)
| > (and you forgot a '$')
|
| Right :) (And restricted the search to the foo directory ra
[drifting off-topic]
In <[EMAIL PROTECTED]>, Angus Leeming <[EMAIL PROTECTED]> typed:
> The problem is that "for" splits the returned list of files using
> whitespace...
>
> Perhaps the bigger problem is that you can overrun the internal array size
> used by "for" to store the list of returne
Lars Gullik Bjønnes wrote:
> Angus Leeming writes:
> | find foo -name '*.gif' | while read file
> | do
> | pngfile=`basename "$file" .gif`.png
> | convert "$file" "pngfile"
> | done
> Hmm... I thought thiw was usually written as a for-loop.
> for file in `find foo -name \*.gif` ; do
>
Angus Leeming <[EMAIL PROTECTED]> writes:
| find foo -name '*.gif' | while read file
| do
| pngfile=`basename "$file" .gif`.png
| convert "$file" "pngfile"
| done
Hmm... I thought thiw was usually written as a for-loop.
for file in `find foo -name \*.gif` ; do
pngfile=`basename "
Mike Meyer wrote:
>> 2) run, before you run pdflatex, something like
>> for FILE in `find . -name '*\.gif'`; do convert $FILE `echo $FILE |
>> sed 's/\(.*\.\)gif/\1png/'`; done
>
> basename is safer:
>
> for file in $(find . -name *.gif)
> do
> convert $file $(basename $file .gif).png
> done
In <[EMAIL PROTECTED]>, Sanders, Maarten (M.J.L.) <[EMAIL PROTECTED]> typed:
> 2) run, before you run pdflatex, something like
> for FILE in `find . -name '*\.gif'`; do convert $FILE `echo $FILE | sed
> 's/\(.*\.\)gif/\1png/'`; done
basename is safer:
for file in $(find . -name *.gif)
do
conv
Thank you for all the contribution,
Summarized:
The latex export command line option works fine for regular latex, latex
myfile.tex generates a valid dvi file.
If you want to use pdflatex you should either:
1) edit the resulting .tex file and replace \usepackage{graphicx} with
\usepackage[dvips