-
Notifications
You must be signed in to change notification settings - Fork 0
/
synrc.tex
137 lines (113 loc) Β· 3.03 KB
/
synrc.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
% Copyright (c) 2010 Synrc Research Center
\usepackage{afterpage}
\usepackage{hevea}
\usepackage[english]{babel}
\usepackage{palatino}
\usepackage{graphicx}
\usepackage{tocloft}
\usepackage{cite}
\usepackage[utf8]{inputenc}
\usepackage{moreverb}
\usepackage{listings}
\usepackage[none]{hyphenat}
\usepackage{caption}
\usepackage[usenames,dvipsnames]{color}
\usepackage[top=18mm, bottom=25.4mm,
inner=16mm,outer=18mm,
paperwidth=142mm, paperheight=200mm]{geometry}
%left=18mm, right=18mm,
% \usepackage[hmarginratio=3:2]{geometry}
\hyphenation{framework nitrogen javascript facebook streaming JavaScript micro-frameworks}
\setlength{\cftsubsecnumwidth}{2.5em}
% include image for HeVeA and LaTeX
\makeatletter
\def\@seccntformat#1{\llap{\csname the#1\endcsname\hskip0.7em\relax}}
\makeatother
\newcommand{\includeimage}[2]
{\ifhevea
{\imgsrc{#1}}
\else{
\begin{figure}[h!]
\centering
\includegraphics[width=\textwidth]{#1}
\caption{#2}
\end{figure}}
\fi}
% HeVeA header
{\ifhevea
\let\oldmeta=\@meta
\renewcommand{\@meta}{%
\oldmeta
\begin{rawhtml}
<meta name="Author" content="Maxim Sokhatsky">
<meta http-equiv="expires" content="Tue, 01 Jan 2020 1:00:00 GMT" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=IE10,chrome=1" />
\end{rawhtml}}
\htmlhead{\rawhtmlinput{templates/head-hevea.htx}}
\htmlfoot{\rawhtmlinput{templates/foot.htx}}
\footerfalse
\fi}
% title page for N2O
\newcommand*{\titleWF}
{
\begingroup
\thispagestyle{empty}
\hbox{
\hspace*{0.2\textwidth}
\rule{1pt}{\textheight}
\hspace*{0.05\textwidth}
\parbox[b]{0.75\textwidth}
{
{\noindent\Huge \bfseries N2O}\\[2\baselineskip]
{\LARGE \textsc{
No Bullshit\\[0.5\baselineskip]
Sane Framework\\[0.5\baselineskip]
for Wild Web}}\\[4\baselineskip]
\vspace{0.5\textheight}
% {\Large \textit{Maxim Sokhatsky}}\\[2\baselineskip]
% {\large {\bf {\color{Blue}syn}{\color{OrangeRed}rc} research center}
% {\copyright} 2013-2014}\\[1\baselineskip]
}
}
\endgroup
}
% define images store
\graphicspath{{./images/}}
% start each section from new page
\let\stdsection\section
\renewcommand\section{\newpage\stdsection}
% define style for code listings
\lstset{
backgroundcolor=\color{white},
keywordstyle=\color{blue},
basicstyle=\bf\ttfamily\footnotesize,
columns=fixed}
%\headsep = 0cm
%\voffset = -1.5cm
%\hoffset = -0.7cm
%\topmargin = 0cm
%\textwidth = 12cm
%\textheight = 17.5cm
%\footskip = 1cm
\parindent = 0cm
\hyphenpenalty=5000
\tolerance=1000
\newenvironment{dedication}
{
\thispagestyle{empty}
\cleardoublepage
\thispagestyle{empty}
\vspace*{\stretch{1}}
\hfill\begin{minipage}[t]{0.66\textwidth}
\raggedright
}%
{
\end{minipage}
\vspace*{\stretch{3}}
\clearpage
}
\newcommand\blankpage{
\null
\thispagestyle{empty}
\newpage}