Dear all,
If I write the label of an array immediately after the array and if I
change the paragraph spacing of the caption above the array from the
default one, a cross-reference to this array label appears in the dvi as
the section numbering instead of the array numbering. See the minimal
example attached.
A solution consists in setting the label in the caption paragraph.
Is this a bug or a feature ?
Nicolas
LyX 1.4.2 of Fri, Jul 13, 2006
Built on Aug 22 2006, 16:26:32
Configuration
Host type: i686-pc-linux-gnu
Special build flags: pch use-aspell use-ispell
C Compiler: gcc
C Compiler LyX flags:
C Compiler flags: -I/usr/X11R6/include -O2
C++ Compiler: g++ (4.0.1)
C++ Compiler LyX flags: -fno-exceptions
C++ Compiler flags: -I/usr/X11R6/include -O2
Linker flags:
Linker user flags:
Qt Frontend:
Qt version: 3.3.4
Packaging: posix
#LyX 1.4.2 created this file. For more info see http://www.lyx.org/
\lyxformat 245
\begin_document
\begin_header
\textclass article
\begin_preamble
\usepackage[version=3]{mhchem}
\usepackage{SIunits}
\end_preamble
\language french
\inputencoding auto
\fontscheme default
\graphics default
\float_placement th
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry true
\use_amsmath 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\leftmargin 25mm
\topmargin 25mm
\rightmargin 20mm
\bottommargin 20mm
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language french
\papercolumns 1
\papersides 2
\paperpagestyle default
\tracking_changes false
\output_changes false
\end_header
\begin_body
\begin_layout Title
Titre
\end_layout
\begin_layout Section
Section 1
\end_layout
\begin_layout Subsection
Sous-section 1
\end_layout
\begin_layout Standard
Une première référence : table
\begin_inset LatexCommand \ref{tab:Table essai}
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset Float table
wide false
sideways false
status open
\begin_layout Caption
Table essai 1.
\end_layout
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features>
<column alignment="center" valignment="top" leftline="true" width="0">
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
</row>
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\begin_inset LatexCommand \label{tab:Table essai}
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Une deuxième référence : table
\begin_inset LatexCommand \ref{tab:Table essai 2}
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset Float table
wide false
sideways false
status open
\begin_layout Caption
\paragraph_spacing double
Table essai 2.
\end_layout
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features>
<column alignment="center" valignment="top" leftline="true" width="0">
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
</row>
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\begin_inset LatexCommand \label{tab:Table essai 2}
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
Une troisième référence : table
\begin_inset LatexCommand \ref{tab:Table essai 3}
\end_inset
.
\end_layout
\begin_layout Standard
\begin_inset Float table
wide false
sideways false
status open
\begin_layout Caption
\paragraph_spacing double
Table essai 3.
\begin_inset LatexCommand \label{tab:Table essai 3}
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2">
<features>
<column alignment="center" valignment="top" leftline="true" width="0">
<column alignment="center" valignment="top" leftline="true" rightline="true" width="0">
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
</row>
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\begin_inset Text
\begin_layout Standard
Bla
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
\end_layout
\end_body
\end_document