Matnlarga ishlov berish LaTex text Formatting


Remove headers, footers and page numbers


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

5. Remove headers, footers and page numbers
The page layout configuration is finished with the following command:
% empty the headers, footers, pagenumbers…
\pagestyle{empty}
which empties the page from other elements like headers, footers, page numbers, margin notes, or anything like that.
6. Modify sections style to meet CV style
Now the last thing we want to do before leaving this section changes how sectioning commands work. The different sections of the curriculum (Work Experience, Education, and so on) are created with the
usual \section command. However, we want to change slightly the appearance of this command, so that it
uses a custom font and also prints a horizontal rule below it. For this purpose, we use the sectsty package  as follows:
% Custom sectioning with secsty
\usepackage{sectsty}
\sectionfont{%
\large % make sections smaller
\fontfamily{qag}\selectfont % change font family
\sectionrule{0pt}{0pt}{-5pt}{1pt} % insert a thin rule
}

We change the font of the sectioning commands in the following ways:

  • We make the font smaller: instead of using the \Large default font size it uses \large.

  • We change the font family: instead of the font set for the entire document, for the sections we use the font \TeX Gyre Adventor, which can be loaded with the font code qag.

  • Finally, we print a horizontal rule 5pt below the title, with a thickness of 1pt.

Once we have loaded the packages we will need, we have to define the macros used to write each of the entries in the document.
2. The macros
It is important to define macros for this purpose, instead of writing the text directly in the main document, for at least two reasons.

  • First, the code becomes much shorter and cleaner, since we don’t have to specify the font
    size, type, etc. each time we want to write a new entry.

  • Second, the code becomes much more reusable, because this way the user doesn’t need to understand what’s working behind, he can simply use the macros to write his CV without knowing any LaTeX at all.

Before writing our first macros, we need to define a new length, which will be used to align text on the same line (for example, in the entries for personal information, or to write the duration of each work entry):

Download 0.75 Mb.

Do'stlaringiz bilan baham:
1   ...   10   11   12   13   14   15   16   17   18




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