saving . . . saved 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. has been deleted. 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. has been hidden .
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 23-04-20, 9:36 a.m. dus784@gmail.com

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.
23-04-20, 11:18 a.m. kannan
sir, i had go through the tutorial and codefile. but there are many confusion like table is floating in page size. {without [h] which i put after /begin{table} table fix its possion bottom of the page.} if i write table code between text line which you explained in tutorial than your answer {text line below the table and my answer text line above the table}. if i place 2 image in sequance in code file and \lable{} both of it. output shows the fig 1 lable not display, display only space and fig 2 lable display in output.
if you want to check my code, i will send it here.    
23-04-20, 12:03 p.m. dus784@gmail.com

Login to add comment


Until you become comfortable with LaTeX, please don't try to position the Table.  Let LaTeX do it for you.
23-04-20, 12:58 p.m. kannan


Log-in to answer to this question.