Feeds:
Posts

## Using Templates In latex

Fundamental template in latex system is called class, There are many templates like templates for bookwriting, articles, letters presentations and for posters and many more, as you know the first line start with \document class, when you see the word begin with backslash remember that word we called command latex system class are used to state documents types and properties like date, author and title

Preamble: The first part of documents is called the preamble of the document, This is where we choose the class, specify the properties, frankly speaking this preamble define the GENERAL formatting of the documents

\begin{document}: Starting of this command indicates the end of the preamble and the beginning of the actual document

\end{documents}: This command marks the ending of the actual documents

\maketitle: Print the title, author and date

\section{‘Introduction’}:  This command is used to format the heading of each section in bigger and bolder format

## Starting Latex for the First Time

After successful installation of Latex in your system, we are going to create the simple documents using latex for the formatting of documents we need to write some command as below, and be aware this command are the compulsion command to write any documents using latex system, and I comment for each command for what they do.

\documentclass[a4paper, 11pt]{article} %specify the type of documents, the document we are creating is article type

\begin{document} %article has beguan

\title{this is testing in linux} % Title of article

\author{Manoj Gautam} % author of article

\date{may 2, 1990} % date when article was written

\maketitle % format for subtitle

\section{This first Paragraph} % name of subtitle

This is testing in latex for the first time do you want to continue for that we are extremly sorry for the bad reloading of the page and I swear that this can % this is the content of subtitle

\end{document} % specify the end of article

After writing all the above structure in you favorite text editor you need to call the command which convert the above formatting into the PDF file

[manoj@root]# pdflatex yourfilename.txt

When you issued the above command from your terminal the latex engine convert your specified format of document into PDF file which look like this,

This is testing in linux
Manoj Gautam
may 2, 1990
1
This is first Paragraph
This is testing in latex for the first time do you want to continue…………

This is testing in linux
Manoj Gautam
may 2, 1990
1
This is first Paragraph
This is testing in latex for the first time do you want to continue…………

## Installation of Latex in Linux host ?

As you guys already know, what is latex if you don’t.  you can have a look in this  page. To install the Latex system in Linux host firstly, we  simply run the yum search command to search the latex that match our architecture, after that we run the yum install command to install it  and this is generally the first method. Second method to install latex in our system is to download the huge ISO file form the tux.org website and install it in Linux host machine

To install the Latex form the repository issue the following command

STEP1: Search Latex in fedora repository

[root@manoj-PC manoj]# yum install latex

STEP-2: Installation Latex

[root@manoj-PC manoj]# yum install texlive texlive-latex

STEP:3 Creating PDF documents using LATEX

To create the first documents in latex open any favorite  editors of yours  and put the following commands as shown below

\documentclass[a4paper,12pt]{article}
\begin{document}
This is my first program in Latex and I am very happy to having latex system in my workstation
\end{document}

In the above scripts \documentsclass  define the size of paper that you going to use and font of the characters, while the type of documents that you are going to write is article.

\begin{documents} command tells your tex engine that the actual documents writing process has began

\end{documents} command tell your tex engine that the writing documents has come to end

after doing all above process now it’s time to convert it into PDF format to do so, simply issue the following command in your terminal

[root@manoj-PC manoj]# latex yourfirstprogram.txt

when you issued the above command the latex engine convert your textfile into PDF file along with the texsetting that you provide to the texEngine(Latex).