Herbert Voss wrote:

> > Is it possible to insert a label in an algorithm float and reference later (a
> > la table floats, figure floats)?  I get an error at the reference (not
> > \def'ed) when I try to do it.  (I'm using the report class, 1.1.6fix1 from
> > the rpm).
>
> can you give a short example-file?
>

Interesting - when trying to create a short example, I find that it only breaks
when I include the hyperref package.  I'm pretty much a novice when it comes to
latex... am I using it wrong?

Brett

-------------- begin lyx file ---------------
#LyX 1.1 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass report
\begin_preamble
\usepackage[dvips]{hyperref}
\end_preamble
\language american
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize default
\spacing single
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 2
\tocdepth 2
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Standard

This is an example file.
 See Algorithm
\begin_inset LatexCommand \ref{algEx}

\end_inset

 please.
\begin_float alg
\layout LyX-Code

This is an example
\layout Caption


\begin_inset LatexCommand \label{algEx}

\end_inset

An example
\end_float

\the_end


Reply via email to