0% found this document useful (0 votes)
72 views9 pages

Latex

Uploaded by

farhan60726072
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views9 pages

Latex

Uploaded by

farhan60726072
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

TASK-1

Aim:- Word Orientation:Overview of LaTeX and Microoft(MS) office or


equivalent(FOSS) tool word: Importance of Latex and MS office or equivalent(FOSS) tool
Word as Word Processors.

LaTeX is a family of programs designed to produce publication-quality typeset documents.


It is particularly strong when working with mathematical symbols. The history of LaTeX
begins with a program called TEX. In 1978, a computer scientist by the name of Donald
Knuth grew frustrated with the mistakes that his publishers made in typesetting his work. He
decided to create a typesetting program that everyone could easily use to typeset documents,
particularly those that include formulae, and made it freely available.

The result is TEX. Knuth's product is an immensely powerful program, but one that does
focus very much on small details. A mathematician and computer scientist by the name of
Leslie Lamport wrote a variant of TEX called LaTeX that focuses on document structure
rather than such details.

Required Components of LaTeX Document: Every LaTeX document must contain


the following three components. Everything else is optional (even text).

1. \documentclass{article}
2. \begin{document}
3. \end{document}

LaTeX Document Structure:


1. Page Numbering and Headings: The command \pagestyle controls page numbering
and headings. It should always go between the \documentclass{article} and the
\begin{document} commands. It can take the following forms:
A. \pagestyle{plain} is the default, which puts the page number at the center of
the bottom of the page and provides no headings.
B. \pagestyle{empty} provides neither page numbers nor headings.
C. \pagestyle{headings} will provide page numbers and headings from any
\section's that you are using.

A. \pagestyle{myheadings} will provide page numbers and custom headings


2. Creating a Title Page: The title, author, and date of your document are information
that various LaTeX commands can make use of, if you provide it.

E. \title{yourtitlehere}
F. \author{yournamehere}
G. \date{currentdate}
Sections: LaTeX is a language for creating structured documents. One of the most
important ways of creating structure in a document is to split it into logical sections. If your
document deals with more than one concept or theme, then each concept should go into its
own section. There are two related commands for creating sections: \section{sectiontitle}
and

\section*{sectiontitle}. he _rst one numbers the sections, while the starred form does not.
Both create separate sections with titles in a larger font size; they also provide information to
LaTeX in case you want to create a Table of Contents.
Cross References:
i. If you wish to have cross-references in a document with numbered sections,
use

ii. \label{name} to label the point in your document with some mnemonic, and
Section

iii. \ref{name} to refer to that point. \ref{name} will be replaced by the number
of the section containing the corresponding \label command.

Table of Contents:
iv. For a large document, it is a kindness to your reader to provide a Table of
Contents. If you have been using \section commands throughout your
document, then LaTeX has all the information that it needs to construct one
for you. Place the command

v. \tableofcontents after your \begin{document} command.

2. Abstracts:
i. To create an abstract, place your text in an abstract environment, i.e., between

ii. \begin{abstract} and \end{abstract} commands. The


abstract should come immediately after your \maketitle
command, but before any

\tableofcontents command.

Mathematical type settings:


1. Mathematical formulas:There are two ways to insert mathematical formulas into
your document with LaTeX. One is to have it appear in a paragraph with text. In
doing so, the formulas will be compressed vertically: limits for integrals and
summations will appear to the side instead of on the top and bottom, etc. The other
way is to have them appear in a separate paragraph, where there will be more room
Greek Letters:

2. Exponents and Subscripts:

Use the ^ character (shift-6), known as a caret, to create exponents

$x^2$ produces x2

If you have an exponent containing more than one character, group the exponent
characters inside braces.
3. Above and Below:
It is useful to be able to draw horizontal lines and braces above and below parts of a
formula. We can combine the \overline, \overbrace, \underline, and \underbrace
commands to our heart's content.

4. Fractions:
Fractions can be written in two ways: with a diagonal fraction bar or a horizontal one.
Diagonal fraction bars work best in tight places, such as in a text paragraph or when
in a larger fraction.

$a/b$ becomes a=b

The horizontal bar is clearer when you have more room, such as in a formula
paragraph. The command is a little more complicated, because the numerator and
denominator are often complicated themselves. A horizontal bar fraction is written as
\frac{numerator}{denominator}.

5. Functions: LaTeX uses italics in math mode for variables to make them stand out,
but Roman (non- italic) for function names. How is LaTeX to know the difference
between \sin" as function name and \sin" as the product of the variables s, i, and n?
Use a backslash in front of \sin" and other function names to let LaTeX know that
you want the function, not the product of variables. Here is a list of function names:
Sums, Integrals, and Limits:
Summations and integrals both have lower and upper limits, and the
commands are similar. Limits usually have text with an arrow placed below them.

Text in Math Display:


There will be times when you want to include Roman, i.e., non- italicized
words amongst your mathematical symbols. The font isn't the only problem; spacing
is di_erent between letters in a word and variables in a formula. Use the command

\mbox{your text here} to include short phrases in a formula.


Operators:
You will probably not need most of the binary operators listed here, but it
should be handy reference:

Relations:
Again, here are more relations than you will ever need. You may want to
print this for reference.
TASK-2

Aim:-Using LaTeX to create a project certificate. Feature to be covered: Formatting


Fonts in word, Drop Cap in word, Applying Text effects, Using Character Spacing, Borders
and Colors,Inseritng Header and Footer, Using Date and Time in LaTex.

Program:-
\documentclass{article}
%Text Color
\usepackage[dvipsnames]{xcolor}
%Color Box
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}[colback=white, colframe=blue, boxrule=2pt, sharp corners]
\begin{center}
\vspace{0.5cm}
\includegraphics[width=0.2 \textwidth]{jpnc}\\
\vspace{0.5cm}
{\huge \textbf{Certificate of Achievement}} \\
\vspace{0.2cm}
\hrulefill \\
\vspace{1cm}
This is to Certify that \\
\vspace{0.5cm}
{\Large \textbf {Your Name}} \\
\vspace{0.5cm}
has successfully completed the course \\
\vspace{0.5cm}
\textcolor{red}{\Large \textbf {C PROGRAMMING}} \\
\vspace{0.5cm}
on \\
\vspace{0.5cm}
{\Large \textbf {April 2024}} \\
\vspace{0.5cm}
\textcolor{cyan}{\Large \textbf {Jaya Prakash Narayan College of Engineering}} \\
\vspace{0.2cm}
\rule{8cm}{0.5pt} \\
\vspace{0.2cm}
{\footnotesize CSE Dept}
\vspace{0.5cm}
\end{center}
\end{tcolorbox}
\end{document}
Out put:-
TASK-3
Aim:-Using LaTeX to create a project abstract feature to be covered: Formatting
Styles, Bullets and numbering, Changing Text Direction, Cell alignment.

Program:-
\documentclass{article}
\begin{document}
\begin{abstract}
This is a simple paragraph at the beginning of the document. A brief introduction about the
main subject.
\end{abstract}
After our abstract we can begin the first paragraph, then press ``enter'' twice to start the
second one.
This line will start a second paragraph.
I will start the third paragraph and then add \\ a manual line break which causes this text to
start on a new line but remains part of the same paragraph. Alternatively, I can use the
\verb|\newline|\newline command to start a new line, which is also part of the same
paragraph.
\end{document}

Out put:-

Abstract

This is a simple paragraph at the beginning of the document. A brief introduction


about the main subject.

After our abstract we can begin the first paragraph, then press ``enter'' twice to start
the second one.

This line will start a second paragraph.

I will start the third paragraph and then add \\ a manual line break which causes this
text to start on a new line but remains part of the same paragraph. Alternatively, I can use the
\verb|\newline|\newline command to start a new line, which is also part of the same
paragraph.

You might also like