| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 | \documentclass[a4paper,11pt,twoside]{book}% english and utf8\usepackage[T2A]{fontenc}\usepackage[utf8]{inputenc}%\usepackage[british,russian]{babel}\usepackage[british]{babel}% declare some unicode characters\DeclareUnicodeCharacter{2713}{yes} % ✓\DeclareUnicodeCharacter{20AC}{EUR} % €%% Title and author info%\newcommand{\plainTitle}{The definitive Guide to Yii 2.0}\newcommand{\formattedTitle}{The Definitive Guide\\\vspace{.5cm}to\\\vspace{.5cm}Yii 2.0}\newcommand{\plainAuthors}{    Qiang Xue,    Alexander Makarov,    Carsten Brandt,    Klimov Paul,    and    many contributors from the Yii community}\newcommand{\formattedAuthors}{    Qiang Xue,\\    Alexander Makarov,\\    Carsten Brandt,\\    Klimov Paul,\\    and\\    many contributors from the Yii community}\newcommand{\formattedTranslators}{}%% ---%\usepackage{color}% list spacing http://stackoverflow.com/questions/3275622/latex-remove-spaces-between-items-in-list\usepackage{enumitem}% url support\usepackage{url}% make links clickable\usepackage{hyperref}\definecolor{linkcol}{rgb}{0,0,0.4}\definecolor{citecol}{rgb}{0.5,0,0}% Change this to change the informations included in the pdf file% See hyperref documentation for information on those parameters\hypersetup{bookmarksopen=true,pdftitle="\plainTitle",pdfauthor="\plainAuthors",%pdfsubject="Creation of atlases and atlas based segmentation", %subject of the document%pdftoolbar=false, % toolbar hiddenpdfmenubar=true, %menubar shownpdfhighlight=/O, %effect of clicking on a linkcolorlinks=true, %couleurs sur les liens hypertextespdfpagemode=None, %aucun mode de pagepdfpagelayout=SinglePage, %ouverture en simple pagepdffitwindow=true, %pages ouvertes entierement dans toute la fenetrelinkcolor=linkcol, %couleur des liens hypertextes internescitecolor=citecol, %couleur des liens pour les citationsurlcolor=linkcol %couleur des liens pour les url}\title{\plainTitle}\author{\plainAuthors}% code listings\usepackage{listings}\definecolor{codebg}{rgb}{0.9,0.9,0.9}\definecolor{mygreen}{rgb}{0,0.6,0}\definecolor{mygray}{rgb}{0.5,0.5,0.5}\definecolor{mymauve}{rgb}{0.58,0,0.82}% TODO ensure copyable indentation:% http://tex.stackexchange.com/questions/142617/copy-pasting-leading-whitespace-and-blank-lines-in-listings-package-pdf\lstset{%  backgroundcolor=\color{codebg},   % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}  basicstyle=\ttfamily\footnotesize, % the size of the fonts that are used for the code  columns=fullflexible,  breakatwhitespace=false,         % sets if automatic breaks should only happen at whitespace  breaklines=true,                 % sets automatic line breaking  extendedchars=true,              % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8  keepspaces=true,                 % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)%  commentstyle=\color{mygreen},    % comment style  keywordstyle=\color{blue},       % keyword style  stringstyle=\color{mymauve},     % string literal style%% language=Octave,                 % the language of the code% morekeywords={*,...},            % if you want to add more keywords to the set% deletekeywords={...},            % if you want to delete keywords from the given language%  numbers=none,                    % where to put the line-numbers; possible values are (none, left, right), not using line numbers to allow copy&paste  stepnumber=1,                    % the step between two line-numbers. If it's 1, each line will be numbered  numbersep=5pt,                   % how far the line-numbers are from the code  numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers%  showspaces=false,                % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'  showstringspaces=false,          % underline spaces within strings only  showtabs=false,                  % show tabs within strings adding particular underscores%  tabsize=2,                       % sets default tabsize to 2 spaces%  title=\lstname                   % show the filename of files included with \lstinputlisting; also try caption instead of title%    literate={-}{-}1,    %    {\'}{'}1,    %    {\"}{\"}1  extendedchars=false}\lstdefinelanguage{json}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{css}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{less}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{scss}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{javascript}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{apache}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{nginx}{	morekeywords={},	sensitive=false,	morestring=[b]",}\lstdefinelanguage{bash}{	morekeywords={},	sensitive=false,	morestring=[b]",}% include images\usepackage{graphicx}% better tables using tabularx\usepackage{tabularx}% support github markdown strikethrough% http://tex.stackexchange.com/questions/23711/strikethrough-text\usepackage{ulem}\newcommand{\centeronpage}{% Horizontal adjustment of image  \ifodd\value{page}\hspace*{\dimexpr\evensidemargin-\oddsidemargin}\else\hspace*{-\dimexpr\evensidemargin-\oddsidemargin}\fi%}% uncomment for debugging layout issues%\usepackage{showframe}\begin{document}    \frontmatter    \include{title}    %Take a blank Page    \pagebreak \thispagestyle{empty} \cleardoublepage    \setcounter{tocdepth}{1}    \tableofcontents    \mainmatter	\include{guide}\end{document}
 |