Angus Leeming wrote:
Colin J. Williams wrote:
Angus,
Thanks for the pointer to preview.sty. I have obtained the
preview-latex.tar file but am not clear as to where it should be
installed.
LyX doesn't need the whole thing. Here I have:
$ ls /usr/share/texmf/tex/latex/preview prauctex.cfg preview.sty prshowbox.def prtracingall.def prauctex.def prfootnotes.def prshowlabels.def prcounters.def prlyx.def prtightpage.def
where /usr/share/texmf/ is the 'base' of my TeX distribution's (teTeX)
support files. I tell TeX about these files by running texhash
from /usr/share/texmf/. If you're using MikTeX, I see a very recent mail
http://article.gmane.org/gmane.editors.lyx.general:20367 Re: Windows equivalent of texhash?
that may help you.
Thanks, I'll work on this.
Regarding lyxpreview2ppm.py, the relevant code, from lines 191 to 196 would appear to be:
found_fontsize = 0 found_magnification = 0
# Default values
magnification = 1000.0
fontsize = 0.0
Ok. I've obviously updated the version of lyxpreview2ppm.py. Grab the most
recent version from
http://www.lyx.org/cgi-bin/viewcvs.cgi/*checkout*/lyx-devel/lib/scripts/Attic/lyxpreview2ppm.py?rev=1.1.2.5&only_with_tag=BRANCH_1_3_X
Equivalent URL: http://tinyurl.com/5r6my
Thanks, I have installed this. Now, the response I get is:
>>> Failed to extract metrics info from c4.log
I'll work on the preview package and try again.
Incidentally, I found no version or date stamp in the text of either lyxpreview2ppm.py and so it would be easy to mix the scripts.
Colin W
The word Fontsize doesn't appear in the log file.
That's because you don't have preview.sty installed and usable by LaTeX.
Thanks again,
Colin W.
