i write table code as per teacher instruct us but where on time stamp line move below to table and in my anser that line why move above the table.
Title
Question
\documentclass[12pt,a4paper]{article}
\usepackage[hmargin=2cm,vmargin=2cm]{geometry}
\title{Tutorial on Tables and Figures}
\date{\today}
\begin{document}
\maketitle
%\centering
this is
\begin{table}[h]
\centering
\caption{Cost of fruits in India} \vspace{1ex}
\begin{tabular}{||l|c|c|c|c||}\hline
\multicolumn 2 {||c|}{Fruit details} &
\multicolumn 3 {c|}{Cost calculations} \\ \hline
Fruit & Type & No. of units & cost/unit & cost (Rs.) \\ \hline
Mango & Malgoa & 18 & 50 & \\ \cline{2-4}
& Alfonso & 2 & 300 & 1,500 \\ \hline
Jackfruit & Kolli Hills & 10 & 50 & 500 \\ \hline
Banana & Green & 10 & 20 & 200 \\ \hline
\multicolumn 4{||r|}{Total cost (Rs.)} & 2,200 \\ \hline
\end{tabular}
\end{table}
an example table.
\end{document}<img>
LaTeX Tables-and-Figures 14-15 min 30-40 sec
Answers:
Please do NOT write the code from scratch. In the "Code files" section, there is a file called tab-fig.tex. You have to download it, and extract it, and follow the tutorial.
Until you become comfortable with LaTeX, please don't try to position the Table. Let LaTeX do it for you.
Login to add comment