Uwe Stöhr wrote:
Leo Gürtler wrote:
how can I label a table for use with cross-references in a
not-floating enivronments?
See the attached example LyX-file.
The solution uses(requires) babel and hyperref, so that the captionname
is in the correct language and the references are linked.
with capt-of.sty you get it in an easier way.
Herbert
--
http://TeXnik.de/
http://PSTricks.de/
ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf
http://www.dante.de/faq/de-tex-faq/
http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass article
\begin_preamble
\usepackage{capt-of}
\end_preamble
\options fleqn
\language ngerman
\inputencoding auto
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single
\papersize a4paper
\paperpackage a4
\use_geometry 0
\use_amsmath 1
\use_natbib 0
\use_numerical_citations 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language german
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle empty
\bullet 1
1
34
-1
\end_bullet
\bullet 2
2
35
-1
\end_bullet
\bullet 3
2
7
-1
\end_bullet
\layout Standard
\begin_inset Float table
wide false
collapsed true
\layout Caption
\begin_inset LatexCommand \label{cap:asdf}
\end_inset
asdf
\layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="1" 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
\layout Standard
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_inset
\layout Standard
\align center
\begin_inset ERT
status Collapsed
\layout Standard
\backslash
captionof{table}{
\end_inset
We
\series bold
\begin_inset ERT
status Collapsed
\layout Standard
}
\end_inset
\begin_inset LatexCommand \label{tab:We}
\end_inset
\series default
\SpecialChar ~
\newline
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="5">
<features>
<column alignment="center" valignment="top" leftline="true" width="0">
<column alignment="center" valignment="top" leftline="true" width="0">
<column alignment="center" valignment="top" leftline="true" width="0">
<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
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
</row>
<row topline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
</row>
<row topline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
</row>
<row topline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
</row>
<row topline="true" bottomline="true">
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
we
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\layout Standard
\begin_inset Float table
placement H
wide false
collapsed true
\layout Caption
\begin_inset LatexCommand \label{cap:bsdf}
\end_inset
bsdf
\layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="1" 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
\layout Standard
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" leftline="true"
rightline="true" usebox="none">
\begin_inset Text
\layout Standard
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_inset
\layout Standard
siehe
\begin_inset LatexCommand \ref{cap:asdf}
\end_inset
,
\begin_inset LatexCommand \ref{tab:We}
\end_inset
und
\begin_inset LatexCommand \ref{cap:bsdf}
\end_inset
.
\the_end