Angus Leeming <[EMAIL PROTECTED]> writes: > On Thursday 11 July 2002 1:51 am, David Kastrup wrote: > > Take a look at the output when you run previews with the added "lyx" > > option (it must come after the tightpage option, or it will fail to > > report the additional bounding box adjustments from the tightpage > > option). > > David, you're a star! > > Putting this in a script: > #!/bin/sh > FONTSIZE=`sed -e "s/Preview: Fontsize \(.*\)pt./\1/p;d" < 1lyxpreview.log` > echo ${FONTSIZE} > sed -e "/^Preview: Snippet/s/Preview: \(.*\) > ended.(\(.*\)+\(.*\)x\(.*\))/\1:
That regexp looks _slow_. And I am surprised that the + should not be interpreted specially. How about ended\.(\(-?[0-9]*\)\+\(-?[0-9]+\)x\(-?[0-9]+\))/\1 > \2 \3 \4/p;d" < 1lyxpreview.log > 1lyxpreview.metrics Anyhow: if you need your entries in a different format, there is no sane reason why I should not write them out immediately in the format you desire: this is a LyX-specific option, no need to make it more complicated for LyX to parse it than necessary. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum Email: [EMAIL PROTECTED]