-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathieee.tex
309 lines (240 loc) · 6.82 KB
/
ieee.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
\documentclass[10pt,journal,compsoc]{IEEEtran}
\makeatletter
\newcommand\subparagraph{%
\@startsection{subparagraph}{5}
{\parindent}
{3.25ex \@plus 1ex \@minus .2ex}
{-1em}
{\normalfont\normalsize\bfseries}}
\makeatother
\usepackage{titlesec}
\let\subparagraph\relax % You don't want to use \subparagraph
% Include a series of generic definitions and usepackage commands
\input{mediabuilder.tex}
% \renewcommand{\sfdefault}{phv}
% \renewcommand{\rmdefault}{ptm}
% \renewcommand{\ttdefault}{pcr}
% Need this for the \Letter glyph, envelope, for corresponding author.
\usepackage[misc,geometry]{ifsym}
\usepackage{authblk}
% used for twocol flush balance end on last page
\usepackage{flushend}
\usepackage{pdfpages}
\usepackage[skip=2pt, font=small, format=plain, labelfont=it, textfont=it, tableposition=below]{caption}
% This code to use {caption} will wipe out the ability of pandoc-crossref
% to prepend the "Figure" reference to the caption.
\DeclareCaptionLabelFormat{nolabel}{}
\captionsetup{labelformat=nolabel}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
% colors
\definecolor{bluehaze}{RGB}{54,95,145}
\definecolor{maroonhaze}{RGB}{148,54,52}
\definecolor{orangehaze}{RGB}{227,108,10}
\definecolor{black}{RGB}{0,0,0}
\definecolor{bluetint}{RGB}{0,50,100}
\definecolor{bluetint2}{RGB}{0,30,60}
\definecolor{graytint}{RGB}{175,175,175}
\definecolor{graybit}{RGB}{245,245,245}
\definecolor{lightblack}{RGB}{75,75,75}
% This is used to allow Shaded environment
$if(highlighting-macros)$
$highlighting-macros$
$endif$
% Start column longtable hack
% Allows tables to be used in two-column documents with pandoc
% Credit: https://tex.stackexchange.com/a/224096/161489
\makeatletter
\let\oldlt\longtable
\let\endoldlt\endlongtable
\def\longtable{\@ifnextchar[\longtable@i \longtable@ii}
\def\longtable@i[#1]{\begin{figure}[H]
\onecolumn
\begin{minipage}{0.5\textwidth}
\oldlt[#1]
}
\def\longtable@ii{\begin{figure}[H]
\onecolumn
\begin{minipage}{0.5\textwidth}
\oldlt
}
\def\endlongtable{\endoldlt
\end{minipage}
\twocolumn
\end{figure}}
\makeatother
% End column longtable hack
\ifxetex
\usepackage{fontspec,xltxtra,xunicode}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
\ifluatex
\usepackage{fontspec}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\else
\usepackage[utf8]{inputenc}
\fi
\fi
$if(natbib)$
\usepackage{natbib}
\bibliographystyle{plainnat}
$endif$
$if(biblatex)$
\usepackage{biblatex}
$if(biblio-files)$
\bibliography{$biblio-files$}
$endif$
$endif$
$if(lhs)$
\usepackage{listings}
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
$if(fancy-enums)$
% Redefine labelwidth for lists; otherwise, the enumerate package will cause
% markers to extend beyond the left margin.
\makeatletter\AtBeginDocument{%
\renewcommand{\@listi}
{\setlength{\labelwidth}{4em}}
}\makeatother
$endif$
$if(tables)$
\usepackage{ctable}
\usepackage{float} % provides the H option for float placement
$endif$
$if(url)$
\usepackage{url}
$endif$
\hypersetup{breaklinks=true, pdfborder={0 0 0}, colorlinks=true, urlcolor=bluehaze, linkcolor=bluehaze, citecolor=bluehaze, anchorcolor=bluehaze}
$if(strikeout)$
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
$if(subscript)$
\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
$endif$
$if(listings)$
\usepackage{listings}
$endif$
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
$if(verbatim-in-note)$
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{$title$}
$endif$
% $if(author)$
% \author{$for(author)$$author$$sep$ \and $endfor$}
% $endif$
$if(date)$
\date{$date$}
$endif$
$if(linespread)$\linespread{$linespread$}$else$
\linespread{1.0}
$endif$
% Fancy page numbering ---------------------------------------------------------
%\pagestyle{fancy}
%\fancyhead[RO]{Sheffield \thepage}
\usepackage{fancyhdr}
% Fancy abstract box styling ---------------------------------------------------
\usepackage{mdframed} % for framing
% Title spacing, size, and color ------------------------------------------------------
% \usepackage{titlesec}
% Convert author/affiliations from yaml into latex -----------------------------
$for(author)$
$if(author.name)$
$if(author.correspondence)$
\author[$author.affiliation$,\Letter]{$author.name$}
$else$
\author[$author.affiliation$]{$author.name$}
$endif$
$else$
\author{$author$}
$endif$
$endfor$
% institutions must come after \author definitions so that corresponding tag comes last.
$if(author)$
$for(institutions)$
$if(institutions.name)$
\affil[$institutions.key$]{$institutions.name$}
$endif$
$endfor$
$endif$
$for(author)$
$if(author.correspondence)$
\affil[ ]{\Letter \hspace{0.08cm} Correspondence: \href{mailto:$author.correspondence$}{$author.correspondence$}}
$endif$
$endfor$
%\subsectionfont{\color{maroonhaze}}
%\subsubsectionfont{\color{orangehaze}}
% end colors
% this code uses titles.sty to make a pagebreak with every header 1
% so each section will begin on a new page.
%\newcommand{\sectionbreak}{\clearpage}
$if(csl-refs)$
\newlength{\cslhangindent} % set up new length
\setlength{\cslhangindent}{$if(csl-hanging-indent)$2em$else$0em$endif$}
\newenvironment{cslreferences}%
{\everypar{\setlength{\hangindent}{\cslhangindent}}}%
{\par} % by default, this env does not change anything
$endif$
\ifCLASSOPTIONcompsoc
% IEEE Computer Society needs nocompress option
% requires cite.sty v4.0 or later (November 2003)
\usepackage[nocompress]{cite}
\else
% normal IEEE
\usepackage{cite}
\fi
% correct bad hyphenation here
\hyphenation{op-tical net-works semi-conduc-tor}
\begin{document}
\markboth{Journal of \LaTeX\ Class Files,~Vol.~14, No.~8, August~2015}%
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Computer Society Journals}
\IEEEtitleabstractindextext{%
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$if(keywords)$
\begin{IEEEkeywords}
$keywords$
\end{IEEEkeywords}
$endif$ }
$if(title)$
\maketitle
$endif$
\IEEEdisplaynontitleabstractindextext
\IEEEpeerreviewmaketitle
\IEEEraisesectionheading{\section{Introduction}\label{sec:introduction}}
$body$
% make the references smaller, and sloppier
$if(natbib)$
$if(biblio-files)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
{\footnotesize\sloppy\bibliography{$biblio-files$}}
$endif$
$endif$
$if(biblatex)$
{\footnotesize\sloppy\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$}
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}