Книги
- 1 ответ
- 0 вопросов
3
Вклад в тег
\documentclass[a4paper,12pt]{article}
\usepackage{cmap} % Поддержка поиска русских слов в PDF (pdflatex)
\usepackage[cp1251]{inputenc} % Выбор языка и кодировки
\usepackage[english, russian]{babel}
\usepackage[left=1cm,right=1cm,top=1cm,bottom=2cm]{geometry} % поля страницы
\begin{document}
\section{К работе готов!}
Можно начинать готовить новый документ в \TeX!
\end{document}
\documentclass{book}
\usepackage{fullpage}
\usepackage{changepage}
\usepackage{fontspec,xltxtra,xunicode}
\setmainfont{Calibri}
\setsansfont{Cambria}
\setmonofont{Consolas}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\setlength{\parindent}{0pt}
\setlength{\parskip}{12pt plus 2pt minus 1pt}
\linespread{1.2}
\usepackage{listings}
\usepackage[dvipsnames,usenames]{color}
\definecolor{lightgray}{rgb}{.95,.95,.95}
\definecolor{darkgray}{rgb}{.4,.4,.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
\lstdefinelanguage{JavaScript}{
keywords={typeof, new, true, false, catch, function, return, null, catch, switch, var, if, in, while, do, else, case, break},
keywordstyle=\color{blue}\bfseries,
ndkeywords={class, export, boolean, throw, implements, import, this},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
morestring=[b]',
morestring=[b]"
}
\lstset{
language=JavaScript,
backgroundcolor=\color{lightgray},
extendedchars=true,
basicstyle=\normalsize\ttfamily,
showstringspaces=false,
showspaces=false,
tabsize=1,
breaklines=true,
showtabs=false
}
\usepackage{enumerate}
\setcounter{secnumdepth}{-1}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,%
citecolor=YellowOrange,%
filecolor=YellowOrange,%
linkcolor=YellowOrange,%
urlcolor=YellowOrange
}
\usepackage[compact]{titlesec}
\titlespacing{\section}{0pt}{*0}{*-2}
\titlespacing{\subsection}{0pt}{*0}{*-2}
\titlespacing{\subsubsection}{0pt}{*1}{*-2}
\begin{document}
Текст.
Text.
\end{document}