MGMTBLOG

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…………