BCSL456D Program 1

1. Develop a LaTeX script to create a simple document that consists of 2 sections [Section1, Section2], and a paragraph with dummy text in each section. And also include header [title of document] and footer [institute name, page number] in the document.

\documentclass{article}

% Packages
\usepackage{fancyhdr} % For header and footer
\usepackage{lipsum} % For dummy text

% Header and footer settings
\pagestyle{fancy}
\fancyhf{}
\rfoot{\thepage}
\lhead{\textit{First Program using LaTex}}
\lfoot{\textit{M.S Engineering College}}

% Document
\begin{document}
	
	\section{Section 1}
	\lipsum[1] % Dummy text
	
	\section{Section 2}
	\lipsum[2] % Dummy text
	
\end{document}

OUTPUT:

Leave a Reply

Your email address will not be published. Required fields are marked *