Weird formatting after TeX-insert-environment

Frank Küster <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

I wanted to convert a tabular environment into a floating
table. Therefore I marked the complete environment as the region,
pressed C-c C-e, and selected table. I filled in a caption and
answered y to "center?", but didn't give any answers for the tabular
questions that followed. This is how it looked like before:


*************************************
\begin{tabular}{lrlcp{2.5cm}}
  Typ  & Amplituden & $\tau_i / \nanosecond{}$ & $\chi^2$ &                                                       \\\hline
  1exp &            & 4.7                      & 58       & schlecht                                              \\
  2exp & -45\,150   & 2.036                    &                                                                  \\
       & 72\,434    & 3.89                     & 5.0      & visuell gut, außer ganz zu Beginn                     \\
  3exp &            &                          & 5.0      & teilt den Anstieg in zwei fast gleich schnelle Phasen \\\hline
  2exp, shift fix & -64\,642   & 2.59                     &                                              \\
                  & 96\,234    & 3.706                    & 15      &
                  deutliche Abweichungen der Residuen \\
\end{tabular}

LÀsst man den Bereich am Anfang weg, wo der Akzeptor etwa $10^1$
counts, die IRF nichts hat, dann ergibt sich ein minimal anderer Fit.
*************************************

And this is the appearance afterwards:

*************************************
\begin{table}
  \begin{tabular}{lrlcp{2.5cm}}
  Typ  & Amplituden & $\tau_i / \nanosecond{}$ & $\chi^2$ &                                                       \\\hline
  1exp &            & 4.7                      & 58       & schlecht                                              \\
  2exp & -45\,150   & 2.036                    &                                                                  \\
       & 72\,434    & 3.89                     & 5.0      & visuell gut, außer ganz zu Beginn                     \\
  3exp &            &                          & 5.0      & teilt den Anstieg in zwei fast gleich schnelle Phasen \\\hline
  2exp, shift fix & -64\,642   & 2.59                     &                                              \\
                  & 96\,234    & 3.706                    & 15      &
                  deutliche Abweichungen der Residuen \\
                \end{tabular}\centering
                \begin{tabular}{}
                  
                \caption{Fitparameter fÃŒr den Akzeptor-Decay in \proxx}
                \label{tab:pro20-acc-fit}
              \end{tabular}
              \end{table}
LÀsst man den Bereich am Anfang weg, wo der Akzeptor etwa $10^1$
counts, die IRF nichts hat, dann ergibt sich ein minimal anderer Fit.
*************************************


Finally, this is what I expected:

*************************************
\begin{table}
  \centering
  \begin{tabular}{lrlcp{2.5cm}}
    Typ             & Amplituden & $\tau_i / \nanosecond{}$ & $\chi^2$ &                                                       \\\hline
    1exp            &            & 4.7                      & 58       & schlecht                                              \\
    2exp            & -45\,150   & 2.036                    &                                                                  \\
    & 72\,434    & 3.89                     & 5.0      & visuell gut, außer ganz zu Beginn                     \\
    3exp            &            &                          & 5.0      & teilt den Anstieg in zwei fast gleich schnelle Phasen \\\hline
    2exp, shift fix & -64\,642   & 2.59                     &                                                                  \\
    & 96\,234    & 3.706                    & 15       & 
    deutliche Abweichungen der Residuen                                                                        \\
  \end{tabular}
  \caption{Fitparameter fÃŒr den Akzeptor-Decay in \proxx}
  \label{tab:pro20-acc-fit}
\end{table}
*************************************

Regards, Frank

Emacs  : GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-11-15 on alhambra, modified by Debian
Package: AUCTeX 11.55

current state:
==============
(setq
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("style/" "auto/" "/home/frank/texmf/tex/latex/style/" "/home/frank/texmf/tex/latex/auto/"
		  "/usr/share/emacs21/site-lisp/auctex/style/" "/var/lib/auctex/emacs21/" "/home/frank/.auctex-styles/"
		  "/home/frank/.auctex-styles/")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master "Laborbuch"
 )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.