-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.tex
95 lines (77 loc) · 2.33 KB
/
template.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
[# if options.paper_size == "usletter" #]
\documentclass[[# if options.nocompress #]nocompress[# endif #]]{spie} %>>> use for US letter paper
[# else #]
\documentclass[[-options.paper_size-][# if options.nocompress #], nocompress[# endif #]]{spie} %>>> use for US letter paper
[# endif #]
%% \documentclass[a4paper]{spie} %>>> use this instead for A4 paper
%% \documentclass[nocompress]{spie} %>>> to avoid compression of citations
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage[colorlinks=true, allcolors=blue]{hyperref}
\usepackage[numbers]{natbib}
[-IMPORTS-]
[# if options.double_spacing #]
\renewcommand{\baselinestretch}{1.65}
[# else #]
% Change to 1.65 for double spacing
\renewcommand{\baselinestretch}{1.0}
[# endif #]
\title{[-doc.title-]}
[# for author in doc.authors #]
\author[[-author.letter|lower-]]{[-author.name-]}
[# endfor #]
[# for author in doc.authors #]
\affil[[-author.letter|lower-]]{
[#- for affiliation in author.affiliations #]
[-affiliation.value.name-][# if not loop.last #], [# endif #]
[# endfor #]}
[# endfor #]
% \authorinfo{Further author information: [email protected]}
[# for author in doc.authors #]
[# if author.corresponding #]
\authorinfo{Further author information: [-author.email-]}
[# endif #]
[# endfor #]
% Option to view page numbers
[# if options.page_numbers #]
% \pagestyle{empty} to hide page numbers
\pagestyle{plain}
[# else #]
% \pagestyle{plain} to show page numbers
\pagestyle{empty}
[# endif #]
[# if options.start_page #]
\setcounter{page}{[-options.start_page-]}
[# else #]
% \setcounter{page}{301}
[# endif #]
\begin{document}
\maketitle
[# if parts.abstract #]
\begin{abstract}
[-parts.abstract-]
\end{abstract}
[# endif #]
% Include a list of keywords after the abstract
[# if doc.keywords #]
\keywords{[-doc.keywords|join(", ")-]}
[# else #]
\keywords{}
[# endif #]
[-CONTENT-]
% Include appendix
[# if parts.appendix #]
\apendix
[-parts.appendix-]
[# endif #]
[# if parts.acknowledgments or options.link #]
\acknowledgments
[# if parts.acknowledgments #][-parts.acknowledgments-][# endif #]
[# if options.link #]View this paper at \href{[-options.link-]}{[-options.link-]}[# endif #]
[# endif #]
% References
[# if doc.bibliography #]
\bibliography{[- doc.bibliography | join(", ") -]}
\bibliographystyle{spiebib} % makes bibtex use spiebib.bst
[# endif #]
\end{document}