Loading
2014. 12. 6. 17:04 - Phil lee

To Use Latex on Linux 20141206

 

tutorial_latex.pdf


How to install Latex?

>> sudo apt-get install texlive

 

Make a sample code of Latex

>> vim sample.tex

Directly make a PDF file from .tex file

>> pdflatex sample.tex

>> pdflatex sample.tex

 

Example .tex file

\documentclass[a4paper,11pt]{article}

% define the title

\author{H.~Part1}

\title{Minimalism}

\begin{document}

% generates the title

\maketitle

% insert the table of contents

\tableofcontents

\section{Some interesting Words}

Well, and here begins my lovely article. \\

I want to learn latex.!!!!!

\section{Good Bye World}

\ldots{} and here it ends.

\end{document}

 

How to Compile .tex file

>> latex sample.tex

 

Check output file from dvi.

>> xdvi sample.dvi &

 

Convert dvi file to PDF file

>> dvipdf sample.dvi

 

View a PDF file

>> gv sample.pdf

>> evince sample.pdf

>> xpdf sample.pdf

 

In ~/.vimrc for mapping command


sample002.pdf