Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

LaTeX Intro

Safdar Nawaz Khan Marwat


DCSE, UET Peshawar

Presentation 3

safdar@uetpeshawar.edu.pk
URLs in References
 Add a URL package to the document
 Used primarily for adding URLs in references
 Use BibTeX entry Misc

@Misc{LaTeX_tutorial_packages,
Author = {Tutorial},
HowPublished = {\url{http://www.latex-tutorial.com/tutorials}},
Title = {{A simple guide to LaTeX}},
Year = {last accessed on 27 July 2023},
}

safdar@uetpeshawar.edu.pk 2
URLs in References (cont.)
 \usepackage{url}

\documentclass{article}
\usepackage{url}

\title{Final Year Project} %preamble


\date{7 Oct. 2015} %preamble
\author{Safdar Marwat} %preamble

\begin{document}
\pagenumbering{gobble}
\maketitle
\newpage
\tableofcontents
\newpage
\pagenumbering{arabic}

\section{Introduction}
This is FYP report. Please see \cite{Marwat_UL_WPC_14}.
\subsection{Computer}
Electronic computational device \cite{LaTeX_tutorial_packages}.
\subsection{Networking}
Connecting devices, nodes, computers etc.

\bibliography{biblio01}
\bibliographystyle{ieeetr}

\end{document}

http://www.latex-tutorial.com/tutorials

safdar@uetpeshawar.edu.pk 3
Equations with Numbering
 Use equation environment
 Everything inside equation printed in MathMode
 Special typesetting environment for math

http://www.latex-tutorial.com/tutorials

safdar@uetpeshawar.edu.pk 4
Equations with Numbering
\documentclass{article}

\usepackage{url}
\title{Final Year Project} %preamble
\date{7 Oct. 2015} %preamble
\author{Safdar Marwat} %preamble

\begin{document}
\pagenumbering{gobble}
\maketitle
\newpage
\tableofcontents
\newpage
\pagenumbering{arabic}

\section{Introduction}
Equation (\ref{square_function}) represents a square function. Please see \
cite{LaTeX_tutorial_packages}.
\begin{equation} \label{square_function}
f(x) = x^2
\end{equation}
\subsection{Equation for Summation}
See equation (\ref{summation}) for summation.
\begin{equation} \label{summation}
\phi_k = q_k \sum_{j=0}^{k-1} p_j
\end{equation}
\subsection{Networking}
Connecting devices, nodes, computers etc.

\bibliography{biblio}
\bibliographystyle{ieeetr}

\end{document}

http://www.latex-tutorial.com/tutorials

safdar@uetpeshawar.edu.pk 5

You might also like