Your solution works for my given example above, even I did not understand, why a centering-command can mess up the numbering.
Unfortunately I made a mistake and did not post the same preamble/header of the defective LyX/Latex File. Because with that, it still does not work. Here is the right one:
Code: Select all
%% LyX 1.6.4.2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,english,ngerman]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{listings}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=3.5cm,bmargin=3.5cm,lmargin=3cm,rmargin=3cm}
\pagestyle{headings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\usepackage{color}
\usepackage{babel}
\usepackage{varioref}
\usepackage{float}
\usepackage{units}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{makeidx}
\makeindex
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage[unicode=true,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=1,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=true]
{hyperref}
\hypersetup{pdftitle={e},
pdfauthor={P},
pdfsubject={S},
pdfkeywords={S},
linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false, pdfpagelabels}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\newcommand{\noun}[1]{\textsc{#1}}
\newcommand{\lyxmathsym}[1]{\ifmmode\begingroup\def\b@ld{bold}
\text{\ifx\math@version\b@ld\bfseries\fi#1}\endgroup\else#1\fi}
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}
\floatstyle{ruled}
\newfloat{algorithm}{tbp}{loa}[chapter]
\floatname{algorithm}{Algorithm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\newenvironment{lyxcode}
{\par\begin{list}{}{
\setlength{\rightmargin}{\leftmargin}
\setlength{\listparindent}{0pt}% needed for AMS classes
\raggedright
\setlength{\itemsep}{0pt}
\setlength{\parsep}{0pt}
\normalfont\ttfamily}%
\item[]}
{\end{list}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% DO NOT ALTER THIS PREAMBLE!!!
%
%This preamble is designed to ensure that the document prints
% out as advertised. If you mess with this preamble,
% parts of the document may not print out as expected. If you
% have problems LaTeXing this file, please contact
% the documentation team
% email: lyx-docs@lists.lyx.org
\usepackage{ifpdf} % part of the hyperref bundle
\ifpdf % if pdflatex is used
% set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
% Die Seiten des Inhaltsverzeichnisses werden rˆmisch numeriert,
% ein PDF-Lesezeichen f¸r das Inhaltsverzeichnis wird hinzugef¸gt
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX}}
\@ifundefined{showcaptionsetup}{}{%
\PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother
\begin{document}
die Tabellen \ref{tab:TableVor}
und \ref{tab:TableHint}.%
\begin{table}
\noindent\caption{\label{tab:Look-Up-Table-f=0000FCr-Zehnerpotenz}Look-Up-Table f¸r
Zehnerpotenz mit $k=8$.}
\subfloat[\label{tab:TableVor}mit redundanter Eingabespalte $x_{i}$]{\noindent \begin{tabular}{|c|c|c|}
\hline
$i$ & $x_{i}$ & $\mathrm{pow}(10,x_{i})$\tabularnewline
\hline
\hline
$0$ & $-0.3188$ & $0.48$\tabularnewline
\hline
$\vdots$ & $\vdots$ & $\vdots$\tabularnewline
\hline
$2^{k}-1$ & $0.6435$ & $4.40$\tabularnewline
\hline
\end{tabular}}~~~~~~~~~~~~~~~ \subfloat[\label{tab:TableHint}mit direkter Referenzierung ¸ber Index $i$ ]{\noindent \begin{tabular}{|c|c|}
\hline
$i$ & $\mathrm{pow}(10,x_{i})$\tabularnewline
\hline
\hline
$0$ & $0.48$\tabularnewline
\hline
$\vdots$ & $\vdots$\tabularnewline
\hline
$2^{k}-1$ & $4.40$\tabularnewline
\hline
\end{tabular}}
\end{table}
\end{document}