TransWikia.com

maketitle I can't see Title and Authors in PDF

TeX - LaTeX Asked by Valeria Figini on December 20, 2020

Good morning, I don’t understand why but if I use maketitle I can’t see Title and Authors in PDF. Can someone help me?
Thanks

documentclass[conference,a4paper]{IEEEtran}

IEEEoverridecommandlockouts


usepackage{cite}

usepackage{amsmath,amssymb,amsfonts}

usepackage{algorithmic}

usepackage{graphicx}

usepackage{textcomp}

usepackage{xcolor}

defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}



begin{document}


title{………..\

{footnotesize textsuperscript}

thanks{}

}


author{IEEEauthorblockN{1textsuperscript{nd} ……………}

IEEEauthorblockA{textit{……………….} \

textit{………………}\

…………….. \

…………….}

and

IEEEauthorblockN{2textsuperscript{nd} ………………}

IEEEauthorblockA{textit{…………………..} \

textit{……………………..}\

…………………….. \

…………………..}

maketitle

}

begin{abstract}
.....

2 Answers

The standard way to do a title in LaTeX is to do it like so:

documentclass{...}

title{Title goes here}
author{Author name goes here}

...

begin{document}
maketitle

The title command is just identifying the title for the document and should go in the document preamble. The maketitle command is responsible for typesettingg the title and goes after begin{document}.

Note also that formatting should be handled by the document class and you don't really want to do all that textit etc. in your title, author etc.

Correct answer by Don Hosek on December 20, 2020

Your maketitle command is misplaced.

documentclass[conference,a4paper]{IEEEtran}

IEEEoverridecommandlockouts

usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}
usepackage{xcolor}

begin{document}


title{Title\{footnotesize whatevertextsuperscript{x}thanks{Thanks}}}

author{%
  IEEEauthorblockN{1textsuperscript{st} A. Uthor}
  IEEEauthorblockA{textit{Something} \
    textit{something else}\
    whatever\
    again}
  and
  IEEEauthorblockN{2textsuperscript{nd} W. Riter}
  IEEEauthorblockA{textit{Something} \
    textit{something}\
    again \
    whatever}
}

maketitle

begin{abstract}
.....
end{abstract}

end{document}

enter image description here

Answered by egreg on December 20, 2020

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