On 22.03.05, EXT / TEAMLOG MELLERIN Pierrick wrote:
> Hello,
> 
> I would like to know what is the code for putting a frame strictly around
> one graphic (figure) only ? 

> I know that the following code is OK :
> 
> \usepackage{framed}
> \renewenvironment{figure}[1][tbph]
>       [EMAIL PROTECTED]
>       [EMAIL PROTECTED]
> 
> But it applies to all the figures of the document ...

So try to mimick this in your float: Insert the float via Insert>Floats>Figure
and in the float use ERT for \begin{framed} and \end{framed}.

See also the attached example.

Guenter


-- 
G.Milde web.de
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{framed}
\end_preamble
\language english
\inputencoding latin1
\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
\leftmargin 2cm
\topmargin 1cm
\rightmargin 2cm
\bottommargin 2cm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
v Skoda 
\end_inset 

oder
\begin_inset ERT
status Collapsed

\layout Standard
 
\backslash 
v{S}koda
\end_inset 


\layout Standard


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{framed}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
centerline{
\end_inset 

[Place a figure here with Insert>Graphic]
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Caption

Frame picture and caption
\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
end{framed}
\end_inset 


\end_inset 


\begin_inset Float figure
wide false
collapsed false

\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
begin{framed}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
centerline{
\end_inset 

[Place a figure here with Insert>Graphic]
\begin_inset ERT
status Collapsed

\layout Standard
}
\end_inset 


\layout Standard


\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
end{framed}
\end_inset 


\layout Caption

Frame picture and caption
\end_inset 


\the_end

Reply via email to