galaaz 0.4.6 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +3575 -118
  3. data/Rakefile +21 -4
  4. data/bin/gknit +152 -6
  5. data/bin/gknit-draft +105 -0
  6. data/bin/gknit-draft.rb +28 -0
  7. data/bin/gknit_Rscript +127 -0
  8. data/bin/grun +27 -1
  9. data/bin/gstudio +47 -4
  10. data/bin/{gstudio.rb → gstudio_irb.rb} +0 -0
  11. data/bin/gstudio_pry.rb +7 -0
  12. data/blogs/galaaz_ggplot/galaaz_ggplot.Rmd +3 -12
  13. data/blogs/galaaz_ggplot/galaaz_ggplot.html +77 -222
  14. data/blogs/galaaz_ggplot/galaaz_ggplot.md +4 -31
  15. data/blogs/galaaz_ggplot/galaaz_ggplot.pdf +0 -0
  16. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-html/midwest_rb.png +0 -0
  17. data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-html/scatter_plot_rb.png +0 -0
  18. data/blogs/galaaz_ggplot/midwest.Rmd +1 -9
  19. data/blogs/gknit/gknit.Rmd +232 -123
  20. data/blogs/{dev/dev.html → gknit/gknit.html} +1897 -33
  21. data/blogs/gknit/gknit.pdf +0 -0
  22. data/blogs/gknit/lst.rds +0 -0
  23. data/blogs/gknit/stats.bib +27 -0
  24. data/blogs/manual/lst.rds +0 -0
  25. data/blogs/manual/manual.Rmd +1893 -47
  26. data/blogs/manual/manual.html +3153 -347
  27. data/blogs/manual/manual.md +3575 -118
  28. data/blogs/manual/manual.pdf +0 -0
  29. data/blogs/manual/manual.tex +4026 -0
  30. data/blogs/manual/manual_files/figure-html/bubble-1.png +0 -0
  31. data/blogs/manual/manual_files/figure-html/diverging_bar.png +0 -0
  32. data/blogs/manual/manual_files/figure-latex/bubble-1.png +0 -0
  33. data/blogs/manual/manual_files/figure-latex/diverging_bar.pdf +0 -0
  34. data/blogs/{dev → manual}/model.rb +0 -0
  35. data/blogs/nse_dplyr/nse_dplyr.Rmd +849 -0
  36. data/blogs/nse_dplyr/nse_dplyr.html +878 -0
  37. data/blogs/nse_dplyr/nse_dplyr.md +1198 -0
  38. data/blogs/nse_dplyr/nse_dplyr.pdf +0 -0
  39. data/blogs/oh_my/oh_my.html +274 -386
  40. data/blogs/oh_my/oh_my.md +208 -205
  41. data/blogs/ruby_plot/ruby_plot.Rmd +64 -84
  42. data/blogs/ruby_plot/ruby_plot.html +235 -208
  43. data/blogs/ruby_plot/ruby_plot.md +239 -34
  44. data/blogs/ruby_plot/ruby_plot.pdf +0 -0
  45. data/blogs/ruby_plot/ruby_plot_files/figure-html/dose_len.png +0 -0
  46. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_delivery.png +0 -0
  47. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_dose.png +0 -0
  48. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color.png +0 -0
  49. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color2.png +0 -0
  50. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_decorations.png +0 -0
  51. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.png +0 -0
  52. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_points.png +0 -0
  53. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_box_plot.png +0 -0
  54. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.png +0 -0
  55. data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.png +0 -0
  56. data/examples/Bibliography/master.bib +50 -0
  57. data/examples/Bibliography/stats.bib +72 -0
  58. data/examples/islr/ch2.spec.rb +1 -1
  59. data/examples/islr/ch3_boston.rb +4 -4
  60. data/examples/islr/x_y_rnorm.jpg +0 -0
  61. data/examples/latex_templates/Test-acm_article/Makefile +16 -0
  62. data/examples/latex_templates/Test-acm_article/Test-acm_article.Rmd +65 -0
  63. data/examples/latex_templates/Test-acm_article/acm_proc_article-sp.cls +1670 -0
  64. data/examples/latex_templates/Test-acm_article/sensys-abstract.cls +703 -0
  65. data/examples/latex_templates/Test-acm_article/sigproc.bib +59 -0
  66. data/examples/latex_templates/Test-acs_article/Test-acs_article.Rmd +260 -0
  67. data/examples/latex_templates/Test-acs_article/Test-acs_article.pdf +0 -0
  68. data/examples/latex_templates/Test-acs_article/acs-Test-acs_article.bib +11 -0
  69. data/examples/latex_templates/Test-acs_article/acs-my_output.bib +11 -0
  70. data/examples/latex_templates/Test-acs_article/acstest.bib +17 -0
  71. data/examples/latex_templates/Test-aea_article/AEA.cls +1414 -0
  72. data/examples/latex_templates/Test-aea_article/BibFile.bib +0 -0
  73. data/examples/latex_templates/Test-aea_article/Test-aea_article.Rmd +108 -0
  74. data/examples/latex_templates/Test-aea_article/Test-aea_article.pdf +0 -0
  75. data/examples/latex_templates/Test-aea_article/aea.bst +1269 -0
  76. data/examples/latex_templates/Test-aea_article/multicol.sty +853 -0
  77. data/examples/latex_templates/Test-aea_article/references.bib +0 -0
  78. data/examples/latex_templates/Test-aea_article/setspace.sty +546 -0
  79. data/examples/latex_templates/Test-amq_article/Test-amq_article.Rmd +256 -0
  80. data/examples/latex_templates/Test-amq_article/Test-amq_article.pdf +0 -0
  81. data/examples/latex_templates/Test-amq_article/Test-amq_article.pdfsync +3397 -0
  82. data/examples/latex_templates/Test-amq_article/pics/Figure2.pdf +0 -0
  83. data/examples/latex_templates/Test-ams_article/Test-ams_article.Rmd +215 -0
  84. data/examples/latex_templates/Test-ams_article/amstest.bib +436 -0
  85. data/examples/latex_templates/Test-asa_article/Test-asa_article.Rmd +153 -0
  86. data/examples/latex_templates/Test-asa_article/Test-asa_article.pdf +0 -0
  87. data/examples/latex_templates/Test-asa_article/agsm.bst +1353 -0
  88. data/examples/latex_templates/Test-asa_article/bibliography.bib +233 -0
  89. data/examples/latex_templates/Test-ieee_article/IEEEtran.bst +2409 -0
  90. data/examples/latex_templates/Test-ieee_article/IEEEtran.cls +6346 -0
  91. data/examples/latex_templates/Test-ieee_article/Test-ieee_article.Rmd +175 -0
  92. data/examples/latex_templates/Test-ieee_article/Test-ieee_article.pdf +0 -0
  93. data/examples/latex_templates/Test-ieee_article/mybibfile.bib +20 -0
  94. data/examples/latex_templates/Test-rjournal_article/RJournal.sty +335 -0
  95. data/examples/latex_templates/Test-rjournal_article/RJreferences.bib +18 -0
  96. data/examples/latex_templates/Test-rjournal_article/RJwrapper.pdf +0 -0
  97. data/examples/latex_templates/Test-rjournal_article/Test-rjournal_article.Rmd +52 -0
  98. data/examples/latex_templates/Test-springer_article/Test-springer_article.Rmd +65 -0
  99. data/examples/latex_templates/Test-springer_article/Test-springer_article.pdf +0 -0
  100. data/examples/latex_templates/Test-springer_article/bibliography.bib +26 -0
  101. data/examples/latex_templates/Test-springer_article/spbasic.bst +1658 -0
  102. data/examples/latex_templates/Test-springer_article/spmpsci.bst +1512 -0
  103. data/examples/latex_templates/Test-springer_article/spphys.bst +1443 -0
  104. data/examples/latex_templates/Test-springer_article/svglov3.clo +113 -0
  105. data/examples/latex_templates/Test-springer_article/svjour3.cls +1431 -0
  106. data/examples/misc/moneyball.rb +1 -1
  107. data/examples/misc/subsetting.rb +37 -37
  108. data/examples/rmarkdown/svm-rmarkdown-anon-ms-example/svm-rmarkdown-anon-ms-example.Rmd +73 -0
  109. data/examples/rmarkdown/svm-rmarkdown-anon-ms-example/svm-rmarkdown-anon-ms-example.pdf +0 -0
  110. data/examples/rmarkdown/svm-rmarkdown-article-example/svm-rmarkdown-article-example.Rmd +382 -0
  111. data/examples/rmarkdown/svm-rmarkdown-article-example/svm-rmarkdown-article-example.pdf +0 -0
  112. data/examples/rmarkdown/svm-rmarkdown-beamer-example/svm-rmarkdown-beamer-example.Rmd +164 -0
  113. data/examples/rmarkdown/svm-rmarkdown-beamer-example/svm-rmarkdown-beamer-example.pdf +0 -0
  114. data/examples/rmarkdown/svm-rmarkdown-cv/svm-rmarkdown-cv.Rmd +92 -0
  115. data/examples/rmarkdown/svm-rmarkdown-cv/svm-rmarkdown-cv.pdf +0 -0
  116. data/examples/rmarkdown/svm-rmarkdown-syllabus-example/attend-grade-relationships.csv +482 -0
  117. data/examples/rmarkdown/svm-rmarkdown-syllabus-example/svm-rmarkdown-syllabus-example.Rmd +280 -0
  118. data/examples/rmarkdown/svm-rmarkdown-syllabus-example/svm-rmarkdown-syllabus-example.pdf +0 -0
  119. data/examples/rmarkdown/svm-xaringan-example/svm-xaringan-example.Rmd +386 -0
  120. data/lib/R_interface/r.rb +2 -2
  121. data/lib/R_interface/r_libs.R +6 -1
  122. data/lib/R_interface/r_methods.rb +12 -2
  123. data/lib/R_interface/rdata_frame.rb +8 -17
  124. data/lib/R_interface/rindexed_object.rb +1 -2
  125. data/lib/R_interface/rlist.rb +1 -0
  126. data/lib/R_interface/robject.rb +20 -23
  127. data/lib/R_interface/rpkg.rb +15 -6
  128. data/lib/R_interface/rsupport.rb +13 -19
  129. data/lib/R_interface/ruby_extensions.rb +14 -18
  130. data/lib/R_interface/rvector.rb +0 -12
  131. data/lib/gknit.rb +2 -0
  132. data/lib/gknit/draft.rb +105 -0
  133. data/lib/gknit/knitr_engine.rb +6 -37
  134. data/lib/util/exec_ruby.rb +22 -84
  135. data/lib/util/inline_file.rb +7 -3
  136. data/specs/figures/bg.jpeg +0 -0
  137. data/specs/figures/bg.png +0 -0
  138. data/specs/figures/bg.svg +2 -2
  139. data/specs/figures/dose_len.png +0 -0
  140. data/specs/figures/no_args.jpeg +0 -0
  141. data/specs/figures/no_args.png +0 -0
  142. data/specs/figures/no_args.svg +2 -2
  143. data/specs/figures/width_height.jpeg +0 -0
  144. data/specs/figures/width_height.png +0 -0
  145. data/specs/figures/width_height_units1.jpeg +0 -0
  146. data/specs/figures/width_height_units1.png +0 -0
  147. data/specs/figures/width_height_units2.jpeg +0 -0
  148. data/specs/figures/width_height_units2.png +0 -0
  149. data/specs/r_dataframe.spec.rb +184 -11
  150. data/specs/r_list.spec.rb +4 -4
  151. data/specs/r_list_apply.spec.rb +11 -10
  152. data/specs/ruby_expression.spec.rb +3 -11
  153. data/specs/tmp.rb +106 -34
  154. data/version.rb +1 -1
  155. metadata +96 -33
  156. data/bin/gknit_old_r +0 -236
  157. data/blogs/dev/dev.Rmd +0 -77
  158. data/blogs/dev/dev.md +0 -87
  159. data/blogs/dev/dev_files/figure-html/bubble-1.png +0 -0
  160. data/blogs/dev/dev_files/figure-html/diverging_bar. +0 -0
  161. data/blogs/dev/dev_files/figure-html/diverging_bar.png +0 -0
  162. data/blogs/dplyr/dplyr.rb +0 -63
  163. data/blogs/galaaz_ggplot/galaaz_ggplot.aux +0 -43
  164. data/blogs/galaaz_ggplot/galaaz_ggplot.log +0 -640
  165. data/blogs/galaaz_ggplot/galaaz_ggplot.out +0 -10
  166. data/blogs/galaaz_ggplot/galaaz_ggplot.tex +0 -481
  167. data/blogs/galaaz_ggplot/midwest.png +0 -0
  168. data/blogs/galaaz_ggplot/scatter_plot.png +0 -0
  169. data/blogs/ruby_plot/ruby_plot.Rmd_external_figs +0 -662
  170. data/blogs/ruby_plot/ruby_plot.tex +0 -1077
  171. data/blogs/ruby_plot/ruby_plot_files/figure-html/dose_len.svg +0 -57
  172. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_delivery.svg +0 -106
  173. data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_dose.svg +0 -110
  174. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color.svg +0 -174
  175. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color2.svg +0 -236
  176. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.svg +0 -296
  177. data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_points.svg +0 -236
  178. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_box_plot.svg +0 -218
  179. data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.svg +0 -128
  180. data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.svg +0 -150
  181. data/examples/paper/paper.rb +0 -36
@@ -0,0 +1,59 @@
1
+ @ARTICLE{bowman:reasoning,
2
+ AUTHOR = "Mic Bowman and Saumya K. Debray and Larry L. Peterson",
3
+ TITLE = "Reasoning About Naming Systems",
4
+ JOURNAL = "ACM Trans. Program. Lang. Syst.",
5
+ VOLUME = {15},
6
+ NUMBER = {5},
7
+ PAGES = {795-825},
8
+ MONTH = "November",
9
+ YEAR = {1993} }
10
+
11
+ @ARTICLE{braams:babel,
12
+ AUTHOR = "Johannes Braams",
13
+ TITLE = "Babel, a Multilingual Style-Option System for Use with LaTeX's Standard Document Styles",
14
+ JOURNAL = {TUGboat},
15
+ VOLUME = {12},
16
+ NUMBER = {2},
17
+ PAGES = {291-301},
18
+ MONTH = "June",
19
+ YEAR = {1991} }
20
+
21
+ @INPROCEEDINGS{clark:pct,
22
+ AUTHOR = "Malcolm Clark",
23
+ TITLE = "Post Congress Tristesse",
24
+ BOOKTITLE = "TeX90 Conference Proceedings",
25
+ PAGES = "84-89",
26
+ ORGANIZATION = "TeX Users Group",
27
+ MONTH = "March",
28
+ YEAR = {1991} }
29
+
30
+ @ARTICLE{herlihy:methodology,
31
+ AUTHOR = "Maurice Herlihy",
32
+ TITLE = "A Methodology for Implementing Highly Concurrent
33
+ Data Objects",
34
+ JOURNAL = {ACM Trans. Program. Lang. Syst.},
35
+ VOLUME = {15},
36
+ NUMBER = {5},
37
+ PAGES = {745-770},
38
+ MONTH = "November",
39
+ YEAR = {1993} }
40
+
41
+ @BOOK{Lamport:LaTeX,
42
+ AUTHOR = "Leslie Lamport",
43
+ TITLE = "LaTeX User's Guide and Document Reference Manual",
44
+ PUBLISHER = "Addison-Wesley Publishing Company",
45
+ ADDRESS = "Reading, Massachusetts",
46
+ YEAR = "1986" }
47
+
48
+ @BOOK{salas:calculus,
49
+ AUTHOR = "S.L. Salas and Einar Hille",
50
+ TITLE = "Calculus: One and Several Variable",
51
+ PUBLISHER = "John Wiley and Sons",
52
+ ADDRESS = "New York",
53
+ YEAR = "1978" }
54
+
55
+
56
+
57
+
58
+
59
+
@@ -0,0 +1,260 @@
1
+ ---
2
+ journal: jacsat
3
+ type: article
4
+ author:
5
+ - name: Andrew N. Other
6
+ altaff: A shared footnote
7
+ - name: Fred T. Secondauthor
8
+ altaff: "Current address: Some other place, Germany"
9
+ - name: I. Ken Groupleader
10
+ altaff: A shared footnote
11
+ email: \email{i.k.groupleader@unknown.uu}
12
+ phone: +123 (0)123 4445556
13
+ fax: +123 (0)123 4445557
14
+ aff: Department of Chemistry, Unknown University, Unknown Town
15
+ alsoaff: Department of Chemistry, Second University, Nearby Town
16
+ - name: Susanne K. Laborator
17
+ email: \email{s.k.laborator@bigpharma.co}
18
+ aff: Lead Discovery, BigPharma, Big Town, USA
19
+ - name: Kay T. Finally
20
+ aff: Department of Chemistry, Unknown University, Unknown Town
21
+ alsoaff: Department of Chemistry, Second University, Nearby Town
22
+ title:
23
+ formatted: A demonstration of the \textsf{achemso} \LaTeX\
24
+ class\footnote{A footnote for the title}
25
+ short: An \textsf{achemso} demo
26
+ abbr: IR,NMR,UV
27
+ keywords: American Chemical Society, \LaTeX
28
+ abstract: |
29
+ This is an example document for the \textsf{achemso} documentclass, intended for submissions to the American Chemical Society for publication. The class is based on the standard \LaTeXe\ \textsf{report} file, and does not seek to reproduce the appearanceof a published paper.
30
+
31
+ This is an abstract for the \textsf{achemso} document class demonstration document. An abstract is only allowed for certain manuscript types. The selection of \texttt{journal} and \texttt{manuscript} will determine if an abstract is valid. If not, the class will issue an appropriate error.This is the abstract.
32
+
33
+ bibliography: acstest.bib
34
+ output: rticles::acs_article
35
+ ---
36
+
37
+ \begin{tocentry}
38
+ Some journals require a graphical entry for the Table of Contents.
39
+ This should be laid out ``print ready'' so that the sizing of the
40
+ text is correct.
41
+
42
+ Inside the \texttt{tocentry} environment, the font used is Helvetica
43
+ 8\,pt, as required by \emph{Journal of the American Chemical
44
+ Society}.
45
+
46
+ The surrounding frame is 9\,cm by 3.5\,cm, which is the maximum
47
+ permitted for \emph{Journal of the American Chemical Society}
48
+ graphical table of content entries. The box will not resize if the
49
+ content is too big: instead it will overflow the edge of the box.
50
+
51
+ This box and the associated title will always be printed on a
52
+ separate page at the end of the document.
53
+ \end{tocentry}
54
+
55
+ # Introduction
56
+ This is a paragraph of text to fill the introduction of the
57
+ demonstration file. The demonstration file attempts to show the
58
+ modifications of the standard \LaTeX\ macros that are implemented by
59
+ the \textsf{achemso} class. These are mainly concerned with content,
60
+ as opposed to appearance.
61
+
62
+ # Results and discussion
63
+
64
+ ## Outline
65
+
66
+ The document layout should follow the style of the journal concerned.
67
+ Where appropriate, sections and subsections should be added in the
68
+ normal way. If the class options are set correctly, warnings will be
69
+ given if these should not be present.
70
+
71
+ ## References
72
+
73
+ The class makes various changes to the way that references are
74
+ handled. The class loads \textsf{natbib}, and also the
75
+ appropriate bibliography style. References can be made using
76
+ the normal method; the citation should be placed before any
77
+ punctuation, as the class will move it if using a superscript
78
+ citation style [@Garnier2007].
79
+ The use of \textsf{natbib} allows the use of the various citation
80
+ commands of that package have shown
81
+ something. Long lists of authors will be
82
+ automatically truncated in most article formats, but not in
83
+ supplementary information or reviews. If you
84
+ encounter problems with the citation macros, please check that
85
+ your copy of \textsf{natbib} is up to date. The demonstration
86
+ database file \texttt{achemso-demo.bib} shows how to complete
87
+ entries correctly. Notice that ``\latin{et al.}'' is auto-formatted
88
+ using the \texttt{\textbackslash latin} command.
89
+
90
+ Multiple citations to be combined into a list can be given as
91
+ a single citation. This uses the \textsf{mciteplus} package.
92
+ Citations other than the first of the list should be indicated
93
+ with a star.
94
+
95
+ The class also handles notes to be added to the bibliography. These
96
+ should be given in place in the document. As with
97
+ citations, the text should be placed before punctuation. A note is
98
+ also generated if a citation has an optional note. This assumes that
99
+ the whole work has already been cited: odd numbering will result if
100
+ this is not the case .
101
+
102
+ ## Floats
103
+
104
+ New float types are automatically set up by the class file. The
105
+ means graphics are included as follows (Scheme \ref{sch:example}). As
106
+ illustrated, the float is ``here'' if possible.
107
+ \begin{scheme}
108
+ Your scheme graphic would go here: \texttt{.eps} format\\
109
+ for \LaTeX\, or \texttt{.pdf} (or \texttt{.png}) for pdf\LaTeX\\
110
+ \textsc{ChemDraw} files are best saved as \texttt{.eps} files:\\
111
+ these can be scaled without loss of quality, and can be\\
112
+ converted to \texttt{.pdf} files easily using \texttt{eps2pdf}.\\
113
+ %\includegraphics{graphic}
114
+ \caption{An example scheme}
115
+ \label{sch:example}
116
+ \end{scheme}
117
+
118
+ ```{r,echo=FALSE,fig.cap='test'}
119
+ plot(1:10)
120
+ ```
121
+
122
+ \begin{figure}
123
+ As well as the standard float types \texttt{table}\\
124
+ and \texttt{figure}, the class also recognises\\
125
+ \texttt{scheme}, \texttt{chart} and \texttt{graph}.
126
+ \caption{An example figure}
127
+ \label{fgr:example}
128
+ \end{figure}
129
+
130
+ Charts, figures and schemes do not necessarily have to be labelled or
131
+ captioned. However, tables should always have a title. It is
132
+ possible to include a number and label for a graphic without any
133
+ title, using an empty argument to the \texttt{\textbackslash caption}
134
+ macro.
135
+
136
+ The use of the different floating environments is not required, but
137
+ it is intended to make document preparation easier for authors. In
138
+ general, you should place your graphics where they make logical
139
+ sense; the production process will move them if needed.
140
+
141
+ ## Math(s)
142
+
143
+ The \textsf{achemso} class does not load any particular additional
144
+ support for mathematics. If packages such as \textsf{amsmath} are
145
+ required, they should be loaded in the preamble. However,
146
+ the basic \LaTeX\ math(s) input should work correctly without
147
+ this. Some inline material $y = mx + c$ or $1 + 1 = 2$
148
+ followed by some display. $$ A = \pi r^2 $$
149
+
150
+ It is possible to label equations in the usual way (Eq. \ref{eqn:example}).
151
+ \begin{equation}
152
+ \frac{\mathrm{d}}{\mathrm{d}x} \, r^2 = 2r \label{eqn:example}
153
+ \end{equation}
154
+ This can also be used to have equations containing graphical
155
+ content. To align the equation number with the middle of the graphic,
156
+ rather than the bottom, a minipage may be used.
157
+ \begin{equation}
158
+ \begin{minipage}[c]{0.80\linewidth}
159
+ \centering
160
+ As illustrated here, the width of \\
161
+ the minipage needs to allow some \\
162
+ space for the number to fit in to.
163
+ %\includegraphics{graphic}
164
+ \end{minipage}
165
+ \label{eqn:graphic}
166
+ \end{equation}
167
+
168
+ # Experimental
169
+
170
+ The usual experimental details should appear here. This could
171
+ include a table, which can be referenced as Table \ref{tbl:example}.
172
+ Notice that the caption is positioned at the top of the table.
173
+ \begin{table}
174
+ \caption{An example table}
175
+ \label{tbl:example}
176
+ \begin{tabular}{ll}
177
+ \hline
178
+ Header one & Header two \\
179
+ \hline
180
+ Entry one & Entry two \\
181
+ Entry three & Entry four \\
182
+ Entry five & Entry five \\
183
+ Entry seven & Entry eight \\
184
+ \hline
185
+ \end{tabular}
186
+ \end{table}
187
+
188
+ Adding notes to tables can be complicated. Perhaps the easiest
189
+ method is to generate these using the basic
190
+ \texttt{\textbackslash textsuperscript} and
191
+ \texttt{\textbackslash emph} macros, as illustrated (Table \ref{tbl:notes}).
192
+ \begin{table}
193
+ \caption{A table with notes}
194
+ \label{tbl:notes}
195
+ \begin{tabular}{ll}
196
+ \hline
197
+ Header one & Header two \\
198
+ \hline
199
+ Entry one\textsuperscript{\emph{a}} & Entry two \\
200
+ Entry three\textsuperscript{\emph{b}} & Entry four \\
201
+ \hline
202
+ \end{tabular}
203
+
204
+ \textsuperscript{\emph{a}} Some text;
205
+ \textsuperscript{\emph{b}} Some more text.
206
+ \end{table}
207
+
208
+ The example file also loads the optional \textsf{mhchem} package, so
209
+ that formulas are easy to input: \texttt{\textbackslash ce\{H2SO4\}}
210
+ gives \ce{H2SO4}. See the use in the bibliography file (when using
211
+ titles in the references section).
212
+
213
+ The use of new commands should be limited to simple things which will
214
+ not interfere with the production process. For example,
215
+ \texttt{\textbackslash mycommand} has been defined in this example,
216
+ to give italic, mono-spaced text: \mycommand{some text}.
217
+
218
+ # Extra information when writing JACS Communications
219
+
220
+ When producing communications for \emph{J.~Am.\ Chem.\ Soc.}, the
221
+ class will automatically lay the text out in the style of the
222
+ journal. This gives a guide to the length of text that can be
223
+ accommodated in such a publication. There are some points to bear in
224
+ mind when preparing a JACS Communication in this way. The layout
225
+ produced here is a \emph{model} for the published result, and the
226
+ outcome should be taken as a \emph{guide} to the final length. The
227
+ spacing and sizing of graphical content is an area where there is
228
+ some flexibility in the process. You should not worry about the
229
+ space before and after graphics, which is set to give a guide to the
230
+ published size. This is very dependant on the final published layout.
231
+
232
+ You should be able to use the same source to produce a JACS
233
+ Communication and a normal article. For example, this demonstration
234
+ file will work with both \texttt{type=article} and
235
+ \texttt{type=communication}. Sections and any abstract are
236
+ automatically ignored, although you will get warnings to this effect.
237
+
238
+ \begin{acknowledgement}
239
+
240
+ Please use ``The authors thank \ldots'' rather than ``The
241
+ authors would like to thank \ldots''.
242
+
243
+ The author thanks Mats Dahlgren for version one of \textsf{achemso},
244
+ and Donald Arseneau for the code taken from \textsf{cite} to move
245
+ citations after punctuation. Many users have provided feedback on the
246
+ class, which is reflected in all of the different demonstrations
247
+ shown in this document.
248
+
249
+ \end{acknowledgement}
250
+
251
+ \begin{suppinfo}
252
+
253
+ This will usually read something like: ``Experimental procedures and
254
+ characterization data for all new compounds. The class will
255
+ automatically add a sentence pointing to the information on-line:
256
+
257
+ \end{suppinfo}
258
+ ## References
259
+
260
+
@@ -0,0 +1,11 @@
1
+ This is an auxiliary file used by the `achemso' bundle.
2
+ This file may safely be deleted. It will be recreated as required.
3
+
4
+ @Control{achemso-control,
5
+ ctrl-article-title = "yes",
6
+ ctrl-chapter-title = "no",
7
+ ctrl-doi = "no",
8
+ ctrl-etal-number = "15",
9
+ ctrl-etal-firstonly = "yes",
10
+ }
11
+
@@ -0,0 +1,11 @@
1
+ This is an auxiliary file used by the `achemso' bundle.
2
+ This file may safely be deleted. It will be recreated as required.
3
+
4
+ @Control{achemso-control,
5
+ ctrl-article-title = "yes",
6
+ ctrl-chapter-title = "no",
7
+ ctrl-doi = "no",
8
+ ctrl-etal-number = "15",
9
+ ctrl-etal-firstonly = "yes",
10
+ }
11
+
@@ -0,0 +1,17 @@
1
+ @article{Garnier2007,
2
+ abstract = {The roots of swarm intelligence are deeply embedded in the biological study of self-organized behaviors in social insects. From the routing of traffic in telecommunication networks to the design of control algorithms for groups of autonomous robots, the collective behaviors of these animals have inspired many of the foundational works in this emerging research field. For the first issue of this journal dedicated to swarm intelligence, we review the main biological principles that underlie the organization of insects’ colonies. We begin with some reminders about the decentralized nature of such systems and we describe the un- derlying mechanisms of complex collective behaviors of social insects, from the concept of stigmergy to the theory of self-organization in biological systems.We emphasize in partic- ular the role of interactions and the importance of bifurcations that appear in the collective output of the colony when some of the system’s parameters change. We then propose to categorize the collective behaviors displayed by insect colonies according to four functions that emerge at the level of the colony and that organize its global behavior. Finally, we ad- dress the role of modulations of individual behaviors by disturbances (either environmental or internal to the colony) in the overall flexibility of insect colonies. We conclude that fu- ture studies about self-organized biological behaviors should investigate such modulations to better understand how insect colonies adapt to uncertain worlds.},
3
+ author = {Garnier, Simon and Gautrais, Jacques and Theraulaz, Guy},
4
+ doi = {10.1007/s11721-007-0004-y},
5
+ file = {:Users/simongarnier/Work/bibliography/Mendeley/Swarm Intelligence/2007/Garnier, Gautrais, Theraulaz - 2007.pdf:pdf},
6
+ issn = {1935-3812},
7
+ journal = {Swarm Intelligence},
8
+ keywords = {self organization collective,self-organization collective,social insects,stigmergy,swarm intelligence},
9
+ mendeley-tags = {swarm intelligence},
10
+ month = jul,
11
+ number = {1},
12
+ pages = {3--31},
13
+ title = {{The biological principles of swarm intelligence}},
14
+ url = {http://www.springerlink.com/index/10.1007/s11721-007-0004-y},
15
+ volume = {1},
16
+ year = {2007}
17
+ }
@@ -0,0 +1,1414 @@
1
+ %% AEA.cls: American Economic Association Article Document Class
2
+ %% ===========================================================================
3
+ \def\lastrev{2011/07/24}
4
+ %% Author:
5
+ %% Dr. Melissa Rice, Ph.D.
6
+ %% Full Moon Technical Solutions, LLC
7
+ %% 14202 60th Ave NW
8
+ %% Stanwood, WA 98292-4808, USA
9
+ %% melissa@fmtek.net
10
+ %% voice: +1 (360) 654-0709 Pacific Time Zone (GMT-7 or -8)
11
+ %% cell: +1 (425) 923-7713
12
+ %%
13
+ %% Copyright 2007-2011 Melissa Rice, Full Moon Technical Solutions, LLC (dba FMTek, LLC)
14
+ %%
15
+
16
+ % ==============================================================================
17
+ % Class ID and Options
18
+ % ==============================================================================
19
+
20
+ \NeedsTeXFormat{LaTeX2e}[1995/12/01]
21
+ \ProvidesClass{AEA}[\lastrev \space American Economic Association Article Classes]
22
+ \RequirePackage{multicol}
23
+ \RequirePackage{setspace}
24
+ \RequirePackage[leqno]{amsmath}
25
+
26
+ % default settings
27
+ \@twosidefalse
28
+ \@twocolumnfalse
29
+ \newif\if@restonecol
30
+ \newif\if@PP \@PPfalse
31
+ \newif\if@JEL \@JELfalse
32
+ \newif\if@JEP \@JEPfalse
33
+ \newif\if@AEJ \@AEJfalse
34
+ \newif\if@draftmode \@draftmodefalse
35
+ \newif\if@reviewmode \@reviewmodefalse
36
+ \def\droparg#1{}
37
+
38
+
39
+ % Journal Options
40
+ \def\@issueName{No Journal Selected}
41
+
42
+ \DeclareOption{AER}{
43
+ % AER is the default if no journal is specified
44
+ \def\@issueName{THE AMERICAN ECONOMIC REVIEW}
45
+ \@twosidetrue
46
+ \@twocolumnfalse
47
+ }
48
+
49
+ \DeclareOption{PP}{
50
+ \def\@issueName{PAPERS AND PROCEEDINGS}
51
+ \@twosidetrue
52
+ \@twocolumntrue
53
+ \@PPtrue
54
+ }
55
+
56
+ \DeclareOption{JEL}{
57
+ \def\@issueName{JOURNAL OF ECONOMIC LITERATURE}
58
+ \@twosidetrue
59
+ \@twocolumntrue
60
+ \@JELtrue
61
+ }
62
+
63
+ \DeclareOption{JEP}{
64
+ \def\@issueName{JOURNAL OF ECONOMIC PERSPECTIVES}
65
+ \@twosidetrue
66
+ \@twocolumnfalse
67
+ \@JEPtrue
68
+ }
69
+
70
+ \DeclareOption{AEJ}{
71
+ \def\@issueName{AMERICAN ECONOMIC JOURNAL}
72
+ \@twosidetrue
73
+ \@twocolumnfalse
74
+ \@AEJtrue
75
+ }
76
+
77
+ % double spacing and other options
78
+ \def\@spacingStretch{1}
79
+ \def\spacingStretch#1{\gdef\@spacingStretch{#1}}
80
+ \def\@draftSpacing{1}
81
+ \def\draftSpacing#1{\gdef\@draftSpacing{#1}}
82
+ \def\setDocumentSpacing{\let\@currsize\normalsize
83
+ \if@draftmode\spacingStretch{\@draftSpacing}\fi
84
+ \setstretch{\@spacingStretch}
85
+ }
86
+ \AtBeginDocument{\setDocumentSpacing
87
+ \if@draftmode\overfullrule=3pt\else\overfullrule=0pt\fi
88
+ % As of July 2011 the authors are no longer concealed in the review copy
89
+ % \if@reviewmode
90
+ % \def\author#1{\gdef\@author{Author Undisclosed}}
91
+ % \fi
92
+ \@ifundefined{harvardand}{}{\renewcommand{\harvardand}{and}}
93
+ }
94
+
95
+ % Draft options
96
+ \DeclareOption{draftmode}{
97
+ \def\mode{draft}
98
+ \@draftmodetrue
99
+ }
100
+ \DeclareOption{reviewmode}{
101
+ \def\mode{review}
102
+ \@twocolumnfalse
103
+ \spacingStretch{1.5}
104
+ \@reviewmodetrue
105
+ }
106
+ \DeclareOption{finalmode}{
107
+ \def\mode{final}
108
+ \spacingStretch{1}
109
+ }
110
+
111
+ % Default Options
112
+ \ExecuteOptions{AER,finalmode}
113
+ \ProcessOptions
114
+
115
+ \typeout{Journal Selected: \@issueName}
116
+ \typeout{Mode Selected: \mode}
117
+
118
+ \long\def\acknowledgement#1\end{\endgroup\xacknowledgement{#1}\droparg}
119
+ \long\def\xacknowledgement#1{\if@reviewmode\else\if@JEP\par\noindent\rule{4pt}{4pt}\
120
+ #1\par\vskip\baselineskip\else\par \textbf{Please put acknowledgements in the author footnote in this style.}\par\fi\fi}
121
+
122
+ % ==============================================================================
123
+ % Fonts
124
+ % ==============================================================================
125
+ \DeclareFontFamily{T1}{cmr}{}
126
+ \DeclareFontShape{T1}{cmr}{m}{n}{%
127
+ <5><6><7><8><9>gen*dcr%
128
+ <10><10.7><11>dcr10%
129
+ <12><14><15><16>dcr12%
130
+ <20>dcr17}{}
131
+ \DeclareFontShape{T1}{cmr}{m}{sl}{%
132
+ <5><6><7><8>dcsl8%
133
+ <9>dcsl9%
134
+ <10><10.7><11>dcsl10%
135
+ <12><144><15><16>dcsl12%
136
+ <20>dcsl17%
137
+ }{}
138
+ \DeclareFontShape{T1}{cmr}{m}{it}{%
139
+ <5><6>dcti7%
140
+ <7><8><9>gen*dcti%
141
+ <10><10.7><11>dcti10%
142
+ <12><14><15><16>dcti12%
143
+ <20>dcti17%
144
+ }{}
145
+ \DeclareFontShape{T1}{cmr}{m}{sc}{%
146
+ <5><6><7><8><9><10><10.7><11>dccsc10%
147
+ <12><14><15><16>dccsc12%
148
+ <20>dccsc17%
149
+ }{}
150
+ \DeclareFontShape{T1}{cmr}{m}{ui}{%
151
+ <5><6>dcu7%
152
+ <7><8><9>gen*dcu%
153
+ <10><10.7><11>dcu10%
154
+ <12><14><15><16>dcu12%
155
+ <20>dcu17%
156
+ }{}
157
+ \DeclareFontShape{T1}{cmr}{b}{n}{%
158
+ <5><6><7><8><9>gen*dcb%
159
+ <10><10.7><11>dcb10%
160
+ <12><14><15><16>dcb12%
161
+ <20>dcb17%
162
+ }{}
163
+ \DeclareFontFamily{T1}{cmss}{}
164
+ \DeclareFontShape{T1}{cmss}{m}{n}{%
165
+ <5><6><7><8>dcss8%
166
+ <9>dcss9%
167
+ <10><10.7><11>dcss10%
168
+ <12><14><15><16>dcss12%
169
+ <20>dcss17%
170
+ }{}
171
+ \DeclareFontShape{T1}{cmss}{m}{it}%
172
+ {<->sub*cmss/m/sl}{}
173
+ \DeclareFontShape{T1}{cmss}{m}{sl}{%
174
+ <5><6><7><8>dcssi8%
175
+ <9>dcssi9%
176
+ <10><10.7><11>dcssi10%
177
+ <12><14><15><16>dcssi12%
178
+ <20>dcssi17%
179
+ }{}
180
+ \DeclareFontShape{T1}{cmss}{bx}{n}{%
181
+ <5><6><7><8><9><10><10.7><11><12><14><15><16><20>dcssbx10%
182
+ }{}
183
+
184
+
185
+ \newcommand\FivePtType{\@setfontsize\FivePtType\@vpt\@vipt}
186
+ \newcommand\SixPtType{\@setfontsize\SixPtType\@vipt\@viipt}
187
+ \newcommand\EightPtClose{\@setfontsize\EightPtClose\@viiipt{9}}
188
+ \newcommand\EightPtType{\@setfontsize\EightPtType\@viiipt{10}}
189
+ \newcommand\NinePtClose{\@setfontsize\NinePtClose\@ixpt{10}}
190
+ \newcommand\NinePtType{\@setfontsize\NinePtType\@ixpt{11}}
191
+ \newcommand\TenPtClose{\@setfontsize\TenPtClose\@xpt\@xipt}
192
+ \newcommand\TenPtType{\@setfontsize\TenPtType\@xpt\@xiipt}
193
+ \newcommand\TenPtJEL{\@setfontsize\TenPtJEL{10.5}{12}}
194
+ \newcommand\TenPtPlusType{\@setfontsize\TenPtPlusType{10.7}{12.5}}
195
+ \newcommand\TenPtLoose{\@setfontsize\TenPtLooseType\@xpt{13}}
196
+ \newcommand\ElevenPtClose{\@setfontsize\ElevenPtClose\@xipt{12}}
197
+ \newcommand\ElevenPtType{\@setfontsize\ElevenPtType\@xipt{13}}
198
+ \newcommand\ElevenPtLoose{\@setfontsize\ElevenPtLoose\@xipt{14}}
199
+ \newcommand\TwelvePtClose{\@setfontsize\TwelvePtClose\@xiipt{13}}
200
+ \newcommand\TwelvePtType{\@setfontsize\TwelvePtType\@xiipt{14.4}}
201
+ \newcommand\FourteenPtType{\@setfontsize\FourteenPtType{14}{16.8}}
202
+ \newcommand\FourteenPtLoose{\@setfontsize\FourteenPtLoose{14}{18}}
203
+ \newcommand\FifteenPtType{\@setfontsize\FifteenPtType{15}{18}}
204
+ \newcommand\SixteenPtType{\@setfontsize\SixteenPtType{16}{19.2}}
205
+ \newcommand\SixteenPtClose{\@setfontsize\SixteenPtCLose{16}{18}}
206
+ \newcommand\TwentyPtType{\@setfontsize\TwentyPtType{20}{24}}
207
+ \newcommand\TwentyFourPtTight{\@setfontsize\TwentyFourPtTight{24}{24}}
208
+
209
+
210
+ \newcommand\small{\EightPtType}
211
+ \newcommand\scriptsize{\NinePtType}
212
+ \newcommand\tiny{\FivePtType}
213
+ \newcommand\large{\TenPtType}
214
+ \newcommand\Large{\ElevenPtType}
215
+ \newcommand\LARGE{\TwelvePtType}
216
+ \newcommand\huge{\FourteenPtType}
217
+ \newcommand\Huge{\SixteenPtType}
218
+
219
+ % default footnotesize
220
+ \newcommand\footnotesize{%
221
+ \TenPtClose%
222
+ \abovedisplayskip 8\p@ \@plus2\p@ \@minus3\p@
223
+ \abovedisplayshortskip \z@ \@plus1\p@
224
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
225
+ \def\@listi{\leftmargin\leftmargini
226
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
227
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
228
+ \itemsep \parsep}%
229
+ \belowdisplayskip \abovedisplayskip
230
+ }
231
+
232
+ % AER fonts and default settings
233
+ \if@reviewmode
234
+ \renewcommand\normalsize{%
235
+ \TwelvePtType
236
+ \abovedisplayskip 12\p@ \@plus1\p@ \@minus4\p@
237
+ \abovedisplayshortskip \z@ \@plus2\p@
238
+ \belowdisplayshortskip 6\p@ \@plus2\p@ \@minus2\p@
239
+ \belowdisplayskip \abovedisplayskip
240
+ \let\@listi\@listI}
241
+ \renewcommand\footnotesize{%
242
+ \TenPtClose%
243
+ \abovedisplayskip 8\p@ \@plus2\p@ \@minus3\p@
244
+ \abovedisplayshortskip \z@ \@plus1\p@
245
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
246
+ \def\@listi{\leftmargin\leftmargini
247
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
248
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
249
+ \itemsep \parsep}%
250
+ \belowdisplayskip \abovedisplayskip
251
+ }
252
+ \def\titlesize{\FourteenPtType}
253
+ \def\authorsize{\TwelvePtType}
254
+ \def\captionsize{\TenPtType}
255
+ \def\headsize{\TenPtType}
256
+ \def\sectionsize{\TwelvePtType}
257
+ \def\subsectionsize{\sectionsize}
258
+ \def\abstractbodysize{\TwelvePtType}
259
+ \def\notesize{\TenPtType}
260
+ \else
261
+ \renewcommand\normalsize{%
262
+ \ElevenPtType
263
+ \abovedisplayskip 11\p@ \@plus1\p@ \@minus4\p@
264
+ \abovedisplayshortskip \z@ \@plus2\p@
265
+ \belowdisplayshortskip 5\p@ \@plus2\p@ \@minus2\p@
266
+ \belowdisplayskip \abovedisplayskip
267
+ \let\@listi\@listI}
268
+ \renewcommand\footnotesize{%
269
+ \EightPtClose%
270
+ \abovedisplayskip 7\p@ \@plus2\p@ \@minus3\p@
271
+ \abovedisplayshortskip \z@ \@plus1\p@
272
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
273
+ \def\@listi{\leftmargin\leftmargini
274
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
275
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
276
+ \itemsep \parsep}%
277
+ \belowdisplayskip \abovedisplayskip
278
+ }
279
+ \def\titlesize{\FourteenPtLoose}
280
+ \def\authorsize{\ElevenPtType}
281
+ \def\captionsize{\EightPtClose}
282
+ \def\headsize{\EightPtType}
283
+ \def\sectionsize{\TenPtLoose}
284
+ \def\subsectionsize{\ElevenPtType}
285
+ \def\abstractbodysize{\ElevenPtClose}
286
+ \def\notesize{\EightPtClose}
287
+ \fi
288
+
289
+ \if@PP
290
+ \renewcommand\normalsize{%
291
+ \TenPtPlusType
292
+ \abovedisplayskip 11\p@ \@plus1\p@ \@minus4\p@
293
+ \abovedisplayshortskip \z@ \@plus2\p@
294
+ \belowdisplayshortskip 5\p@ \@plus2\p@ \@minus2\p@
295
+ \belowdisplayskip \abovedisplayskip
296
+ \let\@listi\@listI}
297
+ \normalsize
298
+ \renewcommand\footnotesize{%
299
+ \EightPtType%
300
+ \abovedisplayskip 7\p@ \@plus2\p@ \@minus3\p@
301
+ \abovedisplayshortskip \z@ \@plus1\p@
302
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
303
+ \def\@listi{\leftmargin\leftmargini
304
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
305
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
306
+ \itemsep \parsep}%
307
+ \belowdisplayskip \abovedisplayskip
308
+ }
309
+ \renewcommand\small{\EightPtType}
310
+ \renewcommand\scriptsize{\NinePtType}
311
+ \renewcommand\tiny{\FivePtType}
312
+ \renewcommand\large{\TenPtType}
313
+ \renewcommand\Large{\ElevenPtType}
314
+ \renewcommand\LARGE{\TwelvePtType}
315
+ \renewcommand\huge{\FourteenPtType}
316
+ \renewcommand\Huge{\SixteenPtType}
317
+ \def\titlesize{\FifteenPtType}
318
+ \def\authorsize{\TenPtType}
319
+ \def\headsize{\EightPtType}
320
+ \def\sectionsize{\TenPtType}
321
+ \def\abstractbodysize{\TenPtClose}
322
+ \def\notesize{\EightPtClose}
323
+ \fi
324
+
325
+ \if@JEL
326
+ \renewcommand\normalsize{%
327
+ \TenPtJEL
328
+ \abovedisplayskip 12\p@ \@plus1\p@ \@minus4\p@
329
+ \abovedisplayshortskip \z@ \@plus2\p@
330
+ \belowdisplayshortskip 5\p@ \@plus2\p@ \@minus2\p@
331
+ \belowdisplayskip \abovedisplayskip
332
+ \let\@listi\@listI}
333
+ \normalsize
334
+ \renewcommand\footnotesize{%
335
+ \EightPtClose%
336
+ \abovedisplayskip 7\p@ \@plus2\p@ \@minus3\p@
337
+ \abovedisplayshortskip \z@ \@plus1\p@
338
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
339
+ \def\@listi{\leftmargin\leftmargini
340
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
341
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
342
+ \itemsep \parsep}%
343
+ \belowdisplayskip \abovedisplayskip
344
+ }
345
+ \renewcommand\small{\EightPtType}
346
+ \renewcommand\scriptsize{\NinePtType}
347
+ \renewcommand\tiny{\FivePtType}
348
+ \renewcommand\large{\TenPtType}
349
+ \renewcommand\Large{\ElevenPtType}
350
+ \renewcommand\LARGE{\TwelvePtType}
351
+ \renewcommand\huge{\FourteenPtType}
352
+ \renewcommand\Huge{\SixteenPtType}
353
+ \def\titlesize{\TwentyFourPtTight}
354
+ \def\authorsize{\ElevenPtLoose}
355
+ \def\headsize{\EightPtType}
356
+ \def\captionsize{\NinePtClose}
357
+ \def\sectionsize{\TenPtJEL}
358
+ \def\subsectionsize{\TenPtJEL}
359
+ \def\abstractbodysize{\TenPtJEL}
360
+ \def\notesize{\EightPtClose} % no table notes in this style, officially
361
+ \fi
362
+
363
+ \if@JEP
364
+ \renewcommand\normalsize{%
365
+ \TenPtLoose
366
+ \abovedisplayskip 13\p@ \@plus1\p@ \@minus4\p@
367
+ \abovedisplayshortskip \z@ \@plus2\p@
368
+ \belowdisplayshortskip 5\p@ \@plus2\p@ \@minus2\p@
369
+ \belowdisplayskip \abovedisplayskip
370
+ \let\@listi\@listI}
371
+ \normalsize
372
+ \renewcommand\footnotesize{%
373
+ \EightPtType%
374
+ \abovedisplayskip 7\p@ \@plus2\p@ \@minus3\p@
375
+ \abovedisplayshortskip \z@ \@plus1\p@
376
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
377
+ \def\@listi{\leftmargin\leftmargini
378
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
379
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
380
+ \itemsep \parsep}%
381
+ \belowdisplayskip \abovedisplayskip
382
+ }
383
+ \renewcommand\small{\EightPtType}
384
+ \renewcommand\scriptsize{\NinePtType}
385
+ \renewcommand\tiny{\FivePtType}
386
+ \renewcommand\large{\TenPtType}
387
+ \renewcommand\Large{\ElevenPtType}
388
+ \renewcommand\LARGE{\TwelvePtType}
389
+ \renewcommand\huge{\FourteenPtType}
390
+ \renewcommand\Huge{\SixteenPtType}
391
+ \def\titlesize{\TwentyPtType}
392
+ \def\authorsize{\SixteenPtClose}
393
+ \def\headsize{\EightPtType}
394
+ \def\captionsize{\TenPtLoose}
395
+ \def\sectionsize{\TwelvePtClose}
396
+ \def\subsectionsize{\TenPtLoose}
397
+ \def\abstractbodysize{\TenPtClose} % no abstract for this journal
398
+ \def\notesize{\EightPtType}
399
+ \fi
400
+
401
+ \if@AEJ
402
+ \renewcommand\normalsize{%
403
+ \ElevenPtType
404
+ \abovedisplayskip 13\p@ \@plus1\p@ \@minus4\p@
405
+ \abovedisplayshortskip \z@ \@plus2\p@
406
+ \belowdisplayshortskip 5\p@ \@plus2\p@ \@minus2\p@
407
+ \belowdisplayskip \abovedisplayskip
408
+ \let\@listi\@listI}
409
+ \normalsize
410
+ \renewcommand\footnotesize{%
411
+ \EightPtClose%
412
+ \abovedisplayskip 7\p@ \@plus2\p@ \@minus3\p@
413
+ \abovedisplayshortskip \z@ \@plus1\p@
414
+ \belowdisplayshortskip 3\p@ \@plus1\p@ \@minus1\p@
415
+ \def\@listi{\leftmargin\leftmargini
416
+ \topsep 3\p@ \@plus1\p@ \@minus1\p@
417
+ \parsep 1\p@ \@plus0.5\p@ \@minus0.5\p@
418
+ \itemsep \parsep}%
419
+ \belowdisplayskip \abovedisplayskip
420
+ }
421
+ \renewcommand\small{\EightPtType}
422
+ \renewcommand\scriptsize{\NinePtType}
423
+ \renewcommand\tiny{\FivePtType}
424
+ \renewcommand\large{\TenPtType}
425
+ \renewcommand\Large{\ElevenPtType}
426
+ \renewcommand\LARGE{\TwelvePtType}
427
+ \renewcommand\huge{\FourteenPtType}
428
+ \renewcommand\Huge{\SixteenPtType}
429
+ \def\titlesize{\FourteenPtLoose}
430
+ \def\authorsize{\ElevenPtType}
431
+ \def\headsize{\EightPtType}
432
+ \def\captionsize{\EightPtClose}
433
+ \def\sectionsize{\TenPtLoose}
434
+ \def\subsectionsize{\ElevenPtType}
435
+ \def\abstractbodysize{\ElevenPtClose}
436
+ \def\notesize{\EightPtClose}
437
+ \fi
438
+
439
+ \normalsize
440
+
441
+ % obsolete markup
442
+ \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
443
+ \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
444
+ \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
445
+ \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
446
+ \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
447
+ \DeclareOldFontCommand{\sl}{\normalfont\itshape}{\mathit}
448
+ \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
449
+ \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
450
+ \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
451
+
452
+ % ==============================================================================
453
+ % Layout
454
+ % ==============================================================================
455
+
456
+ % paper size
457
+ \setlength\paperheight{11in}
458
+ \setlength\paperwidth{8.5in}
459
+
460
+ % AER is default
461
+ % margins
462
+ \setlength\textwidth{135.5mm}
463
+ \setlength\textheight{200mm}
464
+ \setlength\topmargin{-10pt}
465
+ \setlength\oddsidemargin{14mm}
466
+ \setlength\evensidemargin{\oddsidemargin}
467
+ \setlength\headheight{24pt}
468
+ \setlength\headsep {14pt}
469
+ \setlength\topskip {11.74pt}
470
+ \setlength\maxdepth{.5\topskip}
471
+ \setlength\footskip{15pt}
472
+ % two column settings
473
+ \setlength\columnsep{\z@}
474
+ \setlength\columnseprule{\z@}
475
+ % line and paragraph stuff
476
+ \setlength\parskip{0\p@ \@plus1\p@}
477
+ \setlength\parindent{10pt}
478
+ \setlength\lineskip{1\p@}
479
+ \setlength\normallineskip{1\p@}
480
+ \renewcommand\baselinestretch{}
481
+ % skips
482
+ \def\abovetitleskip{-26pt}
483
+
484
+
485
+ \if@PP
486
+ % margins
487
+ \setlength\textwidth{151mm}
488
+ \setlength\textheight{229mm}
489
+ \setlength\topmargin{-14mm}
490
+ \setlength\oddsidemargin{7mm}
491
+ \setlength\evensidemargin{\oddsidemargin}
492
+ \setlength\headheight{24pt}
493
+ \setlength\headsep {14pt}
494
+ \setlength\topskip {11.74pt}
495
+ \setlength\maxdepth{.5\topskip}
496
+ \setlength\footskip{15pt}
497
+ % two column settings
498
+ \setlength\columnsep{6.5mm}
499
+ \setlength\columnseprule{\z@}
500
+ \fi
501
+
502
+ \if@JEL
503
+ % margins
504
+ \setlength\textwidth{141.8mm}
505
+ \setlength\textheight{200mm}
506
+ \setlength\topmargin{-10pt}
507
+ \setlength\oddsidemargin{12mm}
508
+ \setlength\evensidemargin{\oddsidemargin}
509
+ \setlength\headheight{24pt}
510
+ \setlength\headsep {14pt}
511
+ \setlength\topskip {11.74pt}
512
+ \setlength\maxdepth{.5\topskip}
513
+ \setlength\footskip{15pt}
514
+ % two column settings
515
+ \setlength\columnsep{18\p@}
516
+ \setlength\columnseprule{\z@}
517
+ \fi
518
+
519
+ \if@JEP
520
+ % margins
521
+ \setlength\textwidth{127mm}
522
+ \setlength\textheight{202mm}
523
+ \setlength\topmargin{-10pt}
524
+ \setlength\oddsidemargin{18.6mm}
525
+ \setlength\evensidemargin{\oddsidemargin}
526
+ \setlength\headheight{24pt}
527
+ \setlength\headsep {14pt}
528
+ \setlength\topskip {11.74pt}
529
+ \setlength\maxdepth{.5\topskip}
530
+ \setlength\footskip{15pt}
531
+ \setlength\parindent{2em}
532
+ \fi
533
+
534
+ % skips
535
+ \def\abovetitleskip{-26pt}
536
+
537
+ % penalties
538
+ \@lowpenalty 51
539
+ \@medpenalty 151
540
+ \@highpenalty 301
541
+
542
+ \if@draftmode
543
+ \def\@issueName{}
544
+ \fi
545
+
546
+ % head and foot
547
+ \def\ps@titlepage{
548
+ \leftskip=6pt\rightskip=\leftskip
549
+ \def\@oddfoot{\hfil{\small\textit{\thepage}}\hfil}
550
+ \let\@evenfoot\@oddfoot
551
+ \let\@oddhead\@empty
552
+ \let\@evenhead\@empty
553
+ }
554
+ \def\ps@headings{
555
+ \leftskip=0pt\rightskip=0pt
556
+ \let\@oddfoot\@empty
557
+ \let\@evenfoot\@empty
558
+ \def\@oddhead{{\small\textit{\MakeUppercase{VOL. \@pubVolume\ \ NO. \@pubIssue\hfil\@shortTitle\hfil\thepage}}}}
559
+ \def\@evenhead{{\small\textit{\MakeUppercase{\thepage\hfil\@issueName\hfil\@pubMonth\ \@pubYear}}}}
560
+ }
561
+
562
+ \if@JEP
563
+ \def\ps@headings{
564
+ \leftskip=0pt\rightskip=0pt
565
+ \let\@oddfoot\@empty
566
+ \let\@evenfoot\@empty
567
+ \def\@oddhead{{\small\textit{\MakeUppercase{\hfil\@shortTitle\hfil\thepage}}}}
568
+ \def\@evenhead{{\small\textit{\MakeUppercase{\thepage\hfil\@issueName\hfil}}}}
569
+ }
570
+ \fi
571
+
572
+ \pagestyle{headings}
573
+ \thispagestyle{titlepage}
574
+ \pagenumbering{arabic}
575
+
576
+ % justification
577
+ \if@twoside
578
+ \flushbottom
579
+ \else
580
+ \raggedbottom
581
+ \fi
582
+ \if@twocolumn
583
+ \twocolumn
584
+ \sloppy
585
+ \flushbottom
586
+ \else
587
+ \onecolumn
588
+ \fi
589
+
590
+ % margin notes ??? do we want these at all?
591
+ \setlength\marginparsep {0\p@}
592
+ \setlength\marginparpush{0\p@}
593
+ \setlength\marginparwidth {0\p@}
594
+ \if@twoside
595
+ \@mparswitchfalse
596
+ \else
597
+ \@mparswitchtrue % margin notes to the outside
598
+ \fi
599
+
600
+
601
+
602
+ % ==============================================================================
603
+ % PDF Document Info Section
604
+ % ==============================================================================
605
+
606
+ % Note: file location is produced in review mode anyway, despite code below.
607
+
608
+ \def\extendedVersion{TeX: AEA.cls \lastrev \ (\mode mode) \ \@issueName}
609
+
610
+ \@ifundefined{pdfinfo}{}{\pdfinfo{ /Creator (\extendedVersion)}}
611
+
612
+ % As of July 2011 the authors are no longer concealed in the review copy
613
+ %\@ifundefined{pdfinfo}{}{
614
+ %\if@reviewmode
615
+ %\pdfinfo
616
+ %{ /Title ()
617
+ %/Location ()
618
+ %/Creator (\extendedVersion)}
619
+ %\else
620
+ %\pdfinfo
621
+ %{ /Creator (\extendedVersion)}
622
+ %\fi}
623
+
624
+ % ==============================================================================
625
+ % Frontmatter
626
+ % ==============================================================================
627
+
628
+ % document variables
629
+ \def\issueName#1{\gdef\@issueName{#1}}
630
+
631
+ % blank
632
+ \long\gdef\@blank{}
633
+
634
+ % JEL Classifications
635
+ \long\gdef\@JEL{}
636
+ \long\def\JEL#1{\long\gdef\@JEL{#1}}
637
+
638
+ % Keywords
639
+ \long\gdef\@Keywords{}
640
+ \long\def\Keywords#1{\long\gdef\@Keywords{#1}}
641
+
642
+ % Publication Data
643
+ \long\gdef\@pubYear{Year}
644
+ \long\def\pubYear#1{\long\gdef\@pubYear{#1}}
645
+
646
+ \long\gdef\@pubMonth{Month}
647
+ \long\def\pubMonth#1{\long\gdef\@pubMonth{#1}}
648
+
649
+ \long\gdef\@pubVolume{Volume}
650
+ \long\def\pubVolume#1{\long\gdef\@pubVolume{#1}}
651
+
652
+ \long\gdef\@pubIssue{Issue}
653
+ \long\def\pubIssue#1{\long\gdef\@pubIssue{#1}}
654
+
655
+ % draft date (revision date in draft mode)
656
+ \def\draftDate{\if@draftmode\vspace{12pt}\begin{center}Draft: \@date\end{center}\par
657
+ \else\relax\fi}
658
+
659
+ % abstract
660
+ \def\droparg#1{}
661
+ \long\def\abstract#1\end{\endgroup\xabstract{#1}\droparg}
662
+ \long\gdef\@abstract{Your abstract here, please.}
663
+ \long\def\xabstract#1{\long\gdef\@abstract{#1}}
664
+
665
+ \def\@shortTitle{\@title}
666
+ \def\shortTitle#1{\gdef\@shortTitle{#1}}
667
+
668
+ % frontmatter
669
+
670
+ \newcommand\maketitle{
671
+ {\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
672
+ \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
673
+ \long\def\@makefntext##1{\parindent 1em\noindent
674
+ \hb@xt@2.0em{%
675
+ \hss\@textsuperscript{\normalfont\@thefnmark\rule{0.5em}{0pt}}}##1}%
676
+ \if@twocolumn
677
+ \ifnum \col@number=\@ne
678
+ \@maketitle
679
+ \else
680
+ \twocolumn[\@maketitle]%
681
+ \fi
682
+ \else
683
+ \newpage
684
+ \global\@topnum\z@ % Prevents figures from going at top of page.
685
+ \@maketitle
686
+ \fi
687
+ \@thanks
688
+ }
689
+ \setcounter{footnote}{0}%
690
+ \renewcommand\thefootnote{\@arabic\c@footnote}%
691
+ }
692
+
693
+ % Frontmatter for AER (default)
694
+ \newlength\abstractIndent
695
+ \newlength\abstractWidth
696
+ \setlength{\abstractIndent}{36pt}
697
+ \setlength{\abstractWidth}{\textwidth}
698
+ \addtolength{\abstractWidth}{-2\abstractIndent}
699
+ \newcommand\@maketitle{%
700
+ \pagestyle{headings}
701
+ \thispagestyle{titlepage}
702
+ \begin{@twocolumnfalse}
703
+ \begin{center}%
704
+ \null\vskip\abovetitleskip
705
+ {\titlesize\sffamily\textbf{\@title} \par}%
706
+ \vskip 16pt%
707
+ {\authorsize\textit{By \ }\textsc{\@author}\par}
708
+ \draftDate
709
+ \vskip 24pt%
710
+ \end{center}%
711
+ \gdef\@JELKey{
712
+ \ifx\@JEL\@blank\else \par JEL: \@JEL\par \fi
713
+ \ifx\@Keywords\@blank\else Keywords: \@Keywords\par \fi}
714
+ % these lines not indented to prevent unwanted space
715
+ \noindent{\abstractbodysize\itshape\hspace{\abstractIndent}
716
+ \parbox{\abstractWidth}{\noindent\@abstract\@JELKey\par}}
717
+ \vskip 24pt%
718
+ \end{@twocolumnfalse}
719
+ \par
720
+ }
721
+
722
+ \if@PP
723
+ \renewcommand\@maketitle{%
724
+ \pagestyle{headings}
725
+ \thispagestyle{titlepage}
726
+ \begin{@twocolumnfalse}
727
+ \begin{center}%
728
+ \null\vskip\abovetitleskip
729
+ {\titlesize\sffamily\textbf{\@title} \par}%
730
+ \vskip 16pt%
731
+ {\authorsize\textit{By \ }\textsc{\@author}\par}
732
+ \draftDate
733
+ \vskip 24pt%
734
+ \end{center}%
735
+ \vskip 24pt%
736
+ \end{@twocolumnfalse}
737
+ \par
738
+ }
739
+ \fi
740
+
741
+ \if@JEL
742
+ \setlength{\abstractIndent}{36pt}
743
+ \setlength{\abstractWidth}{\textwidth}
744
+ \addtolength{\abstractWidth}{-2\abstractIndent}
745
+ \renewcommand\@maketitle{%
746
+ \pagestyle{headings}
747
+ \thispagestyle{titlepage}
748
+ \begin{@twocolumnfalse}
749
+ \begin{center}%
750
+ \null\vskip\abovetitleskip
751
+ {\titlesize\sffamily\textbf{\@title} \par}%
752
+ \vskip 16pt%
753
+ {\authorsize\textsc{\@author}\par}
754
+ \draftDate
755
+ \vskip 24pt%
756
+ \end{center}%
757
+ \gdef\@JELKey{
758
+ \ifx\@JEL\@blank\else \par JEL: \@JEL\par \fi
759
+ \ifx\@Keywords\@blank\else Keywords: \@Keywords\par \fi}
760
+ % these two lines not indented to prevent unwanted space
761
+ \noindent{\abstractbodysize\itshape\hspace{\abstractIndent}
762
+ \parbox{\abstractWidth}{\noindent\@abstract\@JELKey\par}}
763
+ \vskip 24pt%
764
+ \end{@twocolumnfalse}
765
+ \par
766
+ }
767
+ \fi
768
+
769
+ \if@JEP
770
+ \renewcommand\@maketitle{%
771
+ \pagestyle{headings}
772
+ \thispagestyle{titlepage}
773
+ \begin{@twocolumnfalse}
774
+ \null\vskip\abovetitleskip
775
+ {\noindent\titlesize\sffamily\textbf{\@title} \par}%
776
+ \vskip 16pt%
777
+ {\noindent\authorsize \@author\par}
778
+ \draftDate
779
+ \vskip 24pt%
780
+ \end{@twocolumnfalse}
781
+ \par
782
+ }
783
+ \fi
784
+
785
+
786
+
787
+ % ==============================================================================
788
+ % Sectioning
789
+ % ==============================================================================
790
+
791
+ \newcounter{part}
792
+ \newcounter{section}
793
+ \newcounter{subsection}[section]
794
+ \newcounter{subsubsection}[subsection]
795
+ \newcounter{paragraph}[subsubsection]
796
+ \newcounter{subparagraph}[paragraph]
797
+
798
+ % AER section numbering
799
+ \setcounter{secnumdepth}{2}
800
+ \renewcommand\thepart{\@Roman\c@part}
801
+ \renewcommand\thesection{\@Roman\c@section}
802
+ \renewcommand\thesubsection{\@Alph\c@subsection}
803
+ \renewcommand\thesubsubsection{\@arabic\c@subsubsection}
804
+ \renewcommand\theparagraph{\thesubsubsection}
805
+ \renewcommand\thesubparagraph{\thesubsubsection}
806
+ \renewcommand\p@subsection{\thesection.}
807
+ \renewcommand\p@subsubsection{\thesubsection.}
808
+ \renewcommand\p@paragraph{\thesubsubsection.}
809
+ \renewcommand\p@subparagraph{\theparagraph.}
810
+ \def\@seccntformat#1{\csname the#1\endcsname.\quad}
811
+
812
+ \if@PP
813
+ \setcounter{secnumdepth}{2}
814
+ \renewcommand\thepart{\@Roman\c@part}
815
+ \renewcommand\thesection{\@Roman\c@section}
816
+ \renewcommand\thesubsection{\@Alph\c@subsection}
817
+ \renewcommand\thesubsubsection{\@arabic\c@subsubsection}
818
+ \renewcommand\theparagraph{\thesubsubsection}
819
+ \renewcommand\thesubparagraph{\thesubsubsection}
820
+ \def\@seccntformat#1{\csname the#1\endcsname.\quad}
821
+ \fi
822
+
823
+ \if@JEL
824
+ \setcounter{secnumdepth}{2}
825
+ \renewcommand\thepart{\@Roman\c@part}
826
+ \renewcommand\thesection{\@arabic\c@section}
827
+ \renewcommand\thesubsection{\@arabic\c@subsection}
828
+ \renewcommand\thesubsubsection{\@arabic\c@subsubsection}
829
+ \renewcommand\theparagraph{\thesubsubsection}
830
+ \renewcommand\thesubparagraph{\thesubsubsection}
831
+ \def\@seccntformat#1{\csname the#1\endcsname.\quad}
832
+ \fi
833
+
834
+ \if@JEP
835
+ \setcounter{secnumdepth}{-2}
836
+ \renewcommand\thepart{\@Roman\c@part}
837
+ \renewcommand\thesection{\@Roman\c@section}
838
+ \renewcommand\thesubsection{\@Alph\c@subsection}
839
+ \renewcommand\thesubsubsection{\@arabic\c@subsubsection}
840
+ \renewcommand\theparagraph{\thesubsubsection}
841
+ \renewcommand\thesubparagraph{\thesubsubsection}
842
+ \def\@seccntformat#1{\csname the#1\endcsname.\quad}
843
+ \fi
844
+
845
+ \if@AEJ
846
+ \setcounter{secnumdepth}{2}
847
+ \renewcommand\thepart{\@Roman\c@part}
848
+ \renewcommand\thesection{\@Roman\c@section}
849
+ \renewcommand\thesubsection{\@Alph\c@subsection}
850
+ \renewcommand\thesubsubsection{\@arabic\c@subsubsection}
851
+ \renewcommand\theparagraph{\thesubsubsection}
852
+ \renewcommand\thesubparagraph{\thesubsubsection}
853
+ \def\@seccntformat#1{\csname the#1\endcsname.\quad}
854
+ \fi
855
+
856
+
857
+ % AER section skips
858
+ \def\abovesectionskip{11pt \@plus 2pt \@minus 2pt}
859
+ \def\belowsectionskip{11pt \@plus 2pt \@minus 2pt}
860
+ \def\abovesubsectionskip{\abovesectionskip}
861
+ \def\belowsubsectionskip{\belowsectionskip}
862
+ \def\abovesubsubsectionskip{\abovesectionskip}
863
+ \def\belowsubsubsectionskip{\belowsectionskip}
864
+ \def\subsubsectionindent{\z@}
865
+ \def\headingsuffix{}
866
+
867
+ \if@PP
868
+ \def\abovesectionskip{11pt \@plus 2pt \@minus 2pt}
869
+ \def\belowsectionskip{11pt \@plus 2pt \@minus 2pt}
870
+ \def\subsubsectionindent{\z@}
871
+ \fi
872
+
873
+ \if@JEL
874
+ \def\abovesectionskip{6pt \@plus 2pt \@minus 2pt}
875
+ \def\belowsectionskip{6pt \@plus 2pt \@minus 2pt}
876
+ \def\subsubsectionindent{\z@}
877
+ \fi
878
+
879
+ \if@JEP
880
+ \def\abovesectionskip{26pt \@plus 4pt \@minus 4pt}
881
+ \def\belowsectionskip{13pt \@plus 2pt \@minus 2pt}
882
+ \def\abovesubsectionskip{13pt \@plus 2pt \@minus 2pt}
883
+ \def\belowsubsectionskip{0pt \@plus 1pt \@minus 1pt}
884
+ \def\abovesubsubsectionskip{13pt \@plus 2pt \@minus 2pt}
885
+ \def\belowsubsubsectionskip{-0.01pt \@plus -0.1pt \@minus -0.1pt}
886
+ \def\subsubsectionindent{\parindent}
887
+ \fi
888
+
889
+ \if@AEJ
890
+ \def\abovesectionskip{13pt \@plus 2pt \@minus 2pt}
891
+ \def\belowsectionskip{13pt \@plus 2pt \@minus 2pt}
892
+ \def\belowsubsubsectionskip{-0.01pt \@plus -0.1pt \@minus -0.1pt}
893
+ \def\subsubsectionindent{\z@}
894
+ \fi
895
+
896
+
897
+ \newcommand\part{%
898
+ \if@noskipsec \leavevmode \fi
899
+ \par
900
+ \addvspace{4ex}%
901
+ \@afterindentfalse
902
+ \secdef\@part\@spart}
903
+
904
+ \def\@part[#1]#2{%
905
+ \ifnum \c@secnumdepth >\m@ne
906
+ \refstepcounter{part}%
907
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
908
+ \else
909
+ \addcontentsline{toc}{part}{#1}%
910
+ \fi
911
+ {\parindent \z@ \raggedright
912
+ \interlinepenalty \@M
913
+ \normalfont
914
+ \ifnum \c@secnumdepth >\m@ne
915
+ \Large\bfseries \partname\nobreakspace\thepart
916
+ \par\nobreak
917
+ \fi
918
+ \huge \bfseries #2%
919
+ \markboth{}{}\par}%
920
+ \nobreak
921
+ \vskip 3ex
922
+ \@afterheading}
923
+ \def\@spart#1{%
924
+ {\parindent \z@ \raggedright
925
+ \interlinepenalty \@M
926
+ \normalfont
927
+ \huge \bfseries #1\par}%
928
+ \nobreak
929
+ \vskip 3ex
930
+ \@afterheading}
931
+
932
+ \def\@sect#1#2#3#4#5#6[#7]#8{%
933
+ \ifnum #2>\c@secnumdepth
934
+ \let\@svsec\@empty
935
+ \else
936
+ \refstepcounter{#1}%
937
+ \protected@edef\@svsec{\@seccntformat{#1}\relax}%
938
+ \fi
939
+ \@tempskipa #5\relax
940
+ \ifdim \@tempskipa>\z@
941
+ \begingroup
942
+ #6{%
943
+ \@hangfrom{\hskip #3\relax\@svsec}%
944
+ \interlinepenalty \@M #8\@@par}%
945
+ \endgroup
946
+ \csname #1mark\endcsname{#7}%
947
+ \addcontentsline{toc}{#1}{%
948
+ \ifnum #2>\c@secnumdepth \else
949
+ \protect\numberline{\csname the#1\endcsname}%
950
+ \fi
951
+ #7}%
952
+ \else
953
+ \def\@svsechd{%
954
+ #6{\hskip #3\relax
955
+ \@svsec #8\headingsuffix}%
956
+ \csname #1mark\endcsname{#7}%
957
+ \addcontentsline{toc}{#1}{%
958
+ \ifnum #2>\c@secnumdepth \else
959
+ \protect\numberline{\csname the#1\endcsname}%
960
+ \fi
961
+ #7}}%
962
+ \fi
963
+ \@xsect{#5}%
964
+ }
965
+
966
+
967
+ \newcommand\section{%
968
+ \@startsection{section}{1}{\z@}%
969
+ {\abovesectionskip}%
970
+ {\belowsectionskip}%
971
+ {\bfseries\sectionsize\center}}
972
+
973
+ \newcommand\subsection{%
974
+ \@startsection{subsection}{2}{\z@}%
975
+ {\abovesubsectionskip}%
976
+ {\belowsubsectionskip}%
977
+ {\itshape\sectionsize\center}}
978
+
979
+ \newcommand\subsubsection{%
980
+ \def\headingsuffix{. ---\ }
981
+ \@startsection{subsubsection}{3}{\subsubsectionindent}%
982
+ {\abovesubsubsectionskip}%
983
+ {\belowsubsubsectionskip}%
984
+ {\scshape\sectionsize\center}}
985
+
986
+
987
+ % paragraph and subparagraph are not used - they are included for compatibility with hyperref.
988
+ %\newcommand\paragraph{%
989
+ %\@startsection{paragraph}{4}{\z@}%
990
+ %{\abovesectionskip}%
991
+ %{\belowsectionskip}%
992
+ %{\sectionsize\itshape\center}}
993
+
994
+ %\newcommand\subparagraph{%
995
+ %\@startsection{subparagraph}{4}{\z@}%
996
+ %{\abovesectionskip}%
997
+ %{\belowsectionskip}%
998
+ %{\sectionsize\upshape\center}}
999
+
1000
+ \newcommand\paragraph{\subsubsection}
1001
+ \newcommand\subparagraph{\subsubsection}
1002
+
1003
+ \def\appendixsectionstyle{\scshape\sectionsize\center}
1004
+ \def\appendixsubsectionstyle{\itshape\sectionsize\center}
1005
+ \def\captionstyle{\scshape}
1006
+
1007
+ \if@JEL
1008
+ \renewcommand\section{%
1009
+ \@startsection{section}{1}{\z@}%
1010
+ {\abovesectionskip}%
1011
+ {\belowsectionskip}%
1012
+ {\itshape\sectionsize\center}}
1013
+ \renewcommand\subsection{%
1014
+ \@startsection{subsection}{2}{\z@}%
1015
+ {\abovesectionskip}%
1016
+ {\belowsectionskip}%
1017
+ {\itshape}}
1018
+ \def\captionstyle{\scshape}
1019
+ \fi
1020
+
1021
+ \if@JEP
1022
+ \renewcommand\section{%
1023
+ \@startsection{section}{1}{\z@}%
1024
+ {\abovesectionskip}%
1025
+ {\belowsectionskip}%
1026
+ {\bfseries\sectionsize}}
1027
+ \renewcommand\subsection{%
1028
+ \@startsection{subsection}{2}{\z@}%
1029
+ {\abovesectionskip}%
1030
+ {\belowsectionskip}%
1031
+ {\bfseries\subsectionsize}}
1032
+ \def\captionstyle{\bfseries\subsectionsize}
1033
+ \fi
1034
+
1035
+ % ==============================================================================
1036
+ % Package Compatibility
1037
+ % ==============================================================================
1038
+
1039
+ \newcommand\tableofcontents{}
1040
+ % for compatibility with packages that overload this command
1041
+
1042
+ % ==============================================================================
1043
+ % Environments
1044
+ % ==============================================================================
1045
+
1046
+ \newenvironment{verse}
1047
+ {\let\\\@centercr
1048
+ \list{}{\itemsep \z@
1049
+ \itemindent -1.5em%
1050
+ \listparindent\itemindent
1051
+ \rightmargin \leftmargin
1052
+ \advance\leftmargin 1.5em}%
1053
+ \item\relax}
1054
+ {\endlist}
1055
+
1056
+ \newenvironment{quotation}
1057
+ {\list{}{\listparindent 1.5em%
1058
+ \itemindent \listparindent
1059
+ \rightmargin \leftmargin
1060
+ \parsep \z@ \@plus\p@}%
1061
+ \item\relax}
1062
+ {\endlist}
1063
+
1064
+ \newenvironment{quote}
1065
+ {\list{}{\rightmargin\leftmargin}%
1066
+ \item\relax}
1067
+ {\endlist}
1068
+
1069
+
1070
+
1071
+ % ==============================================================================
1072
+ % Lists
1073
+ % ==============================================================================
1074
+
1075
+ \setlength\partopsep{2\p@ \@plus1\p@ \@minus 1\p@}
1076
+ \def\@listi{\leftmargin\leftmargini
1077
+ \parsep 4\p@ \@plus2\p@ \@minus\p@
1078
+ \topsep 8\p@ \@plus2\p@ \@minus4\p@
1079
+ \itemsep4\p@ \@plus2\p@ \@minus\p@}
1080
+ \let\@listI\@listi
1081
+ \@listi
1082
+ \def\@listii {\leftmargin\leftmarginii
1083
+ \labelwidth\leftmarginii
1084
+ \advance\labelwidth-\labelsep
1085
+ \topsep 4\p@ \@plus2\p@ \@minus\p@
1086
+ \parsep 2\p@ \@plus\p@ \@minus\p@
1087
+ \itemsep \parsep}
1088
+ \def\@listiii{\leftmargin\leftmarginiii
1089
+ \labelwidth\leftmarginiii
1090
+ \advance\labelwidth-\labelsep
1091
+ \topsep 2\p@ \@plus\p@\@minus\p@
1092
+ \parsep \z@
1093
+ \partopsep \p@ \@plus\z@ \@minus\p@
1094
+ \itemsep \topsep}
1095
+ \def\@listiv {\leftmargin\leftmarginiv
1096
+ \labelwidth\leftmarginiv
1097
+ \advance\labelwidth-\labelsep}
1098
+ \def\@listv {\leftmargin\leftmarginv
1099
+ \labelwidth\leftmarginv
1100
+ \advance\labelwidth-\labelsep}
1101
+ \def\@listvi {\leftmargin\leftmarginvi
1102
+ \labelwidth\leftmarginvi
1103
+ \advance\labelwidth-\labelsep}
1104
+
1105
+ \if@twocolumn
1106
+ \setlength\leftmargini {2em}
1107
+ \else
1108
+ \setlength\leftmargini {2.5em}
1109
+ \fi
1110
+ \leftmargin \leftmargini
1111
+ \setlength\leftmarginii {2.2em}
1112
+ \setlength\leftmarginiii {1.87em}
1113
+ \setlength\leftmarginiv {1.7em}
1114
+ \if@twocolumn
1115
+ \setlength\leftmarginv {.5em}
1116
+ \setlength\leftmarginvi {.5em}
1117
+ \else
1118
+ \setlength\leftmarginv {1em}
1119
+ \setlength\leftmarginvi {1em}
1120
+ \fi
1121
+ \setlength \labelsep {.5em}
1122
+ \setlength \labelwidth{\leftmargini}
1123
+ \addtolength\labelwidth{-\labelsep}
1124
+ \@beginparpenalty -\@lowpenalty
1125
+ \@endparpenalty -\@lowpenalty
1126
+ \@itempenalty -\@lowpenalty
1127
+ \renewcommand\theenumi{\@arabic\c@enumi}
1128
+ \renewcommand\theenumii{\@alph\c@enumii}
1129
+ \renewcommand\theenumiii{\@roman\c@enumiii}
1130
+ \renewcommand\theenumiv{\@Alph\c@enumiv}
1131
+ \newcommand\labelenumi{\theenumi)}
1132
+ \newcommand\labelenumii{\theenumii)}
1133
+ \newcommand\labelenumiii{\theenumiii)}
1134
+ \newcommand\labelenumiv{\theenumiv)}
1135
+ \renewcommand\p@enumii{\theenumi}
1136
+ \renewcommand\p@enumiii{\theenumi(\theenumii)}
1137
+ \renewcommand\p@enumiv{\p@enumiii\theenumiii}
1138
+ \newcommand\labelitemi{\textbullet}
1139
+ \newcommand\labelitemii{\normalfont\bfseries \textendash}
1140
+ \newcommand\labelitemiii{\textasteriskcentered}
1141
+ \newcommand\labelitemiv{\textperiodcentered}
1142
+ \newenvironment{description}
1143
+ {\list{}{\labelwidth\z@ \itemindent-\leftmargin
1144
+ \let\makelabel\descriptionlabel}}
1145
+ {\endlist}
1146
+ \newcommand*\descriptionlabel[1]{\hspace\labelsep
1147
+ \normalfont\bfseries #1}
1148
+
1149
+
1150
+ % ==============================================================================
1151
+ % Equations
1152
+ % ==============================================================================
1153
+
1154
+ \def\@eqnnum{\typeout{Equation: \theequation}\hb@xt@.01\p@{}%
1155
+ \rlap{\normalfont\normalcolor
1156
+ \hskip -\displaywidth(\theequation)}}
1157
+
1158
+ % ==============================================================================
1159
+ % Minipage and Floats
1160
+ % ==============================================================================
1161
+
1162
+
1163
+ \setlength\floatsep{15\p@ \@plus 2\p@ \@minus 3\p@}
1164
+ \setlength\textfloatsep{15\p@ \@plus 2\p@ \@minus 3\p@}
1165
+ \setlength\intextsep{15\p@ \@plus 2\p@ \@minus 3\p@}
1166
+ \setlength\dblfloatsep{15\p@ \@plus 2\p@ \@minus 3\p@}
1167
+ \setlength\dbltextfloatsep{15\p@ \@plus 2\p@ \@minus 3\p@}
1168
+ \setlength\@fptop{0\p@ \@plus 1fil}
1169
+ \setlength\@fpsep{8\p@ \@plus 2fil}
1170
+ \setlength\@fpbot{0\p@ \@plus 1fil}
1171
+ \setlength\@dblfptop{0\p@ \@plus 1fil}
1172
+ \setlength\@dblfpsep{8\p@ \@plus 2fil}
1173
+ \setlength\@dblfpbot{0\p@ \@plus 1fil}
1174
+ \setcounter{topnumber}{2}
1175
+ \renewcommand\topfraction{.7}
1176
+ \setcounter{bottomnumber}{1}
1177
+ \renewcommand\bottomfraction{.3}
1178
+ \setcounter{totalnumber}{3}
1179
+ \renewcommand\textfraction{.2}
1180
+ \renewcommand\floatpagefraction{.5}
1181
+ \setcounter{dbltopnumber}{2}
1182
+ \renewcommand\dbltopfraction{.7}
1183
+ \renewcommand\dblfloatpagefraction{.5}
1184
+
1185
+ \newcommand\figurename{Figure}
1186
+ \newcommand\tablename{Table}
1187
+ \setlength\arraycolsep{5\p@}
1188
+ \setlength\tabcolsep{6\p@}
1189
+ \setlength\arrayrulewidth{.4\p@}
1190
+ \setlength\doublerulesep{2\p@}
1191
+ \setlength\tabbingsep{\labelsep}
1192
+ \skip\@mpfootins = \skip\footins
1193
+ \setlength\fboxsep{3\p@}
1194
+ \setlength\fboxrule{.4\p@}
1195
+ \renewcommand \theequation {\@arabic\c@equation}
1196
+ \newcounter{figure}
1197
+ \renewcommand \thefigure {\@arabic\c@figure}
1198
+ \def\fps@figure{tbp}
1199
+ \def\ftype@figure{1}
1200
+ \def\ext@figure{lof}
1201
+ \def\fnum@figure{\figurename\nobreakspace\thefigure.\nobreakspace}
1202
+ \newenvironment{figure}[1][h]
1203
+ {\@float{figure}[#1]\begin{center}}
1204
+ {\end{center}\end@float}
1205
+ \newenvironment{figure*}[1][h]
1206
+ {\@dblfloat{figure}[#1]\begin{center}}
1207
+ {\end{center}\end@dblfloat}
1208
+ \if@PP % mlr 2010.04.27 P&P authors making figures/tables too small so force to full column
1209
+ \renewenvironment{figure}[1][tp]
1210
+ {\@dblfloat{figure}[#1]\begin{center}}
1211
+ {\end{center}\end@dblfloat}
1212
+ \fi
1213
+ \newcounter{table}
1214
+ \renewcommand\thetable{\@arabic\c@table}
1215
+ \def\fps@table{tbp}
1216
+ \def\ftype@table{2}
1217
+ \def\ext@table{lot}
1218
+ \def\fnum@table{\tablename\nobreakspace\thetable---}
1219
+ \newenvironment{table}[1][h]
1220
+ {\@float{table}[#1]\begin{center}}
1221
+ {\end{center}\end@float}
1222
+ \newenvironment{table*}[1][h]
1223
+ {\@dblfloat{table}[#1]\begin{center}}
1224
+ {\end{center}\end@dblfloat}
1225
+ \if@PP % mlr 2010.04.27 P&P authors making figures/tables too small so force to full column
1226
+ \renewenvironment{table}[1][tp]
1227
+ {\@dblfloat{table}[#1]\begin{center}}
1228
+ {\end{center}\end@dblfloat}
1229
+ \fi
1230
+ \newlength\abovecaptionskip
1231
+ \newlength\belowcaptionskip
1232
+ \setlength\abovecaptionskip{7\p@}
1233
+ \setlength\belowcaptionskip{7\p@}
1234
+ \long\def\@makecaption#1#2{%
1235
+ \vskip\abovecaptionskip
1236
+ \sbox\@tempboxa{\captionstyle\captionsize #1#2}%
1237
+ \ifdim \wd\@tempboxa >\hsize
1238
+ {\captionstyle\captionsize #1#2}\par
1239
+ \else
1240
+ \global \@minipagefalse
1241
+ \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
1242
+ \fi
1243
+ \vskip\belowcaptionskip}
1244
+
1245
+ \newenvironment{widefigure}{\begin{figure*}}{\end{figure*}}
1246
+ \newenvironment{widetable}{\begin{table*}}{\end{table*}}
1247
+
1248
+ \newenvironment{tablenotes}[1][Note]{\begin{minipage}[t]{\linewidth}\notesize{\itshape#1: }}{\end{minipage}}
1249
+ \newenvironment{figurenotes}[1][Note]{\begin{minipage}[t]{\linewidth}\notesize{\itshape#1: }}{\end{minipage}}
1250
+
1251
+ % ==============================================================================
1252
+ % Footnotes
1253
+ % ==============================================================================
1254
+
1255
+ %\def\thanks#1{\footnote{#1}}
1256
+ %\setlength\footnotesep{1\p@ \@plus\p@} % ??? Missing Begin Document Error. Why?
1257
+ \setlength{\skip\footins}{15\p@ \@plus 2\p@ \@minus 2\p@}
1258
+
1259
+ \renewcommand\footnoterule{%
1260
+ \kern-3\p@
1261
+ \hrule\@width\z@
1262
+ \kern2.6\p@}
1263
+ \newcommand\@makefntext[1]{%
1264
+ \parindent 1em%
1265
+ \noindent
1266
+ \hb@xt@2.0em{\hss\@makefnmark}#1\hskip 1em}
1267
+
1268
+
1269
+
1270
+ % ==============================================================================
1271
+ % Backmatter
1272
+ % ==============================================================================
1273
+
1274
+ % Appendix
1275
+ \def\@startappsection#1#2#3#4#5#6{%
1276
+ \if@noskipsec \leavevmode \fi
1277
+ \par
1278
+ \@tempskipa #4\relax
1279
+ \@afterindenttrue
1280
+ \ifdim \@tempskipa <\z@
1281
+ \@tempskipa -\@tempskipa \@afterindentfalse
1282
+ \fi
1283
+ \if@nobreak
1284
+ \everypar{}%
1285
+ \else
1286
+ \addpenalty\@secpenalty\addvspace\@tempskipa
1287
+ \fi
1288
+ \@dblarg{\@appsect{#1}{#2}{#3}{#4}{#5}{#6}}}
1289
+ \def\@appsect#1#2#3#4#5#6[#7]#8{%
1290
+ \ifnum #2>\c@secnumdepth
1291
+ \let\@svsec\@empty
1292
+ \else
1293
+ \refstepcounter{#1}%
1294
+ \protected@edef\@svsec{\@seccntformat{#1}\relax}%
1295
+ \fi
1296
+ \@tempskipa #5\relax
1297
+ \ifdim \@tempskipa>\z@
1298
+ \begingroup
1299
+ #6{%
1300
+ \@hangfrom{\hskip #3\relax}%
1301
+ \interlinepenalty \@M #8\@@par}%
1302
+ \endgroup
1303
+ \csname #1mark\endcsname{#7}%
1304
+ \addcontentsline{toc}{#1}{%
1305
+ \ifnum #2>\c@secnumdepth \else
1306
+ \protect\numberline{\csname the#1\endcsname}%
1307
+ \fi
1308
+ #7}%
1309
+ \else
1310
+ \def\@svsechd{%
1311
+ #6{\hskip #3\relax
1312
+ \@svsec #8}%
1313
+ \csname #1mark\endcsname{#7}%
1314
+ \addcontentsline{toc}{#1}{%
1315
+ \ifnum #2>\c@secnumdepth \else
1316
+ \protect\numberline{\csname the#1\endcsname}%
1317
+ \fi
1318
+ #7}}%
1319
+ \fi
1320
+ \@xsect{#5}}
1321
+
1322
+ \newcommand\appendixname{APPENDIX}
1323
+
1324
+ \def\appendix{\if@twocolumn\@restonecoltrue\onecolumn\fi
1325
+ \setcounter{secnumdepth}{2}
1326
+ \setcounter{section}{0}
1327
+ \setcounter{figure}{0}
1328
+ \numberwithin{figure}{section}
1329
+ \setcounter{table}{0}
1330
+ \numberwithin{table}{section}
1331
+ \setcounter{equation}{0}
1332
+ \numberwithin{equation}{section}
1333
+ \renewcommand\thesection{\@Alph\c@section}
1334
+ \renewcommand\thesubsection{\thesection\@arabic\c@subsection}
1335
+ \renewcommand\theequation {\thesection\@arabic\c@equation}
1336
+ \renewcommand\thefigure{\thesection\@arabic\c@figure}
1337
+ \renewcommand\thetable{\thesection\@arabic\c@table}
1338
+ \renewcommand\section{%
1339
+ \@startappsection{section}{1}{\z@}%
1340
+ {\abovesectionskip}%
1341
+ {\belowsectionskip}%
1342
+ {\appendixsectionstyle}}
1343
+ \renewcommand\subsection{%
1344
+ \@startsection{subsection}{2}{\z@}%
1345
+ {\abovesectionskip}%
1346
+ {\belowsectionskip}%
1347
+ {\appendixsubsectionstyle}}
1348
+ }
1349
+
1350
+
1351
+ % references
1352
+ \newcommand\refname{REFERENCES}
1353
+ \newdimen\bibindent
1354
+ \setlength\bibindent{1.5em}
1355
+ \newenvironment{thebibliography}[1]
1356
+ {\if@JEP\subsection*{\MakeUppercase{\refname}}\else\section*{\MakeUppercase{\refname}}\fi%
1357
+ \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
1358
+ \list{}%
1359
+ {\settowidth\labelwidth{}%
1360
+ \leftmargin\labelwidth
1361
+ \itemsep 1pt
1362
+ \parsep 1pt
1363
+ \advance\leftmargin\labelsep
1364
+ \@openbib@code
1365
+ \usecounter{enumiv}%
1366
+ \let\p@enumiv\@empty
1367
+ \renewcommand\theenumiv{\@arabic\c@enumiv}}%
1368
+ \sloppy
1369
+ \clubpenalty4000
1370
+ \@clubpenalty \clubpenalty
1371
+ \widowpenalty8000%
1372
+ \sfcode`\.\@m}
1373
+ {\def\@noitemerr
1374
+ {\@latex@warning{Empty `thebibliography' environment}}%
1375
+ \endlist}
1376
+ \newcommand\newblock{\hskip .11em\@plus0.33em\@minus.07em}
1377
+ \let\@openbib@code\@empty
1378
+
1379
+ % ==============================================================================
1380
+ % Theorem-Likes
1381
+ % ==============================================================================
1382
+
1383
+ \def\@begintheorem#1#2{\trivlist
1384
+ \item[\hskip \labelsep{\MakeUppercase{#1}\ #2: }]\itshape}
1385
+ \def\@opargbegintheorem#1#2#3{\trivlist
1386
+ \item[\hskip \labelsep{\MakeUppercase{#1}\ #2\ (#3): }]\itshape}
1387
+
1388
+ \newenvironment{proof}[1][PROOF]{\noindent\MakeUppercase{#1:}\par }{\par\par}
1389
+
1390
+ % ==============================================================================
1391
+ % SW Adjustments
1392
+ % ==============================================================================
1393
+
1394
+ \AtBeginDocument{
1395
+ \def\QTR#1{\csname #1\endcsname}
1396
+ }
1397
+
1398
+
1399
+ % ==============================================================================
1400
+ % Miscellaneous
1401
+ % ==============================================================================
1402
+
1403
+ \setlength\overfullrule{0pt}
1404
+ \setlength\overfullrule{5pt}
1405
+
1406
+ \def\today{\ifcase\month\or
1407
+ January\or February\or March\or April\or May\or June\or
1408
+ July\or August\or September\or October\or November\or December\fi
1409
+ \space\number\day, \number\year}
1410
+
1411
+ % ==============================================================================
1412
+ % ==============================================================================
1413
+ \endinput
1414
+ % End of file AEA.cls