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
'General Linux information' 카테고리의 다른 글
Drawing Graph eps file; GNU Plot (0) | 2014.12.03 |
---|---|
How to Use Git as My Repository (0) | 2014.11.17 |
20141015 Caution about .ssh folder (0) | 2014.10.15 |
How to install java & eclipse & byeoru & ssh & Hadoop on Ubuntu (0) | 2014.10.08 |
Linux General Information on Blogspot (0) | 2014.09.28 |