BDU LaTeX Practical 2 : Title page · Table of contents · Sections and Subsections

LaTeX Practical 2 – Blog Post

📘 LaTeX Practical 2

Title page · table of contents · sections & subsections
❓ Question 2: Write a LaTeX input file that contains a title page, table of contents, two sections, and two subsections. Compile the document and display the output.

⌨️ LaTeX Source Code

\documentclass[12pt,a4paper]{article} \title{BDU \LaTeX \ Practical} \author{ARO Study Circle} \date{\today} \begin{document} \maketitle \thispagestyle{empty} \newpage \tableofcontents \newpage \section{Introduction} \LaTeX\ is a powerful document preparation system. It is especially useful for mathematical and scientific writing. \subsection{Advantages of \LaTeX} \LaTeX\ produces professional-quality documents and provides excellent mathematical typesetting. \subsection{Applications of \LaTeX} \LaTeX\ is used for books, articles, reports, assignments, research papers, and presentations. \section{Mathematical Typesetting} \LaTeX\ provides many commands for writing mathematical expressions and equations. \end{document}

📖 Explanation of Commands

  • \maketitle creates the title information.
  • \tableofcontents generates the table of contents.
  • \newpage starts a new page.
  • \section{} creates a section.
  • \subsection{} creates a subsection.
  • The table of contents is automatically generated from the section and subsection commands.
  • \thispagestyle{empty} removes page number from title page.

📄 Compiled PDF Output

BDU LaTeX Practical
ARO Study Circle
August 21, 2026
Contents
1 Introduction1
1.1 Advantages of LaTeX1
1.2 Applications of LaTeX2
2 Mathematical Typesetting2
1 Introduction

LaTeX is a powerful document preparation system. It is especially useful for mathematical and scientific writing.

1.1 Advantages of LaTeX

LaTeX produces professional-quality documents and provides excellent mathematical typesetting.

1.2 Applications of LaTeX

LaTeX is used for books, articles, reports, assignments, research papers, and presentations.

2 Mathematical Typesetting

LaTeX provides many commands for writing mathematical expressions and equations.

Post a Comment

0 Comments