Graphics, Figures & TablesUnderstanding Tables and Caption Error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
zak100
Posts: 4
Joined: Sat Aug 22, 2020 5:49 pm

Understanding Tables and Caption Error

Post by zak100 »

Hi,
Following is my code:

Code: Select all

Code, edit and compile here:
\documentclass[manuscript,screen]{acmart}
\usepackage{listings}
\input{solidity-highlighting.tex}
\usepackage[colorinlistoftodos]{todonotes}
\AtBeginDocument{%
\providecommand\BibTeX{{%
\normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}}
\setcopyright{acmcopyright}
\copyrightyear{2020}
\acmYear{2020}
\acmDOI{10.1145/1122445.1122456}
\begin{document}
\title{A Test of Latex}
\author{ Khan}
\email{Khan@edu}
\affiliation{}
\institution{ University}
\renewcommand{\shortauthors}{Trovato and Tobin, et al.}
\begin{abstract}
Testing abstract
\end{abstract}
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10002978.10003022</concept_id>
<concept_desc>Testing and testingand privacy~ application security</concept_desc>
<concept_significance>500</concept_significance>
</concept>
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Following is image related to error message:
Table caption_End Table_square bracket.png
Table caption_End Table_square bracket.png (207.88 KiB) Viewed 4343 times

Code: Select all

Code, edit and compile here:
Package caption Error: \caption outside float.
main.tex, line 191
Too many }'s.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I can't understand:
begin{table}[]???Can't understand
\label{tab:classification}???Can't understand
\vspace{-0.1in} ???Can't understand

Some body please guide me.

Zulfi.
Last edited by cgnieder on Sun Aug 23, 2020 9:18 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
TikZ book
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Understanding Tables and Caption Error

Post by Bartman »

The backslash is missing in the \begin command of the table environment.
zak100
Posts: 4
Joined: Sat Aug 22, 2020 5:49 pm

Understanding Tables and Caption Error

Post by zak100 »

Hi,
Thanks a lot. Pleae tell me:


\begin{table}[]???Can't understand the purpose of '[]'
\label{tab:classification}???Can't understand
\vspace{-0.1in}???Can't understand


Please help me to understand the commands: \begin{table}[], \label{tab:classification} and \vspace{-0.1in}.

Zulfi.
Last edited by cgnieder on Sun Aug 23, 2020 9:22 pm, edited 1 time in total.
Bartman
Posts: 369
Joined: Fri Jan 03, 2020 2:39 pm

Understanding Tables and Caption Error

Post by Bartman »

The environment and the commands are basic components of latex. They should be explained in each introduction (e.g. lshort) and reference (e.g. LaTeX2e unofficial reference manual).
Post Reply