Johan Ingvast wrote:

> Hi
> I use the preview of math which works fine.
> However now I want to use the package showkeys for my printouts. Then
> there is a problem with the preview. Both the preview package and
> the showkeys put the labels to the right of the equations, which
> makes them unreadable.
> Is there any way to either
> * Have preview package not use the option "showkeys"
> * Suppress the use of showkeys package when in preview mode

I think that the best solution here is to take this to the auctex list. 
That way David Kastrup can address the root cause of the problem.

The loading of the preview package is hard-coded within LyX as
\usepackage[active,delayed,dvips,showlabels,lyx]{preview}

I don't see any 'showkeys'. Do you mean you'd like to suppress the 
'showlabels' entry?

One way would be to pass the latex file through a filter in the lyxpreview 
script. The equivalent of:

    sed '/^\\usepackage.*{preview}/s/,showlabels//' input.tex > output.tex
    mv output.tex input.tex

-- 
Angus

Reply via email to