galaaz 0.4.10 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/LICENSE +0 -0
- data/README.md +3123 -882
- data/Rakefile +62 -41
- data/bin/galaaz-bootstrap +137 -0
- data/bin/galaaz-jruby +14 -0
- data/bin/galaaz_jruby_env.inc.sh +6 -0
- data/bin/gbookdown +64 -0
- data/bin/gknit +223 -6
- data/bin/gknit-draft +105 -0
- data/bin/gknit-draft.rb +28 -0
- data/bin/gknit_Rscript +127 -0
- data/bin/grun +27 -1
- data/bin/gstudio +49 -4
- data/bin/{gstudio.rb → gstudio_irb.rb} +0 -0
- data/bin/gstudio_pry.rb +7 -0
- data/bin/install-tinytex +6 -0
- data/bin/run_all_rspec +43 -0
- data/bin/run_example +14 -0
- data/bin/run_old_rspec +19 -0
- data/bin/run_rspec +23 -0
- data/bin/run_rspec_subset +38 -0
- data/bin/run_slow_rspec +19 -0
- data/blogs/R-on-Rails-Planning-Document.md +940 -0
- data/blogs/README.md +100 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot.Rmd +38 -66
- data/blogs/galaaz_ggplot/galaaz_ggplot.log +754 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot.md +364 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot.tex +607 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-html/midwest_rb.png +0 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-html/scatter_plot_rb.png +0 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-markdown_github/midwest_rb.png +0 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-markdown_github/scatter_plot_rb.png +0 -0
- data/blogs/galaaz_ggplot/midwest.Rmd +3 -3
- data/blogs/galaaz_ggplot/midwest_external_png +0 -0
- data/blogs/gknit/gknit.Rmd +52 -55
- data/blogs/gknit/gknit.md +94 -94
- data/blogs/gknit/gknit_files/figure-html/bubble-1.png +0 -0
- data/blogs/gknit/gknit_files/figure-html/diverging_bar.png +0 -0
- data/blogs/gknit/lst.rds +0 -0
- data/blogs/gknit/model.rb +1 -1
- data/blogs/gknit/stats.bib +0 -0
- data/blogs/manual/include_model_local_repro.Rmd +14 -0
- data/blogs/manual/include_model_local_repro.md +75 -0
- data/blogs/manual/lst.rds +0 -0
- data/blogs/manual/manual.Rmd +1582 -196
- data/blogs/manual/manual.log +1786 -0
- data/blogs/manual/manual.md +3107 -890
- data/blogs/manual/manual.tex +3018 -1086
- data/blogs/manual/manual_files/figure-html/bubble-1.png +0 -0
- data/blogs/manual/manual_files/figure-html/diverging_bar.png +0 -0
- data/blogs/manual/manual_files/figure-latex/bubble-1.png +0 -0
- data/blogs/manual/model.rb +41 -0
- data/blogs/nse_dplyr/nse_dplyr.Rmd +277 -151
- data/blogs/nse_dplyr/nse_dplyr.log +928 -0
- data/blogs/nse_dplyr/nse_dplyr.md +457 -293
- data/blogs/oh_my/not_so.rb +0 -0
- data/blogs/oh_my/oh_my.Rmd +1234 -25
- data/blogs/oh_my/oh_my.log +804 -0
- data/blogs/oh_my/oh_my.md +1808 -228
- data/blogs/oh_my/oh_my.tex +821 -0
- data/blogs/oh_my/old.Rmd +15 -14
- data/blogs/ruby_plot/ruby_plot.Rmd +58 -82
- data/blogs/ruby_plot/ruby_plot.log +885 -0
- data/blogs/ruby_plot/ruby_plot.md +71 -103
- data/blogs/ruby_plot/ruby_plot.tex +940 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/dose_len.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_delivery.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_dose.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color2.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_decorations.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_points.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/final_box_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/dose_len.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facet_by_delivery.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facet_by_dose.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_by_delivery_color.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_by_delivery_color2.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_decorations.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_jitter.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/facets_with_points.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/final_box_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/final_violin_plot.png +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-latex/violin_with_jitter.png +0 -0
- data/blogs/test/test.Rmd +14 -0
- data/examples/50Plots_MasterList/Images/midwest-scatterplot.PNG +0 -0
- data/examples/50Plots_MasterList/ScatterPlot.rb +0 -0
- data/examples/50Plots_MasterList/scatter_plot.rb +0 -0
- data/examples/Bibliography/master.bib +50 -0
- data/examples/Bibliography/stats.bib +72 -0
- data/examples/R/calc.R +0 -0
- data/examples/R/java_interop.R +0 -0
- data/examples/bioconductor_deseq2_airway/Documentation/DESeq2-airway-walkthrough.md +56 -0
- data/examples/bioconductor_deseq2_airway/bench_galaaz_three_same_process.rb +53 -0
- data/examples/bioconductor_deseq2_airway/bench_r_three_same_process.R +34 -0
- data/examples/bioconductor_deseq2_airway/deseq2_airway_galaaz.rb +33 -0
- data/examples/bioconductor_deseq2_airway/deseq2_airway_galaaz_optimized.rb +34 -0
- data/examples/bioconductor_deseq2_airway/deseq2_airway_minimal.R +30 -0
- data/examples/bioconductor_deseq2_airway/deseq2_airway_pipeline_for_bench.R +36 -0
- data/examples/islr/all.rb +13 -0
- data/examples/islr/ch2.spec.rb +37 -7
- data/examples/islr/ch3.spec.rb +11 -2
- data/examples/islr/ch3_boston.rb +27 -0
- data/examples/islr/ch3_multiple_regression.rb +0 -0
- data/examples/islr/ch6.spec.rb +24 -1
- data/examples/islr/x_y_rnorm.jpg +0 -0
- data/examples/latex_templates/Test-acm_article/Makefile +16 -0
- data/examples/latex_templates/Test-acm_article/Test-acm_article.Rmd +65 -0
- data/examples/latex_templates/Test-acm_article/acm_proc_article-sp.cls +1670 -0
- data/examples/latex_templates/Test-acm_article/sensys-abstract.cls +703 -0
- data/examples/latex_templates/Test-acm_article/sigproc.bib +59 -0
- data/examples/latex_templates/Test-acs_article/Test-acs_article.Rmd +260 -0
- data/examples/latex_templates/Test-acs_article/acs-Test-acs_article.bib +11 -0
- data/examples/latex_templates/Test-acs_article/acs-my_output.bib +11 -0
- data/examples/latex_templates/Test-acs_article/acstest.bib +17 -0
- data/examples/latex_templates/Test-aea_article/AEA.cls +1414 -0
- data/{blogs/gknit/marshal.dump → examples/latex_templates/Test-aea_article/BibFile.bib} +0 -0
- data/examples/latex_templates/Test-aea_article/Test-aea_article.Rmd +108 -0
- data/examples/latex_templates/Test-aea_article/aea.bst +1269 -0
- data/examples/latex_templates/Test-aea_article/multicol.sty +853 -0
- data/examples/latex_templates/Test-aea_article/references.bib +0 -0
- data/examples/latex_templates/Test-aea_article/setspace.sty +546 -0
- data/examples/latex_templates/Test-amq_article/Test-amq_article.Rmd +256 -0
- data/examples/latex_templates/Test-amq_article/Test-amq_article.pdfsync +3397 -0
- data/examples/latex_templates/Test-ams_article/Test-ams_article.Rmd +215 -0
- data/examples/latex_templates/Test-ams_article/amstest.bib +436 -0
- data/examples/latex_templates/Test-asa_article/Test-asa_article.Rmd +153 -0
- data/examples/latex_templates/Test-asa_article/agsm.bst +1353 -0
- data/examples/latex_templates/Test-asa_article/bibliography.bib +233 -0
- data/examples/latex_templates/Test-ieee_article/IEEEtran.bst +2409 -0
- data/examples/latex_templates/Test-ieee_article/IEEEtran.cls +6346 -0
- data/examples/latex_templates/Test-ieee_article/Test-ieee_article.Rmd +175 -0
- data/examples/latex_templates/Test-ieee_article/mybibfile.bib +20 -0
- data/examples/latex_templates/Test-rjournal_article/RJournal.sty +335 -0
- data/examples/latex_templates/Test-rjournal_article/RJreferences.bib +18 -0
- data/examples/latex_templates/Test-rjournal_article/Test-rjournal_article.Rmd +52 -0
- data/examples/latex_templates/Test-springer_article/Test-springer_article.Rmd +65 -0
- data/examples/latex_templates/Test-springer_article/bibliography.bib +26 -0
- data/examples/latex_templates/Test-springer_article/spbasic.bst +1658 -0
- data/examples/latex_templates/Test-springer_article/spmpsci.bst +1512 -0
- data/examples/latex_templates/Test-springer_article/spphys.bst +1443 -0
- data/examples/latex_templates/Test-springer_article/svglov3.clo +113 -0
- data/examples/latex_templates/Test-springer_article/svjour3.cls +1431 -0
- data/examples/misc/baseball.csv +0 -0
- data/examples/misc/ggplot.rb +3 -2
- data/examples/misc/moneyball.rb +0 -0
- data/examples/misc/subsetting.rb +0 -0
- data/examples/multithread_shards_to_r/shards_to_r.rb +67 -0
- data/examples/rmarkdown/svm-rmarkdown-anon-ms-example/svm-rmarkdown-anon-ms-example.Rmd +73 -0
- data/examples/rmarkdown/svm-rmarkdown-article-example/svm-rmarkdown-article-example.Rmd +382 -0
- data/examples/rmarkdown/svm-rmarkdown-beamer-example/svm-rmarkdown-beamer-example.Rmd +164 -0
- data/examples/rmarkdown/svm-rmarkdown-cv/svm-rmarkdown-cv.Rmd +92 -0
- data/examples/rmarkdown/svm-rmarkdown-syllabus-example/attend-grade-relationships.csv +482 -0
- data/examples/rmarkdown/svm-rmarkdown-syllabus-example/svm-rmarkdown-syllabus-example.Rmd +280 -0
- data/examples/rmarkdown/svm-xaringan-example/svm-xaringan-example.Rmd +386 -0
- data/examples/sthda_ggplot/README.md +0 -0
- data/examples/sthda_ggplot/RUN.md +41 -0
- data/examples/sthda_ggplot/all.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/density_gg.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/geom_area.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/geom_density.rb +2 -0
- data/examples/sthda_ggplot/one_variable_continuous/geom_dotplot.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/geom_freqpoly.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/geom_histogram.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/histogram_density.rb +0 -0
- data/examples/sthda_ggplot/one_variable_continuous/stat.rb +0 -0
- data/examples/sthda_ggplot/one_variable_discrete/bar.rb +0 -0
- data/examples/sthda_ggplot/qplots/box_violin_dot.rb +0 -0
- data/examples/sthda_ggplot/qplots/scatter_plots.rb +0 -0
- data/examples/sthda_ggplot/scatter_gg.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_bivariate/geom_bin2d.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_bivariate/geom_density2d.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_bivariate/geom_hex.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_cont/geom_point.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_cont/geom_smooth.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_cont/misc.rb +0 -0
- data/examples/sthda_ggplot/two_variables_cont_function/geom_area.rb +4 -3
- data/examples/sthda_ggplot/two_variables_disc_cont/geom_bar.rb +0 -0
- data/examples/sthda_ggplot/two_variables_disc_cont/geom_boxplot.rb +0 -0
- data/examples/sthda_ggplot/two_variables_disc_cont/geom_dotplot.rb +0 -0
- data/examples/sthda_ggplot/two_variables_disc_cont/geom_jitter.rb +0 -0
- data/examples/sthda_ggplot/two_variables_disc_cont/geom_line.rb +0 -0
- data/examples/sthda_ggplot/two_variables_disc_cont/geom_violin.rb +0 -0
- data/examples/sthda_ggplot/two_variables_disc_disc/geom_jitter.rb +0 -0
- data/examples/sthda_ggplot/two_variables_error/geom_crossbar.rb +0 -0
- data/ext/new_bridge/Makefile +46 -0
- data/ext/new_bridge/galaaz_gatekeeper_phase0.cpp +12 -0
- data/ext/new_bridge/galaaz_gatekeeper_phase1.cpp +1639 -0
- data/lib/R_interface/galaaz_device.R +20 -0
- data/lib/R_interface/include_engine.R +109 -0
- data/lib/R_interface/new_bridge_adapter.rb +824 -0
- data/lib/R_interface/r.rb +177 -25
- data/lib/R_interface/r_arrow.rb +113 -0
- data/lib/R_interface/r_libs.R +4 -4
- data/lib/R_interface/r_methods.rb +13 -116
- data/lib/R_interface/r_module_s.rb +0 -0
- data/lib/R_interface/rbinary_operators.rb +20 -2
- data/lib/R_interface/rclosure.rb +5 -1
- data/lib/R_interface/rdata_frame.rb +34 -70
- data/lib/R_interface/rdevice.rb +125 -0
- data/lib/R_interface/rdevices.R +0 -0
- data/lib/R_interface/renvironment.rb +10 -4
- data/lib/R_interface/rexpression.rb +5 -1
- data/lib/R_interface/rindexed_object.rb +41 -13
- data/lib/R_interface/rlanguage.rb +20 -62
- data/lib/R_interface/rlist.rb +115 -25
- data/lib/R_interface/rlogical_operators.rb +0 -0
- data/lib/R_interface/rmatrix.rb +2 -11
- data/lib/R_interface/rmd_indexed_object.rb +5 -1
- data/lib/R_interface/robject.rb +348 -290
- data/lib/R_interface/rpkg.rb +1 -0
- data/lib/R_interface/rsupport.rb +610 -331
- data/lib/R_interface/rsupport_scope.rb +2 -1
- data/lib/R_interface/rsymbol.rb +50 -0
- data/lib/R_interface/ruby_callback.rb +2 -3
- data/lib/R_interface/ruby_extensions.rb +225 -175
- data/lib/R_interface/runary_operators.rb +0 -0
- data/lib/R_interface/rvector.rb +147 -31
- data/lib/galaaz.rb +0 -0
- data/lib/galaaz_jruby.rb +22 -0
- data/lib/gknit/diagnostics.rb +50 -0
- data/lib/gknit/draft.rb +111 -0
- data/lib/gknit/include_engine.rb +15 -7
- data/lib/gknit/knitr_engine.rb +223 -107
- data/lib/gknit/rb_engine.rb +3 -3
- data/lib/gknit/ruby_engine.rb +0 -0
- data/lib/gknit.rb +3 -0
- data/lib/new_bridge/bootstrap/windows_bootstrap.rb +285 -0
- data/lib/new_bridge/envelope.rb +51 -0
- data/lib/new_bridge/eval_result.rb +26 -0
- data/lib/new_bridge/framing.rb +39 -0
- data/lib/new_bridge/instance_pool_client.rb +38 -0
- data/lib/new_bridge/r_instance_manager.rb +404 -0
- data/lib/new_bridge/session_client.rb +530 -0
- data/lib/new_bridge/tcp_framed.rb +44 -0
- data/lib/new_bridge.rb +9 -0
- data/lib/util/exec_ruby.rb +95 -46
- data/lib/util/inline_file.rb +35 -30
- data/new_bridge_specs/benchmark_phase5_5_unboxing_spec.rb +96 -0
- data/new_bridge_specs/eval_r_async_spec.rb +113 -0
- data/new_bridge_specs/integration_phase5_1_concurrent_spec.rb +50 -0
- data/new_bridge_specs/integration_phase5_1_eval_spec.rb +16 -0
- data/new_bridge_specs/integration_phase5_1_r_api_spec.rb +25 -0
- data/new_bridge_specs/integration_phase5_1_smoke_spec.rb +31 -0
- data/new_bridge_specs/integration_phase5_2_dataframe_unboxing_spec.rb +19 -0
- data/new_bridge_specs/integration_phase5_2_handle_eval_unboxing_spec.rb +25 -0
- data/new_bridge_specs/integration_phase5_3_callback_args_spec.rb +28 -0
- data/new_bridge_specs/integration_phase5_3_callback_error_spec.rb +22 -0
- data/new_bridge_specs/integration_phase5_3_callback_timeout_spec.rb +28 -0
- data/new_bridge_specs/integration_phase5_3_callbacks_smoke_spec.rb +22 -0
- data/new_bridge_specs/integration_phase5_3_edge_cases_spec.rb +52 -0
- data/new_bridge_specs/integration_phase5_3_nested_spec.rb +30 -0
- data/new_bridge_specs/integration_phase5_4_concurrent_sessions_spec.rb +53 -0
- data/new_bridge_specs/integration_phase5_4_nested_session_callbacks_spec.rb +49 -0
- data/new_bridge_specs/integration_phase5_4_session_routing_spec.rb +38 -0
- data/new_bridge_specs/integration_phase5_5_stress_concurrency_spec.rb +52 -0
- data/new_bridge_specs/integration_phase5_5_unbox_walk_spec.rb +46 -0
- data/new_bridge_specs/phase0_protocol_spec.rb +96 -0
- data/new_bridge_specs/phase1_req_ret_spec.rb +66 -0
- data/new_bridge_specs/phase2_multi_instance_spec.rb +67 -0
- data/new_bridge_specs/phase3_callbacks_spec.rb +71 -0
- data/new_bridge_specs/phase4_2_hardening_spec.rb +252 -0
- data/new_bridge_specs/phase4_3_r_instance_manager_spec.rb +85 -0
- data/new_bridge_specs/phase4_nested_callbacks_spec.rb +123 -0
- data/r_requires/ggplot.rb +0 -0
- data/r_requires/knitr.rb +0 -0
- data/specs/all.rb +15 -11
- data/specs/arrow_from_ruby_batches_spec.rb +50 -0
- data/specs/arrow_semantics_spec.rb +64 -0
- data/specs/bridge_concurrent_spec.rb +46 -0
- data/specs/bridge_nested_spec.rb +25 -0
- data/specs/dataframe_semantics_spec.rb +122 -0
- data/specs/dataframe_single_index_logical_filter_spec.rb +21 -0
- data/specs/dispatch_probe_cache_spec.rb +38 -0
- data/specs/dispatch_probe_error_class_fallback_spec.rb +20 -0
- data/specs/dispatch_probe_fallback_spec.rb +18 -0
- data/specs/environment_semantics_spec.rb +89 -0
- data/specs/field_access_spec.rb +31 -0
- data/specs/figures/bg.jpeg +0 -0
- data/specs/figures/bg.png +0 -0
- data/specs/figures/bg.svg +168 -57
- data/specs/figures/dose_len.png +0 -0
- data/specs/figures/no_args.jpeg +0 -0
- data/specs/figures/no_args.png +0 -0
- data/specs/figures/no_args.svg +168 -57
- data/specs/figures/width_height.jpeg +0 -0
- data/specs/figures/width_height.png +0 -0
- data/specs/figures/width_height_units1.jpeg +0 -0
- data/specs/figures/width_height_units1.png +0 -0
- data/specs/figures/width_height_units2.jpeg +0 -0
- data/specs/figures/width_height_units2.png +0 -0
- data/specs/formula_semantics_spec.rb +81 -0
- data/specs/galaaz_util_exec_ruby_spec.rb +85 -0
- data/specs/galaaz_util_inline_file_spec.rb +54 -0
- data/specs/gknit_cli_option_permutation_spec.rb +24 -0
- data/specs/gknit_include_engine_spec.rb +72 -0
- data/specs/gknit_install_timeout_report_spec.rb +69 -0
- data/specs/gknit_internal_error_report_spec.rb +57 -0
- data/specs/gknit_vector_map_output_spec.rb +59 -0
- data/specs/globalenv_guardrail_spec.rb +52 -0
- data/specs/language_expression_semantics_spec.rb +145 -0
- data/specs/list_semantics_spec.rb +111 -0
- data/specs/new_bridge_bulk_dataframe_transfer_spec.rb +44 -0
- data/specs/new_bridge_bulk_vector_transfer_spec.rb +73 -0
- data/specs/new_bridge_callback_timeout_spec.rb +69 -0
- data/specs/new_bridge_eval_r_fallback_spec.rb +55 -0
- data/specs/nil_null_spec.rb +42 -0
- data/specs/object_build_phase2_spec.rb +53 -0
- data/specs/phase1_callback_bridge_spec.rb +84 -0
- data/specs/phase2_gknit_generic_rendering_guardrail_spec.rb +46 -0
- data/specs/phase2_gknit_no_raw_code_leakage_spec.rb +43 -0
- data/specs/phase3_gknit_generic_graphics_capture_spec.rb +71 -0
- data/specs/plot_device_semantics_spec.rb +28 -0
- data/specs/plot_snapshot_semantics_spec.rb +58 -0
- data/specs/protocol_result_spec.rb +236 -0
- data/specs/r_batch_fail_fast_spec.rb +47 -0
- data/specs/r_bridge_bootstrap_spec.rb +11 -0
- data/specs/r_devices.spec.rb +1 -1
- data/specs/r_eval.spec.rb +16 -18
- data/specs/r_function.spec.rb +1 -1
- data/specs/r_instance_manager_spec.rb +285 -0
- data/specs/r_list_apply.spec.rb +15 -15
- data/specs/r_matrix.spec.rb +0 -0
- data/specs/r_nse.spec.rb +5 -5
- data/specs/r_object_send_dispatch_spec.rb +13 -0
- data/specs/r_vector_comparator_spec.rb +8 -0
- data/specs/r_vector_creation.spec.rb +0 -0
- data/specs/r_vector_functions.spec.rb +0 -0
- data/specs/r_vector_object.spec.rb +0 -0
- data/specs/r_vector_operators.spec.rb +0 -0
- data/specs/r_vector_structured_scalar_reads_spec.rb +35 -0
- data/specs/r_vector_subsetting.spec.rb +0 -0
- data/specs/range_helper_spec.rb +21 -0
- data/specs/rsupport_scope_spec.rb +28 -0
- data/specs/rsupport_var_name_thread_safety_spec.rb +24 -0
- data/specs/scalar_character_spec.rb +44 -0
- data/specs/scoped_symbol_dsl_refinement_spec.rb +40 -0
- data/specs/session_env_bridge_spec.rb +25 -0
- data/specs/simplecov_bootstrap_spec.rb +10 -0
- data/specs/spec_helper.rb +10 -0
- data/specs/tmp.rb +41 -20
- data/specs/unboxing_recursion_regression_spec.rb +30 -0
- data/specs/unboxing_spec.rb +49 -0
- data/specs/verify_callbacks.rb +42 -0
- data/sty/galaaz.sty +0 -0
- data/version.rb +1 -1
- metadata +239 -71
- data/blogs/galaaz_ggplot/galaaz_ggplot.aux +0 -41
- data/blogs/galaaz_ggplot/galaaz_ggplot.html +0 -705
- data/blogs/galaaz_ggplot/galaaz_ggplot.out +0 -10
- data/blogs/galaaz_ggplot/galaaz_ggplot.pdf +0 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-latex/midwest_rb.pdf +0 -0
- data/blogs/galaaz_ggplot/galaaz_ggplot_files/figure-latex/scatter_plot_rb.pdf +0 -0
- data/blogs/galaaz_ggplot/midwest.html +0 -188
- data/blogs/gknit/gknit.html +0 -2266
- data/blogs/gknit/gknit.pdf +0 -0
- data/blogs/gknit/gknit.tex +0 -1358
- data/blogs/manual/graph.rb +0 -29
- data/blogs/manual/manual.html +0 -2995
- data/blogs/manual/manual.pdf +0 -0
- data/blogs/manual/manual_files/figure-latex/diverging_bar.pdf +0 -0
- data/blogs/nse_dplyr/nse_dplyr.html +0 -960
- data/blogs/nse_dplyr/nse_dplyr.pdf +0 -0
- data/blogs/nse_dplyr/nse_dplyr.tex +0 -1373
- data/blogs/oh_my/oh_my.html +0 -680
- data/blogs/ruby_plot/ruby_plot.Rmd_external_figs +0 -662
- data/blogs/ruby_plot/ruby_plot.html +0 -729
- data/blogs/ruby_plot/ruby_plot.pdf +0 -0
- data/blogs/ruby_plot/ruby_plot_files/figure-html/dose_len.svg +0 -57
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_delivery.svg +0 -106
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facet_by_dose.svg +0 -110
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color.svg +0 -174
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_by_delivery_color2.svg +0 -236
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_jitter.svg +0 -296
- data/blogs/ruby_plot/ruby_plot_files/figure-html/facets_with_points.svg +0 -236
- data/blogs/ruby_plot/ruby_plot_files/figure-html/final_box_plot.svg +0 -218
- data/blogs/ruby_plot/ruby_plot_files/figure-html/final_violin_plot.svg +0 -128
- data/blogs/ruby_plot/ruby_plot_files/figure-html/violin_with_jitter.svg +0 -150
- data/examples/paper/paper.rb +0 -36
- data/specs/r_dataframe.spec.rb +0 -379
- data/specs/r_environment.spec.rb +0 -140
- data/specs/r_formula.spec.rb +0 -232
- data/specs/r_language.spec.rb +0 -112
- data/specs/r_list.spec.rb +0 -293
- data/specs/r_plots.spec.rb +0 -72
- data/specs/ruby_expression.spec.rb +0 -315
|
@@ -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
|