📘 LaTeX Practical 3
A4 page layout · page numbering · header & footer formatting
❓ Question 3: Create a LATEX document with A4 page layout, page numbering, and header and footer formatting. Compile the document and convert it to PDF format.
⌨️ LaTeX Source Code
\documentclass[12pt,a4paper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{BDU \LaTeX \ Practical}
\rhead{ARO Study Circle}
\lfoot{Mathematical Documentation Using \LaTeX}
\cfoot{\thepage}
\rfoot{Semester I}
\title{BDU \LaTeX \ Practical}
\author{ARO Study Circle}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
This document demonstrates A4 page layout, page numbering, header, and footer formatting.
\section{Conclusion}
\LaTeX \ provides flexible page formatting facilities.
\end{document}
📖 Explanation of Commands
\documentclass[12pt,a4paper]{article}– A4 paper size and 12pt font.\usepackage[margin=1in]{geometry}– sets 1-inch margins.\usepackage{fancyhdr}– enables custom header/footer.\pagestyle{fancy}– activates fancy page style.\fancyhf{}– clears default header/footer.\lhead{},\rhead{}– left and right header.\lfoot{},\cfoot{},\rfoot{}– left, center, right footer.\thepage– inserts current page number.
📄 Compiled PDF Output
BDU LaTeX Practical
ARO Study Circle
BDU LaTeX Practical
August 21, 2026
1 Introduction
This document demonstrates A4 page layout, page numbering, header, and footer formatting.
2 Conclusion
LaTeX provides flexible page formatting facilities.
0 Comments