TransWikia.com

els-cas-templates – Elsevier updated LATEX templates - extra comma when including images using begin{figure}[h]

TeX - LaTeX Asked on January 6, 2022

I’m using Elsevier single column using Overleaf. When I include images using the following code, I saw an extra comma added on the top of the image. My file is around 40 pages and I have many figures with this comma.
The output of the code is shown below:
enter image description here
Thanks in advance for your help.

documentclass[a4paper,fleqn]{cas-sc}
usepackage{cite}
usepackage{float}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{dsfont}
usepackage{amsmath}
usepackage{tabularx,booktabs}
usepackage{multicol}
usepackage{longtable}
usepackage[flushleft]{threeparttablex}
usepackage{supertabular}
usepackage{deluxetable}
usepackage{nicefrac}
usepackage{longtable,pdflscape,booktabs}
usepackage{array}
newcolumntype{P}[1]{>{centeringarraybackslash}p{#1}}
usepackage[justification=centering]{caption}
usepackage[center]{caption}
usepackage{amsmath}
usepackage[pdftex]{graphicx}
usepackage{bm}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}
usepackage{dsfont}
usepackage{amsmath}
usepackage{tabularx,booktabs}
usepackage{multicol}
usepackage{longtable}
usepackage[flushleft]{threeparttablex}
usepackage{supertabular}
usepackage{longtable,pdflscape,booktabs}
usepackage{array}
usepackage{xtab,afterpage}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
usepackage[authoryear,longnamesfirst]{natbib}
usepackage[justification=centering]{caption}
usepackage[center]{caption}
deftsc#1{csdef{#1}{textsc{lowercase{#1}}xspace}}
tsc{WGM}
tsc{QE}
tsc{EP}
tsc{PMS}
tsc{BEC}
tsc{DE}
makeatletter
patchcmd{@maketitle}{raggedright}{centering}{}{}
patchcmd{@maketitle}{raggedright}{centering}{}{}
makeatother
begin{document}
letWriteBookmarksrelax
deffloatpagepagefraction{1}
deftextpagefraction{.001}

section{Introduction}
Even though the vehicle is driven by a human driver, this is still a major challenge.
begin{center}
begin{figure}[h]
includegraphics[width=linewidth]{15.PNG}
caption{Summary of Levels of Driving Automation}
 label{fig:SAE1}
end{figure} 
end{center}

By increasing the level of automation.

end{document}

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