On Mon, Jan 22, 2007 at 11:23:20AM +0100, Jean-Marc Lasgouttes wrote:

> >>>>> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes:
> 
> Enrico> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
> >>  >>>>> "Bob" == Bob Lounsbury <[EMAIL PROTECTED]> writes:
> >> 
> Bob> Alan is using LyX as a teaching tool so he wanted to zoom his
> Bob> screen for easier viewing, but when this is done, on mac at
> Bob> least, only the text size is increased not the math preview size.
> >>  It is true for linux too. It would be a good idea to report that
> >> bug to bugzilla. It is related to this
> >> http://bugzilla.lyx.org/show_bug.cgi?id=2200
> >> 
> >> but I believe the patch in there is not the right one and will not
> >> fix the issue.
> 
> Enrico> Because it is a different issue. Bug 2200 is about the
> Enrico> following: 1) Load a document with math formulas. In
> Enrico> "Document->Settings->Text Layout" set the document font size
> Enrico> to 10 and save the document as "size10.lyx". 2) Now set the
> Enrico> document font size to 12 and save it as "size12.lyx" 3) Close
> Enrico> the document and activate "Instant Preview" in
> Enrico> Tools->Preferences. 4) Load both "size10.lyx" and
> Enrico> "size12.lyx". See how the screen fonts are the same size in
> Enrico> both documents but the preview snippets are 1.2 times bigger
> Enrico> in "size12.lyx".
> 
> I think it is actually the same issue :) If I use the foils class, the
> preview snippet will not have the right size because the defults size
> is not 10pt and the default font on screen is larger that Normal. So
> what the code should do is ask to generate previews with a size which
> fits the normal size in latex.

Whatever it is, there's something wrong with this code. For example,
I discovered that what I say above occurs only when using dvipng, but
it does not when the legacy script is used.

I attach here a .lyx file and two previews obtained either with dvipng
installed or without it (I simply renamed dvipng as dvipng-no and
reconfigured LyX). So, I think that, as it stands now, we should first
declare if we have dvipng or not before starting any discussion...

> OK, OK this is not clear, but I would need to read the code and take
> some time to explain it better. In a few words, there should be a way
> to tell latex what our normal size is (in pixels?) and then the latex
> preview code should use information on what its internal normal size
> it and derive scaling factors from there.

Uhm, I think that we should care about the size of the screen fonts in
LyX and not about their size in latex. Whatever the size of the generated
preview snippets, they should be properly scaled. And rescaled when the
zoom factor changes.

-- 
Enrico
#LyX 1.4.3 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass foils
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize default
\use_geometry false
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header

\begin_body

\begin_layout Standard
Letting 
\begin_inset Formula $y=f(x)$
\end_inset

, we have...
\end_layout

\end_body
\end_document

Attachment: using_dvipng.png
Description: PNG image

Attachment: without_dvipng.png
Description: PNG image

Reply via email to