Morten Langlo wrote:

> s�n, 12 maj, 2002, 20:40:02 +0200, skrev Herbert Voss:
> 
>>Morten Langlo wrote:
>>
>>>I have just upgraded Lyx - and find that the method of 
>>>using EPS files and Psfrag, as described by Allen L. Barker 
>>>in "howToUseLatexMathWithXfig", has lost some of its functionality 
>>>in the Lyx-1.2 - i.e. when you scale the graphics in Lyx, the text 
>>>does not any more get scaled as in lyx-1.1.6.
>>>
>>>What to do? 
>>>
>>give a small working 1.1.6 examplefile together with the image.
>>
>>Herbert
>>
>>
> Here you have it - thanks!

the psfrags-parameter must be written in real tex and

the graphicx-package doesn't use the resize-command,
so you need a little trick. see attached file.

Herbert



-- 
http://www.lyx.org/help/
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass article
\begin_preamble
\usepackage{color}
\usepackage{graphics}
\usepackage[scanall]{psfrag}
\end_preamble
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{A1}{Here is a box of text and}
\layout Standard

\backslash 
psfrag{A2}{an equation:}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{A3}{
\end_inset 


\begin_inset Formula $\int _{0}^{y}\: dx\: \cos (x)$
\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{A4}{The equation can be}
\layout Standard

\backslash 
psfrag{A5}{entered in the Lyx}
\layout Standard

\backslash 
psfrag{A6}{editor's math mode.}
\layout Standard

\backslash 
psfrag{B1}{The default Latex}
\layout Standard

\backslash 
psfrag{B2}{font; $y^6=2$}
\layout Standard

\backslash 
psfrag{C1}{Math can be entered}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{C2}{with Latex 
\backslash 
$
\backslash 
$ too.}
\end_inset 

 
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{D1}{
\backslash 
Large This is the Latex Large font.}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{D2}{Here is not a displaymath formula: $
\backslash 
int_0^x$}
\end_inset 

 
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
psfrag{D3}{All Latex commands must appear in red in Lyx.}
\end_inset 


\layout Standard


\begin_inset Float figure
\begin_newfloat
        type figure
        placement htbp
        extension section
        within Figure
        caption "default"
        floatstyle plain
        wide listof
\end_newfloat
collapsed false

\layout Standard
\align center 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
resizebox*{3in}{!}{
\end_inset 


\begin_inset Graphics FormatVersion 1
        filename example2.eps
        display none
        size_kind original
        width 3in
        rotateOrigin center
        lyxsize_kind width_height
        lyxwidth 216bp
        lyxheight 119bp
\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption

Scaled down version.
\end_inset 


\the_end

Reply via email to