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
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
convert
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
Hi, Mike.
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 $file
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
[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 returned list of
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 rather
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 still
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 learnt something.
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
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
convert
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
Hi, Mike.
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 $file
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
[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 returned list of
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 rather
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 still
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 learnt something.
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
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
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
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
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
>
[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
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
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
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
27 matches
Mail list logo