Answers for "latex how to generate table of contents"

3

latex table of contents

tableofcontents
Posted by: Guest on June-23-2020
0

latex table of contents

documentclass{article}
usepackage[utf8]{inputenc}
 
title{Sections and Chapters}
author{Gubert Farnsworth}
date{ }
  
begin{document}
  
maketitle
  
tableofcontents

section{Introduction}
   
This is the first section.
      
Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing  
elit.   Etiam  lobortisfacilisis sem.  Nullam nec mi et 
neque pharetra sollicitudin.  Praesent imperdietmi nec ante. 
Donec ullamcorper, felis non sodales...
       
addcontentsline{toc}{section}{Unnumbered Section}
section*{Unnumbered Section}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  
Etiam lobortis facilisissem.  Nullam nec mi et neque pharetra 
sollicitudin.  Praesent imperdiet mi necante...

section{Second Section}
       
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  
Etiam lobortis facilisissem.  Nullam nec mi et neque pharetra 
sollicitudin.  Praesent imperdiet mi necante...
         
end{document}
Posted by: Guest on April-27-2021
-2

making simple table in latex

begin{tabularx}{0.8textwidth} { 
  | >{raggedrightarraybackslash}X 
  | >{centeringarraybackslash}X 
  | >{raggedleftarraybackslash}X | }
 hline
 item 11 & item 12 & item 13 \
 hline
 item 21  & item 22  & item 23  \
hline
end{tabularx}
Posted by: Guest on January-13-2021

Code answers related to "latex how to generate table of contents"

Browse Popular Code Answers by Language