TransWikia.com

Table caption floats over table cells

TeX - LaTeX Asked by Elbatoul on February 18, 2021

After making all of my figures and tables float as [htp] I got my caption’s table written over the table itself. I can’t figure out why I get this, what can be done to get the caption written above the table and not over it ?

Here is the code to my table

begin{table}[htp]
        centering
        caption{Système de récompense de Anti-Phishing Phil parencite{sheng}}
        label{tab:antipts}
        begin{tabular}{|c|c|c|}
        hline
                & Un ver & Un appât \
                hline 
                Phil mange & +100 points & - 1 vie \
                hline
                Phil rejette  & -10 seconds & +100 points \
                hline
        end{tabular}
    end{table}

Here is the result of the code

enter image description here

and here is the preamble of my document in case someone needs a look at it

    documentclass[a4paper, twoside, 12pt]{report}

% Language and font encodings
usepackage{arabtex}
usepackage[utf8]{inputenc}
usepackage[LFE,LAE,T1]{fontenc}
% usepackage[french=nohyphenation]{hyphsubst}
usepackage[arabic, english, french]{babel}
usepackage[a4paper,top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.5cm,marginparwidth=1.75cm]{geometry}
usepackage{float}
usepackage{amsmath}
% Figures package
usepackage{graphicx}
usepackage{titletoc}
%usepackage[colorinlistoftodos]{todonotes}
setcounter{secnumdepth}{3}
% Customizing the subsubsection title
usepackage{titlesec}
renewcommandthesubsubsection{alph{subsubsection}.}
% To hyperlink references to tables/figures/titles
usepackage[colorlinks=true, allcolors=blue]{hyperref}


%Tables and long tables
usepackage{tabularx}
usepackage{changepage}
usepackage{longtable}
renewcommand{arraystretch}{1.5}

usepackage{float}
floatstyle{plaintop}

%Bilbiography
usepackage[
backend=biber,
style=apa,
citestyle=authoryear
]{biblatex}


%
usepackage{tocbibind}

% For header and footer customization : to add the chapter name on header
usepackage{fancyhdr}
setlength{headheight}{15pt} 
pagestyle{fancy}
fancyhf{}
lhead{leftmark} %Leftmark is used to get the highest level of content' name
rfoot{thepage} % thepage gets the page's number

addbibresource{bibs/refs.bib}
renewcommand{baselinestretch}{1.05}
letlabelitemilabelitemii

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP