Alex Casti wrote:
> I'm now using lyx-1.2.0 on a Redhat Linux 7.1 machine.
> 
> -----------------
> (1) Caption Question
> -----------------
> In older versions, insertion of a figure float automatically
> included a caption.  Not so in the new version.  To put in
> a caption, I now include in the figure float environment
> a LATEX-mode box like

At  the bottom of the menu at the top left corner (where you selcet all 
enviroments such as standard, chapter, itemize...), there is a caption 
environment.
I agree that the previous method was more convenient.

> 
> \caption{caption text}
> 
> My question: how do I insert math formulas within the caption without
> having to bang out all the raw latex?  That is, I want the WYSIWYG
> feature within the caption, but the LATEX enviornment
> doesn't seem to allow it.

It is possible to combine raw latex and lyx. I simply split the latex 
code into two environments between which I use regular code (see 
attached file). I find this usefull in other instances as well.

I hope this helps,

Amir.
#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 220
\textclass article
\language english
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\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 Float figure
placement htbp
wide false
collapsed false

\layout Standard


\begin_inset Graphics FormatVersion 1
        filename figure.eps
        BoundingBox 0 0 291bp 180bp 
        display default
        size_type 0
        rotateOrigin center
        lyxsize_type 0

\end_inset 


\layout Caption

Caption enviroment from the menu
\end_inset 


\layout Standard


\begin_inset Float figure
placement htbp
wide false
collapsed false

\layout Standard


\begin_inset Graphics FormatVersion 1
        filename figure.eps
        BoundingBox 0 0 291bp 180bp 
        display default
        size_type 0
        rotateOrigin center
        lyxsize_type 0

\end_inset 


\layout Standard
\align center 

\begin_inset ERT
status Collapsed

\layout Standard

\backslash 
caption{A caption using ERT, an equation: 
\end_inset 


\begin_inset Formula $1+1\neq 3,$
\end_inset 


\begin_inset ERT
status Collapsed

\layout Standard
 and then some more text}
\end_inset 


\end_inset 


\the_end

Reply via email to