Re: Lyx command line question: summarized

2005-10-19 Thread Mike Meyer
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

Re: Lyx command line question: summarized

2005-10-19 Thread Angus Leeming
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

Re: Lyx command line question: summarized

2005-10-19 Thread Lars Gullik Bjønnes
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

Re: Lyx command line question: summarized

2005-10-19 Thread Mike Meyer
[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

Re: Lyx command line question: summarized

2005-10-19 Thread Angus Leeming
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 >

Re: Lyx command line question: summarized

2005-10-19 Thread Lars Gullik Bjønnes
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 "

RE: Lyx command line question: summarized

2005-10-19 Thread Angus Leeming
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

RE: Lyx command line question: summarized

2005-10-19 Thread Mike Meyer
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

RE: Lyx command line question: summarized

2005-10-19 Thread Sanders, Maarten (M.J.L.)
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