#925 Autocomplete for table seems to be wrong!

closed
nobody
2
2006-10-17
2006-09-18
LarsV33
No

Hi!

Autocompleting table results in:

\begin{table}{ccc}

\label\{\}
\caption\{\}

\end{table}

The {ccc} is used for tabular and should not be added
to table:

\begin{table}

\label\{\}
\caption\{\}

\end{table}

I would also propose to add a "\centering", since it
seems that this often used:

\begin{table}
\centering

\label\{\}
\caption\{\}

\end{table}

Furthermore, a tabular could be directly added but
since an own autocomplete exists, its not needed.
However, for LaTeX beginners a included tabular or an
comment "% add tabular here" could be nice.

Can be fixed in packages/TeX.xml Line 49.

Lars

Discussion

  • LarsV33

    LarsV33 - 2006-09-20

    Logged In: YES
    user_id=1597168

    Hi!

    And another Bug in this autocomplete!

    label and caption are the wrong way round. Label must be
    after caption or else referencing the table might break.

    Reference:
    http://w3.msi.vxu.se/~pku/MacOSX_TeX/2003b/msg00876.html

    So the table autocomplete should look like this:

    \begin{table}
    \centering

    \caption{}
    \label{}
    \end{table}

    Lars

     
  • Oliver Wieland

    Oliver Wieland - 2006-10-17
    • priority: 5 --> 1
     
  • Oliver Wieland

    Oliver Wieland - 2006-10-17

    Logged In: YES
    user_id=265940

    Fixed in next version

     
  • Oliver Wieland

    Oliver Wieland - 2006-10-17
    • priority: 1 --> 2
    • status: open --> closed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks