Matnlarga ishlov berish LaTex text Formatting


Required packages for typsetting a CV in LaTeX


Download 0.75 Mb.
bet12/18
Sana09.04.2023
Hajmi0.75 Mb.
#1344635
1   ...   8   9   10   11   12   13   14   15   ...   18
Bog'liq
Matnlarga ishlov berish

Required packages for typsetting a CV in LaTeX
1. Document class
The first thing to do when writing a LaTeX document is to choose the document class. For our CV we will choose the article document class  since it is the most versatile class to work with short documents.
As an optional argument, we will choose the font size of the document to be 12pt. Thus the first line of our document is:
% CV in LaTeX
\documentclass[12pt]{article} % article with 12pt font
2. Language and encoding
Next, we have to load the packages we will use. To begin with, let us load some basic packages:
%% PACKAGES %%
\usepackage[english]{babel} % multilingual support
\usepackage[utf8]{inputenc} % encoding
\usepackage{blindtext} % to insert blind text

  • The babel package  is used for multilingual support; in our case, the CV will be written in English, but you can pass as optional argument of the package the main language of your document.

  • The inputenc package  sets the encoding of the document; I won’t go into detail of what this means, in general the utf8 encoding will be fine.

  • You can forget about the blindtext package , we use it in our example to print generic text, but you won’t need it.

3. Set the document font
In our example, the main font of the document is not LaTeX’s default font Computer Modern; instead, we load the package:
% Set the default font
\usepackage{tgpagella}
which sets as default font the TeX Gyre Pagella.


4. Specify the CV margins
We also modify the default margins, because the standard document margins are too wide for a CV. For this purpose, we will use the geometry package :
% set the page layout
\usepackage{geometry}
\geometry{
a4paper,
left=20mm,
%right=
%bottom=
top=15mm}
As you can see, the configuration command \geometry is very straightforward and lets us easily modify the size of the left, right, top, and bottom margins, setting them to the TeX dimension we want. Note that in our example we leave the default right and bottom margins, that’s why those lines are commented out (any margin that is not specified as the default length).

Download 0.75 Mb.

Do'stlaringiz bilan baham:
1   ...   8   9   10   11   12   13   14   15   ...   18




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling