BCS456D,Latex
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[a5paper, 50pt]{article}
\usepackage[top=30mm, bottom =30mm, left=25mm, right=25mm]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[l]{Latex,program No 1}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept.of ISE,CIT,Gubbi.}
\fancyfoot[r]{page1,2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\section{Introduction to latex}latex
L is a document preparation systems for typesetting program. It is used to create
different types of document structures. A L file(. tex) is created //
\section{How to run latex}
Assume that one is using a simple text editor like 'notepad' or 'gedit'. Save the file using
pdflatex filename. tex. This will generate. pdf file. \\
\end{document}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
2. Develop a LaTeX script to create a document that displays the sample
Abstract/Summary
\documentclass[a3 paper]{article}
\usepackage[top=20mm,bottom=20mm,left=20mm,right=20mm]{geometry}
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\fancyhead[l]{Latex,program No 2}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept.of ISE,CIT,Gubbi.}
\fancyfoot[r]{page1,2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\begin{abstract}
\textbf{Simple summary about latex}\\
L is a document preparation system for typesetting program.It is used t create different
types of document structures.A L file(.tex) is created using any text
editor(vim,emacs,gedit,etc.).There are also many L IDEs like kile,TexStudio,etc..
\end{abstract}
\end{document}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
3. Develop a LaTeX script to create a simple title page of the VTU project Report [Use
suitable Logos and text formatting]
\documentclass[12pt ,a4 paper]{article}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 3}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{page 1 2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
%\usepackage{tikz}
%\usetikzlibrary{calc}
%\usepackage{calc}
\usepackage{xcolor}
\geometry{a4 paper,total={180mm,250mm},left=20mm,top=20mm}
\begin{document}
\begin{center}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\textcolor{orange}{\large\textbf{VISVEAVARAYA TECHNOLOGICAL UNIVERSITY}\\
"Jnana sangama",Belagavi-560014,Karnataka}\\
\vspace{2mm}
\includegraphics[scale=0.4]{vtu.png}
\vspace{2mm}\\
\textcolor{red}{A REPORT}\\
\textcolor{red}{ON}\\
\textcolor{orange}{\textbf{SOCIAL CONNECT AND RESPOSIBILITY ACTIVITIES}}\\
\small{Submitted in partial fulfillment of the requirements for the award of degree of}\\
\vspace{5mm}
\textcolor{green}{\textbf{BACHELOR OF ENGINEERING}\\
IN\\
\textbf{INFORMATION SCIENCE AND ENGINEERING}}\\
\vspace{5mm}
\textcolor{blue}{\underline{Submitted By}}\\
\textbf{NAME:BHOOMIKA YM}\\
\textbf{USN:1CG22IS007}\\
\textcolor{cyan}{\underline{{\textbf{Under the guidence of}}}}\\
\large\textbf{ANILKUMAR}\\
Assistant professor\\
Dept of ISE\\
\centering\includegraphics[scale=0.3]{cit.png}
\vspace{2mm}
\textcolor{blue}{\textbf{Department Of Information Science and Engineering}}\\
\textcolor{red}{\textbf{CHANNABASAWESHWARA INSTITUTE OF TECHNOLOGY}}\\
(Affiliated Visvesvaraya Technological University)\\
Gubbi-572216,Karnataka\\
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
2024-2025
%\end{tikzpicture}
\end{center}
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
4. Develop a LaTeX script to create the Certificate Page of the Report [Use suitable
commands to leave the blank spaces for user entry]
\documentclass[a4paper,15pt]{article}
\usepackage[top=40mm,bottom=10mm,left=10mm,right=10mm,]{geometry}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{xcolor}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[c]{CHANNABASAWESHWARA INSTITUTE OF TECHNOLOGY}
\fancyhead[l]{latex,program No4}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{page 1 2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\textcolor{blue}{\textbf{DEPARTMENT OF INFORMATION SCIENCE AND
ENGINEERING}}\\
\vspace{5mm}
\centering
\vspace{5mm}
\textcolor{red}{\underline{\textbf{CERTIFICATE}}}\\
\paragraph{}
This is to certify that the Social Connect and Responsibility activities has been
successfully carried out by BHOOMIKA YM with 1CG22IS007 in partial fulfillment for the
enginnering course of Bachelor of engineering in information science and engineering
department of the VISVESVARAYA TECHNOLOGICAL UNIVERSITY,Belagavi during
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
the academic year 2024-25.It is certified that all the corrections/suggestions indicated
for internal assesment have been incorporeted in the report.The Social Connect and
Responsibility Report has been approved as it satisfy the academic requirements in
respect of engineering course of Bachelor of Engineering Degree
\begin{center}
\centering
-----------------------------------------------\\
\vspace{5mm}
\underline{\textbf{signature of the staff coordinator}}\\
\vspace{5mm}
\textcolor{red}{professor}\\
CIT,GUBBI\\
\vspace{10mm}
\centering
--------------------------------------------------\\
\underline{\textbf{signature of the HOD}}\\
\vspace{3mm}
\textcolor{red}{professor}\\
\textcolor{green}{Associate Professor}\\
CIT,GUBBI
\end{center}
\end{document}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
5.
\documentclass{book}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 5}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{page 1 2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\begin{table}
\centering
\caption{Student Tables}
\label{student}
\begin{tabular}{|l|c|c|c|c|c|r|}\hline
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\multirow{2}{*}{slno}&\multirow{2}{*}{USN}&\multirow{2}{*}{studentname}&\multicolumn{
3}{|c|}{marks}\\\vline
&&&subject1 & subject2 & subject3\\\hline
1& 1CG22ISOO7 & BHOOMIKA YM & 89 & 90 & 95\\\hline
2& 1CG22ISOO9 & CHANDANA BJ & 85& 80& 60\\\hline
3& 1CG22ISO47 & SNEHA HL & 75& 80 & 85\\\hline
\end{tabular}
\end{table}
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
6. Develop a LaTeX script to include the side-by-side graphics/pictures/figures in the
document by using the subgraph concept
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 6}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{page 1 2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\begin{figure}[h]
\centering
\begin{subfigure}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{}
\includegraphics[width=0.5\linewidth]{image.png}
\caption{image1}
\label{fig:image1}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.4\textwidth}
\includegraphics[width=\textwidth]{}
\includegraphics[width=0.5\linewidth]{image.png}
\caption{image2}
\label{fig:image2}
\end{subfigure}
\caption{Side-by-side images}
\label{fig:side_by_side}
\end{figure}
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
7. Develop a LaTeX script to create a document that consists of the following two
mathematical equations
\documentclass{article}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 7}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{page 1 2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\usepackage[paperheight=8in,
paperwidth=5in,top=15mm,
bottom=20mm,left=20,
right=10mm]{geometry}
\begin{document}
$x=\frac{-b\pm\sqrt{{b^2}-4ac}}{2a}$ \\
$=2\frac{\pm\sqrt{{2^2}-4(1)*(-8)}}{2*1}$\\
$=-2\frac{\pm\sqrt{{4+32}}}{2}$\\
$\gamma^\Lambda{\sigma{A_T}}=\sum_{\pi\in(A_t}}sgn({\sigma^{-
1}}t\sigma)\gamma^{\lambda}\sigma\gamma^{\lambda}\sigma^{-1}Ta$\\
$=\sum_{T\in\gamma_t}{sgn{(sigma^{-
1}T\sigma)}}{\gamma^\;lambda}\sigma{\gamma^{\lambda}\sigma^-1}{T\sigma}$\\$
$=A_{\sigma t\gamma^{\lambda}}\sigma$\\
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
8. Develop a LaTeX script to demonstrate the presentation of Numbered theorems,
definitions, corollaries, and lemmas in the document
\documentclass{article}
\usepackage{amsmath}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 8}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{page 1 2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{definition}[theorem]{Definition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\begin{document}
\section{Introduction}
Here is some text to introduce the theorems,definition,corollaries and lemmas.
\section{Main Result}
\begin{theorem}
This is a Pythagorean theorem,
\label{pythagorean}
This is a theorem about right triangles and can be summarised in the next
equation
\[ x^2 + y^2 = z^2 \]
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\end{theorem}
\begin{proof}
Proof. This is the proof of the theorem.
\end{proof}
\begin{definition}
This is a definition.
begin{definition}[Fibration]
A fibration is a mapping between two topological spaces that has the homotopy lifting
property for every space \(X\).
\end{definition}
\begin{corollary}
There's no right rectangle whose sides measure 3cm, 4cm, and 6cm.
\end{corollary}
\begin{lemma}
Given two line segments whose lengths are \(a\) and \(b\) respectively there is a
real number \(r\) such that \(b=ra\).
\end{lemma}
\section{Discussion}
Some disucussion about the results.
\end{document}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
9. Develop a LaTeX script to create a document that consists of two paragraphs with a
minimum of 10 citations in it and display the reference in the section
\documentclass{article}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 9}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\section{Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce condimentum nulla a nisl
consectetur, in vehicula purus fermentum. Pellentesque habitant morbi tristique
senectus et netus et malesuada fames ac turpis egestas. Sed efficitur placerat sapien ut
placerat. Integer fringilla justo ac massa ultrices, sed laoreet est fermentum.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
egestas. Donec fermentum vehicula felis, in congue odio volutpat vitae \cite{citation1,
citation2, citation3, citation4, citation5, citation6, citation7, citation8, citation9,
citation10}.
Morbi gravida mi sit amet justo aliquet, eu mollis velit convallis. Nam sollicitudin elit id
risus tempor congue. Cras fringilla, libero a faucibus feugiat, odio lacus vulputate ligula,
vel euismod tellus orci eget lorem \cite{citation11, citation12, citation13, citation14,
citation15, citation16, citation17, citation18, citation19, citation20}.
\section{References}
\begin{enumerate}
\item
T. He, H. Khamfroush, S. Wang, T. La Porta, and S. Stein, “It’s hard to
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
share: Joint service placement and request scheduling in edge clouds with
sharable and non-sharable resources,” in IEEE 38th International Conference on
Distributed Computing Systems (ICDCS), 2018, pp. 365–375.
\item
K. Poularakis, J. Llorca, A. M. Tulino, I. Taylor, and L. Tassiulas, “Joint
service placement and request routing in multi-cell mobile edge computing networks,” in
IEEE Conference on Computer Communications (INFOCOM), 2019, pp. 10–18.
\item
K. Poularakis, J. Llorca, A. M. Tulino, and I. Taylor, “Service placement
and request routing in mec networks with storage, computation, and communication
constraints,” IEEE/ACM Transactions on Networking, vol. 28,
no. 3, pp. 1047–1060, 2020.
\item
V. Farhadi, F. Mehmeti, T. He, T. L. Porta, H. Khamfroush, S. Wang, and
K. S. Chan, “Service placement and request scheduling for data-intensive
applications in edge clouds,” in IEEE Conference on Computer
Communications(INFOCOM), 2019, pp. 1279–1287.
\item
Y. Qu, H. Dai, H. Wang, C. Dong, F. Wu, S. Guo, and Q. Wu, “Service
provisioning for uav-enabled mobile edge computing,” IEEE Journal on
Selected Areas in Communications, vol. 39, no. 11, pp. 3287–3305, 2021.
\item
X. Xu, H. Cao, Q. Geng, X. Liu, F. Dai, and C. Wang, “Dynamic resource
provisioning for workflow scheduling under uncertainty in edge computing
environment,” Concurrency and Computation: Practice and Experience,
vol. n/a, no. n/a, p. e5674.
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\item
B. Li, Q. He, G. Cui, X. Xia, F. Chen, H. Jin, and Y. Yang, “Read:
Robustness-oriented edge application deployment in edge computing environment,”
IEEE Transactions on Services Computing, pp. 1–1, 2020.
\item
NSU, “Rsome,” https://xiongpengnus.github.io/rsome/, 2021, [Online; accessed 3-Feb-
2022].
\item
N. Ngoenriang, S. J. Turner, D. Niyato, and S. Supittayapornpong, “Joint
uav-placement and data delivery in aerial inspection under uncertainties,”
IEEE Internet of Things Journal, pp. 1–1, 2021.
\item
IBM, “Ibm cplex optimizer,” https://www.ibm.com/in-en/analytics/cplexoptimizer, 2021,
[Online; accessed 3-Feb-2022].
\end{enumerate}
\end{document}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
10. Develop a LaTeX script to design a simple tree diagram or hierarchical structure in
the document with appropriate labels using the Tikz library
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\documentclass{article}
\usepackage{tikz}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 10}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\begin{figure}[ht]
\centering
\begin{tikzpicture}[
level 1/.style={sibling distance=7cm},
level 2/.style={sibling distance=5cm},
level 3/.style={sibling distance=25cm},
every node/.style={circle,draw,align=center}
\node {Root}
child{node{Child1}
child{node{Gchild1} }
child{node{Gchild2} }
child{node{Child2}
child{node{Gchild3} }
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
child{node{Gchild4} }
};
\end{tikzpicture}
\caption{Hierarchy Diagram}
\label{fig:hierarchy}
\end{figure}
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
11. Develop a LaTeX script to present an algorithm in the document using
algorithm/algorithmic/algorithm2e library
\documentclass{article}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[l]{Latex,program 10}
\fancyhead[r]{by Bhoomika YM}
\fancyfoot[l]{Dept of ISE,CIT,Gubbi.}
\fancyfoot[r]{2023-24}
\renewcommand{\headrulewidth}{2pt}
\renewcommand{\footrulewidth}{2pt}
\begin{document}
\begin{algorithm}
\caption{Euclid's algorithm}
\label{euclid}
\begin{algorithmic}[1]
\REQUIRE two non-negative integers $a$ and $b$ where $a \geq b$
\ENSURE $d = \gcd(a,b)$
\STATE $r \gets a \bmod b$
\WHILE{$r \neq 0$}
\STATE $a \gets b$
\STATE $b \gets r$
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\STATE $r \gets a \bmod b$
\ENDWHILE
\RETURN $b$
\end{algorithmic}
\end{algorithm}
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
12. Develop a LaTeX script to create a simple report and article by using suitable
commands and formats of user choice.
\documentclass[a4 paper,12pt]{report}
\usepackage[top=10mm,bottom=10mm,left=20mm,right=10mm]{geometry}
\title{Simple report}
\author{Bhoomika YM}
\date{April 25,2024}
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
\begin{document}
\chapter{Introduction}
This is the introduction of the report.
\section{backgroung}
some background information goes here.
\chapter{methodology}
this is the methodology section.
\section{experimental setup}
details of the experimental setup.
\chapter{results}
results and analysis go here.
\section{analysis}
detailed analysis of the results.
\chapter{conclusion}
concluding remarks.
\end{document}
Output:
Dept.of ISE,CIT,Gubbi
BCS456D,Latex
Dept.of ISE,CIT,Gubbi