David B <daavidb <at> gmail.com> writes:

> 
> 
> Hello,In LyX pre-2.0 I was able to put a cross-reference to an equation
 inside a
>  formula, so that it would look something like in this
image:
http://www.latex-community.org/forum/download/file.php?id=4130If I try to
do this in LyX 2.0 the reference ends up immediately 
> above the formula, but outside of it. Does anyone know how to put 
> cross-references in formulas in 2.0?Best Regards,David
> 
> 

Is the following what you want?

Paul

#LyX 2.0 created this file. For more info see http://www.lyx.org/
\lyxformat 413
\begin_document
\begin_header
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize letterpaper
\use_geometry true
\use_amsmath 1
\use_esint 1
\use_mhchem 1
\use_mathdots 1
\cite_engine basic
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\use_refstyle 1
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip smallskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Standard
First equation: 
\begin_inset Formula 
\begin{equation}
y=mx+b\label{eq:eq1}
\end{equation}

\end_inset

followed by second equation:
\begin_inset Formula 
\begin{eqnarray}
 & (\ref{eq:eq1})\nonumber \\
b & = & y-mx
\end{eqnarray}

\end_inset


\end_layout

\end_body
\end_document


Reply via email to