[go: up one dir, main page]

0% found this document useful (0 votes)
21 views17 pages

LateX Documentation

LateX is a markup language for document preparation, based on TeX, and is available for free. The document provides installation instructions for LateX and TeXstudio on both Ubuntu and Windows, along with guidelines for document structure, special characters, and various features like lists, images, and mathematics. It also includes information on using LateX with the Malayalam language and various packages to enhance functionality.

Uploaded by

binduann
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)
21 views17 pages

LateX Documentation

LateX is a markup language for document preparation, based on TeX, and is available for free. The document provides installation instructions for LateX and TeXstudio on both Ubuntu and Windows, along with guidelines for document structure, special characters, and various features like lists, images, and mathematics. It also includes information on using LateX with the Malayalam language and various packages to enhance functionality.

Uploaded by

binduann
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/ 17

LateX Documentation

1. Introduction
Latex is a markup language used to prepare documents on the computer. It is free
software. Latex is based on TeX, a typesetting system designed by Donald Knuth in
1978. teX is a low-level language that computers can work with, but most people find
it difficult to use, So lateX has been developed to make it easier. The current version
of latex is LateX2e.

2. How to install LateX

Open the terminal, and type the following commands:


# Updating Ubuntu repository
sudo apt update && sudo apt upgrade

# Installing LateX
sudo apt install texlive-latex-extra -y

# Confirm LateX version


latex - -version

3. Install TeXstudio in Ubuntu

Texstudio is not included in the Ubuntu 20.04 base repository, so it must be


installed through the PPA (personal package archive)
(currently Ubuntu 22.04).
● Add texstudio ppa
sudo add-apt-repository ppa:sunderme/texstudio
● Install texstudio version
sudo apt install texstudio
● To launch texstudio
texstudio
(After removing the latex and texstudio from the system,while running the
terminal to check whether all files are removed, some errors are shown
due to failed removal of some unknown files. So in order to recover that ,
add the following command and reinstall Texstudio)

sudo apt autoremove

Files are saved in “Downloads” folders in four ways:


“aux”,”log”,”tex”,”pdf” and also a zip file.

4)How to install LateX in windows

1) Install MikTeX
2)Install TeXstudio

5. Document Preparation
All LateX documents have a standard structure

% The part between


\documentclass
preamble
\begin{document}
% The part between
\begin{document}
body
\end{document}
While processing the input file, LateX needs to know what size of the
paper the author intends to create.

\documentclass[options]{article}.
We can provide the features required for our document in the
options section.
Class indicates which document is intended to be created.

6. LateX in Malayalam
XeTeX : It is an extension of TeX with built-in support for Unicode and
OpenType.

1. Installing XeTeX
XeTeX is packaged for all famous GNU/Linux distros. Following packages are
required to install to get a working xetex environment in your computer.

sudo apt install texlive-xetex


sudo apt install texlive-latex-extra
sudo apt install texlive-lang-other

2. Creating documents using XeTeX


Beforing adding the contents to the document,we have set the default
malayalam package given below on the preamble part.

\setdefaultlanguage{malayalam}
\setmainfont[Script=Malayalam, HyperChar=”00AD]{Rachana}
➡️ ➡️ ➡️
Select Options Configure TeXstudio Build Select Default compiler as
XeLaTeX (to compile) and Default viewer as PDF Viewer.After Closing the
tabs and running the code.

7. Article
\documentclass[12pt, a4paper]{article}
12pt is the font size and a4 paper is the size of the paper.

8. Packages
To simplify the programming language, many functions are provided, which
are called packages.
● \usepackage{ graphics }: Add pictures
● \usepackage{ color} : to colour the text
● \usepackage{ geometry }: to set the margin
● \usepackage{ hyperref }:to give hyperlink

9. Special Characters
% \ # ^ & _ {}
% >> mainly used to comment on the lines,but if we want to print the special
characters, we have to give ‘ \ ‘ in front of the special character.

10. Sentences

To give spaces in between the sentences


11. Giving Newline

12. Lists

Ordered List:

Unordered Lists:
13. Box

14. Article with two columns

15. Book
16. Letter

17. Bibliography
18. Glossary

To create glossaries,a package is a must. “ \usepackage{glossaries}”.


Before entering into document, add \makeglossaries.To create new entry, type
\newglossaryentry{latex}

19. Mathematics
There are two ways in latex to represent maths in latex:

● Inline mode

Fig:1 in Inline mode


● Display mode

Fig:2 in Display mode


● Figure Align

20. Circuits

For adding circuits to the latex, we use certain packages such as circuitikz in
the preamble part and \begin{circuitikz} in the body part.
21. Beamer

22. Inserting Image

To include images in Latex, use package{graphicx} and label the path where
pics are saved.
23. Template

24. Biodata

25. Graph Plot

To plot graphs in Latex, use the corresponding packages.


\usepackage{pgfplots}
\usepackage{geometry}
This is the contents that are used in the preamble part.
Inside the body,to load the graph , always begin with
\begin{tikzpicture}
\begin{axis}
\end{axis}
\end{tikzpicture}
26. Bar Plot
\usepackage{pgfplots} and bar starts with
\begin{axis}
#parameters in x-axis and y-axis
\addplot coordinates {#values of parameters}
\end{axis}
27. Multiple plots in a graph
28. Newsletter (Malayalam )

29. Images

30. Table
31. Matrix

You might also like