├── .travis.yml ├── Gemfile ├── meta ├── aaai.yml ├── alma.yml ├── book.yml ├── econf.yml ├── mit.yml ├── nih.yml ├── nsf.yml ├── pnas.yml ├── chandra.yml ├── cornell.yml ├── empty.yml ├── f1000.yml ├── geophysics.yml ├── peerj.yml ├── report.yml ├── uiowa.yml ├── aisb2008.yml ├── development.yml ├── g3.yml ├── uchicago.yml ├── umich.yml ├── article.yml ├── bmc.yml ├── cv.yml ├── hst.yml ├── jfm.yml ├── spie.yml ├── spieman.yml ├── uvic.yml ├── bioinformatics.yml ├── dod.yml ├── doe.yml ├── iram_proposal.yml ├── jxb.yml ├── mnras.yml ├── tufte-handout.yml ├── iop.yml ├── acm_large.yml ├── agu.yml ├── osaletters.yml ├── ucriverside.yml ├── abnt.yml ├── epjc.yml ├── jhep.yml ├── jinst.yml ├── nature.yml ├── osaexpress.yml ├── sigchi.yml ├── sigplan.yml ├── svmono.yml ├── a0poster-portrait.yml ├── acm_sig_strict.yml ├── ajps.yml ├── asp.yml ├── cernatsnote.yml ├── cernyrep.yml ├── nime.yml ├── nips.yml ├── springer.yml ├── a0poster-landscape.yml ├── acl.yml ├── acm_sig_alternate.yml ├── elsevier.yml ├── jrss.yml ├── mdpi.yml ├── nature_scirep.yml ├── aa.yml ├── aiaa.yml ├── frontiersMED.yml ├── ijcai.yml ├── springer_twocolumn.yml ├── frontiersENG.yml ├── frontiersFPHY.yml ├── frontiersSCNS.yml ├── aj_manuscript.yml ├── apj_emulate.yml ├── iclr.yml ├── ifac.yml ├── aa_onecolumn.yml ├── aa_twocolumn.yml ├── acm.yml ├── apj_manuscript.yml ├── aip_preprint.yml ├── aip_reprint.yml ├── ams_one.yml ├── ams_two.yml ├── aps.yml ├── aps_preprint.yml ├── nasa.yml ├── apa_doc.yml ├── authorea.yml ├── rsc.yml ├── uwollongong.yml ├── dfgproposal.yml ├── gji.yml ├── plos.yml ├── cogsci.yml ├── jacow.yml ├── science.yml ├── trb.yml ├── authorea-double.yml ├── authorea-numbered.yml ├── plos2015.yml ├── acs.yml ├── biogeosciences.yml ├── sciadvances.yml ├── egu.yml ├── elsevier_review.yml ├── aj_preprint.yml ├── elsevier_softwarex.yml ├── elsevier_twocolumn.yml ├── hess.yml ├── ieee_bare_conf.yml ├── ieee_bare_jrnl.yml ├── authorea-double-numbered.yml ├── lncs.yml ├── ieee_bare_jrnl_compsoc.yml ├── imsart_as.yml └── imsart_aas.yml ├── Rakefile ├── test ├── fixtures │ └── example_scholarly_article.yml ├── helper.rb ├── render_test.rb └── sanity_loader_test.rb ├── styles ├── report.tex.erb ├── book.tex.erb ├── empty.tex.erb ├── apa_doc.tex.erb ├── article.tex.erb ├── cernatsnote.tex.erb ├── cv.tex.erb ├── aisb2008.tex.erb ├── nips.tex.erb ├── cernyrep.tex.erb ├── jrss.tex.erb ├── aaai.tex.erb ├── iclr.tex.erb ├── nature_scirep.tex.erb ├── asp.tex.erb ├── f1000.tex.erb ├── bioinformatics.tex.erb ├── nature.tex.erb ├── alma.tex.erb ├── geophysics.tex.erb ├── mnras.tex.erb ├── jinst.tex.erb ├── hst.tex.erb ├── ifac.tex.erb ├── jfm.tex.erb ├── peerj.tex.erb ├── uchicago.tex.erb ├── umich.tex.erb ├── development.tex.erb ├── gji.tex.erb ├── jxb.tex.erb ├── authorea.tex.erb ├── acl.tex.erb ├── doe.tex.erb ├── authorea-double.tex.erb ├── authorea-numbered.tex.erb ├── cogsci.tex.erb ├── jhep.tex.erb ├── authorea-double-numbered.tex.erb ├── aa.tex.erb ├── aa_onecolumn.tex.erb ├── aa_twocolumn.tex.erb ├── g3.tex.erb ├── aip_preprint.tex.erb ├── aip_reprint.tex.erb ├── plos.tex.erb ├── svmono.tex.erb ├── ijcai.tex.erb ├── cornell.tex.erb ├── osaletters.tex.erb ├── ucriverside.tex.erb ├── tufte-handout.tex.erb ├── hess.tex.erb ├── biogeosciences.tex.erb ├── egu.tex.erb ├── aps.tex.erb ├── aps_preprint.tex.erb ├── nsf.tex.erb ├── ajps.tex.erb ├── imsart_aas.tex.erb ├── imsart_as.tex.erb ├── epjc.tex.erb ├── jacow.tex.erb ├── lncs.tex.erb ├── uiowa.tex.erb ├── acm.tex.erb ├── osaexpress.tex.erb ├── spie.tex.erb ├── sigplan.tex.erb ├── aj_manuscript.tex.erb ├── apj_manuscript.tex.erb ├── aj_preprint.tex.erb ├── aiaa.tex.erb ├── iram_proposal.tex.erb ├── springer_twocolumn.tex.erb ├── springer.tex.erb ├── frontiersMED.tex.erb ├── frontiersSCNS.tex.erb ├── frontiersENG.tex.erb ├── sciadvances.tex.erb ├── frontiersFPHY.tex.erb ├── acm_large.tex.erb ├── acs.tex.erb ├── iop.tex.erb ├── spieman.tex.erb └── acm_sig_strict.tex.erb ├── lib ├── texstyles.rb └── texstyles │ └── style.rb ├── texstyles.gemspec ├── LICENSE.txt ├── example └── example_stylize.rb └── .gitignore /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: ruby 3 | rvm: 4 | - 2.3.1 -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # Specify your gem's dependencies in texstyles.gemspec 4 | gemspec 5 | -------------------------------------------------------------------------------- /meta/aaai.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: AAAI 3 | category: computers 4 | citation_style: aaai 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/alma.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ALMA 3 | category: grants 4 | citation_style: abbrv 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/book.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Book 3 | category: generic 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/econf.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: eConf 3 | category: other 4 | citation_style: unsrt 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/mit.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: MIT 3 | category: thesis 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/nih.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: NIH 3 | category: grants 4 | citation_style: unsrt 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/nsf.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: NSF 3 | category: grants 4 | citation_style: jponew 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/pnas.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: PNAS 3 | category: generic 4 | citation_style: pnas 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/chandra.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Chandra 3 | category: grants 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/cornell.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Cornell 3 | category: thesis 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/empty.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Empty 3 | category: generic 4 | citation_style: plain 5 | default_packages: 6 | "*": false 7 | -------------------------------------------------------------------------------- /meta/f1000.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: F1000Research 3 | category: bio 4 | citation_style: unsrt 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/geophysics.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Geophysics 3 | category: geo 4 | citation_style: seg 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/peerj.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: PeerJ 3 | category: generic 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/report.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Report 3 | category: generic 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/uiowa.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: U. Iowa 3 | category: thesis 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/aisb2008.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: AISB 3 | category: computers 4 | citation_style: AISB2008 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/development.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Development 3 | category: bio 4 | citation_style: jxb 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/g3.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: G3- Genes|Genomes|Genetics 3 | category: bio 4 | citation_style: 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/uchicago.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: U. Chicago 3 | category: thesis 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/umich.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: U. Michigan 3 | category: thesis 4 | citation_style: unsrt 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/article.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Scholarly Article 3 | category: generic 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/bmc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: BioMed Central 3 | category: bio 4 | citation_style: bmc-mathphys 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/cv.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Curriculum Vitae (cv) 3 | category: generic 4 | citation_style: unsrt 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/hst.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Hubble Space Telescope 3 | category: grants 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/jfm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal of Fluid Mechanics 3 | category: geo 4 | citation_style: jfm 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/spie.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SPIE Proceedings 3 | category: other 4 | citation_style: spiebib 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/spieman.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SPIE Journal 3 | category: other 4 | citation_style: spiejour 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/uvic.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: U. Victoria (Canada) 3 | category: thesis 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/bioinformatics.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bioinformatics 3 | category: bio 4 | citation_style: natbib 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/dod.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Department of Defense (DoD) 3 | category: grants 4 | citation_style: unsrt 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/doe.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Department of Energy (DoE) 3 | category: grants 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/iram_proposal.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: IRAM Telescopes 3 | category: grants 4 | citation_style: apj 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/jxb.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal of Experimental Biology 3 | category: bio 4 | citation_style: jxb 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/mnras.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Monthly Notices (MNRAS) 3 | category: physics 4 | citation_style: mnras 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/tufte-handout.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Tufte Handout 3 | category: generic 4 | citation_style: plainnat 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/iop.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Institute of Physics (IOP) 3 | category: physics 4 | citation_style: iopart-num 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/acm_large.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Large Format 3 | category: computers 4 | subcategory: ACM 5 | citation_style: 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/agu.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: American Geophysical Union (AGU) 3 | category: geo 4 | citation_style: agufull08 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/osaletters.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Letters 3 | category: physics 4 | subcategory: Optics 5 | citation_style: ol 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/ucriverside.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: U. of California, Riverside 3 | category: thesis 4 | citation_style: plain 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/abnt.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Associacao Brasileira de Normas Tecnicas - ABNT 3 | category: other 4 | citation_style: 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/epjc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: European Physical Journal C (EPJ C) 3 | category: physics 4 | citation_style: spphys 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/jhep.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal of High Energy Physics (JHEP) 3 | category: physics 4 | citation_style: JHEP 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/jinst.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal of Instrumentation (JINST) 3 | category: physics 4 | citation_style: spphys 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/nature.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal 3 | category: generic 4 | subcategory: Nature 5 | citation_style: naturemag 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/osaexpress.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Express 3 | category: physics 4 | subcategory: Optics 5 | citation_style: osajnl 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/sigchi.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SIGCHI 3 | category: computers 4 | subcategory: ACM 5 | citation_style: acm-sigchi 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/sigplan.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SIGPLAN 3 | category: computers 4 | subcategory: ACM 5 | citation_style: abbrvnat 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/svmono.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Monograph 3 | category: generic 4 | subcategory: Springer 5 | citation_style: spbasic 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/a0poster-portrait.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Portrait 3 | category: generic 4 | subcategory: Poster 5 | citation_style: plain 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/acm_sig_strict.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SIG Strict 3 | category: computers 4 | subcategory: ACM 5 | citation_style: abbrv 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/ajps.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: American Journal of Political Science - AJPS 3 | category: other 4 | citation_style: apsr 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/asp.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Astronomical Society of the Pacific (ASP) 3 | category: physics 4 | citation_style: asp2010 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/cernatsnote.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ATS Note 3 | category: physics 4 | subcategory: CERN 5 | citation_style: naturemag 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/cernyrep.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Yellow Report 3 | category: physics 4 | subcategory: CERN 5 | citation_style: naturemag 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/nime.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: New Interfaces for Musical Expression - NIME 3 | category: other 4 | citation_style: abbrv 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/nips.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Neural Information Processing Systems (NIPS) 3 | category: computers 4 | citation_style: aaai 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/springer.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: One column 3 | category: generic 4 | subcategory: Springer 5 | citation_style: spmpsci 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/a0poster-landscape.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Landscape 3 | category: generic 4 | subcategory: Poster 5 | citation_style: plain 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/acl.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Association for Computational Linguistics (ACL) 3 | category: computers 4 | citation_style: acl 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/acm_sig_alternate.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SIG Alternate 3 | category: computers 4 | subcategory: ACM 5 | citation_style: abbrv 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/elsevier.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Preprint 3 | category: generic 4 | subcategory: Elsevier 5 | citation_style: elsarticle-num 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/jrss.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal of the Royal Statistical Society - JRSS 3 | category: other 4 | citation_style: Chicago 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/mdpi.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Molecular Diversity Preservation International - MDPI 3 | category: other 4 | citation_style: mdpi 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/nature_scirep.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Scientific Reports 3 | category: generic 4 | subcategory: Nature 5 | citation_style: 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aa.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Referee 3 | category: physics 4 | subcategory: Astronomy & Astrophysics (A&A) 5 | citation_style: mnras 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aiaa.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: American Institute of Aeronautics and Astronautics (AIAA) 3 | category: other 4 | citation_style: aiaa 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/frontiersMED.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Medicine 3 | category: generic 4 | subcategory: Frontiers 5 | citation_style: frontiersinMED 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/ijcai.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Joint Conference on Artificial Intelligence (IJCAI) 3 | category: computers 4 | citation_style: named 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/springer_twocolumn.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Two columns 3 | category: generic 4 | subcategory: Springer 5 | citation_style: spmpsci 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/frontiersENG.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Engineering 3 | category: generic 4 | subcategory: Frontiers 5 | citation_style: frontiersinSCNS&ENG 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/frontiersFPHY.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Physics 3 | category: generic 4 | subcategory: Frontiers 5 | citation_style: frontiersinMED&FPHY 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/frontiersSCNS.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Science 3 | category: generic 4 | subcategory: Frontiers 5 | citation_style: frontiersinSCNS&ENG 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aj_manuscript.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Manuscript 3 | category: physics 4 | subcategory: The Astronomical Journal (AJ) 5 | citation_style: aj 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/apj_emulate.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Emulate ApJ 3 | category: physics 4 | subcategory: The Astrophysical Journal (ApJ) 5 | citation_style: apj 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/iclr.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: International Conference on Learning Representations (ICLR) 3 | category: computers 4 | citation_style: iclr2015 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/ifac.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: International Federation of Automatic Control (IFAC) 3 | category: physics 4 | citation_style: ifacconf-harvard 5 | default_packages: 6 | "*": true 7 | -------------------------------------------------------------------------------- /meta/aa_onecolumn.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: One column 3 | category: physics 4 | subcategory: Astronomy & Astrophysics (A&A) 5 | citation_style: mnras 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aa_twocolumn.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Two column 3 | category: physics 4 | subcategory: Astronomy & Astrophysics (A&A) 5 | citation_style: mnras 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/acm.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Small Standard Format 3 | category: computers 4 | subcategory: ACM 5 | citation_style: ACM-Reference-Format-Journals 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/apj_manuscript.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Manuscript 3 | category: physics 4 | subcategory: The Astrophysical Journal (ApJ) 5 | citation_style: aj 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aip_preprint.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Pre-print 3 | category: physics 4 | subcategory: American Institute of Physics (AIP) 5 | citation_style: aipauth4-1 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aip_reprint.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Re-print 3 | category: physics 4 | subcategory: American Institute of Physics (AIP) 5 | citation_style: aipauth4-1 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/ams_one.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: One column 3 | category: other 4 | subcategory: American Meteorological Society (AMS) 5 | citation_style: ametsoc2014 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/ams_two.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Two column 3 | category: other 4 | subcategory: American Meteorological Society (AMS) 5 | citation_style: ametsoc2014 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aps.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Reprint 3 | category: physics 4 | subcategory: APS - Physical Review Letters, Physical Review X 5 | citation_style: apsrev4-1 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/aps_preprint.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Preprint 3 | category: physics 4 | subcategory: APS - Physical Review Letters, Physical Review X 5 | citation_style: apsrev4-1 6 | default_packages: 7 | "*": true 8 | -------------------------------------------------------------------------------- /meta/nasa.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: NASA 3 | category: grants 4 | citation_style: abbrv 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/apa_doc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: APA Style 3 | category: generic 4 | citation_style: apacite 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/authorea.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Authorea 3 | category: generic 4 | citation_style: apacite 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | natbib: false 10 | hyperref: false 11 | -------------------------------------------------------------------------------- /meta/rsc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: The Royal Society of Chemistry (RSC) 3 | category: bio 4 | citation_style: rsc 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/uwollongong.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: U. Wollongong (Australia) 3 | category: thesis 4 | citation_style: agsm 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/dfgproposal.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: DFG 3 | category: grants 4 | citation_style: 5 | default_packages: 6 | latexml: true 7 | ams: false 8 | babel: false 9 | inputenc: false 10 | hyperref: false 11 | natbib: false 12 | -------------------------------------------------------------------------------- /meta/gji.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Geophysical Journal International (GJI) 3 | category: physics 4 | citation_style: gji 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/plos.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: '2009' 3 | category: generic 4 | subcategory: PLoS 5 | citation_style: plos2009 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/cogsci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Cognitive Science Society (CogSci) 3 | category: computers 4 | citation_style: apacite 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/jacow.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Joint Accelerator Conferences (JACoW) 3 | category: physics 4 | citation_style: plain 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/science.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal 3 | category: generic 4 | subcategory: Science 5 | citation_style: Science 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/trb.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Transportation Research Board conference - TRB 3 | category: other 4 | citation_style: trb 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | hyperref: true 10 | natbib: false -------------------------------------------------------------------------------- /meta/authorea-double.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Authorea Double-spaced 3 | category: generic 4 | citation_style: apacite 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | natbib: false 10 | hyperref: false 11 | -------------------------------------------------------------------------------- /meta/authorea-numbered.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Authorea Numbered Lines 3 | category: generic 4 | citation_style: apacite 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | natbib: false 10 | hyperref: false 11 | -------------------------------------------------------------------------------- /meta/plos2015.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: '2015' 3 | category: generic 4 | subcategory: PLoS 5 | citation_style: plos2015 6 | default_packages: 7 | latexml: true 8 | babel: true 9 | ams: false 10 | natbib: false 11 | hyperref: false 12 | -------------------------------------------------------------------------------- /meta/acs.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: American Chemical Society (ACS) 3 | category: bio 4 | citation_style: achemso 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | natbib: true 9 | hyperref: true 10 | babel: false 11 | inputenc: false -------------------------------------------------------------------------------- /meta/biogeosciences.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Biogeosciences 3 | category: geo 4 | citation_style: copernicus 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | natbib: true 9 | hyperref: true 10 | babel: false 11 | inputenc: false -------------------------------------------------------------------------------- /meta/sciadvances.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Advances 3 | category: generic 4 | subcategory: Science 5 | citation_style: ScienceAdvances 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | require "rake/testtask" 3 | 4 | Rake::TestTask.new(:test) do |t| 5 | t.libs << "test" 6 | t.libs << "lib" 7 | t.test_files = FileList['test/**/*_test.rb'] 8 | end 9 | 10 | task :default => :test 11 | -------------------------------------------------------------------------------- /meta/egu.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: European Geosciences Union (EGU) 3 | category: geo 4 | citation_style: copernicus 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | natbib: true 9 | hyperref: true 10 | babel: false 11 | inputenc: false -------------------------------------------------------------------------------- /meta/elsevier_review.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Review 3 | category: generic 4 | subcategory: Elsevier 5 | citation_style: elsarticle-num 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/aj_preprint.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Preprint 3 | category: physics 4 | subcategory: The Astronomical Journal (AJ) 5 | citation_style: aj 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/elsevier_softwarex.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: SoftwareX 3 | category: generic 4 | subcategory: Elsevier 5 | citation_style: elsarticle-num 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/elsevier_twocolumn.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Two column 3 | category: generic 4 | subcategory: Elsevier 5 | citation_style: elsarticle-num 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/hess.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Hydrology and Earth System Sciences 3 | category: geo 4 | citation_style: copernicus 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | natbib: true 9 | hyperref: true 10 | babel: false 11 | inputenc: false -------------------------------------------------------------------------------- /meta/ieee_bare_conf.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Conference 3 | category: computers 4 | subcategory: IEEE Transactions 5 | citation_style: IEEEtran 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/ieee_bare_jrnl.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Journal 3 | category: computers 4 | subcategory: IEEE Transactions 5 | citation_style: IEEEtran 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/authorea-double-numbered.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Authorea Double-spaced, Numbered Lines 3 | category: generic 4 | citation_style: apacite 5 | default_packages: 6 | ams: true 7 | latexml: true 8 | babel: true 9 | natbib: false 10 | hyperref: false 11 | -------------------------------------------------------------------------------- /meta/lncs.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Lecture Notes in Computer Science (LNCS) 3 | category: generic 4 | subcategory: Springer 5 | citation_style: splncs03 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/ieee_bare_jrnl_compsoc.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Computer Society Journal 3 | category: computers 4 | subcategory: IEEE Transactions 5 | citation_style: IEEEtran 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/imsart_as.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Ann Statistics 3 | category: other 4 | subcategory: Institute of Mathematical Statistics (IMS) 5 | citation_style: imsart-number 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /meta/imsart_aas.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Ann App Statistics 3 | category: other 4 | subcategory: Institute of Mathematical Statistics (IMS) 5 | citation_style: imsart-number 6 | default_packages: 7 | ams: true 8 | latexml: true 9 | babel: true 10 | hyperref: true 11 | natbib: false -------------------------------------------------------------------------------- /test/fixtures/example_scholarly_article.yml: -------------------------------------------------------------------------------- 1 | title: 'An example scholarly article' 2 | short_title: 'Example article' 3 | authors: 4 | - name: 'First Author' 5 | affiliation: 1 6 | - name: 'Second Author' 7 | affiliation: 2 8 | - name: 'Third Author' 9 | affiliations: [1, 2] 10 | 11 | affiliations: 12 | 1: 'Example Organization' 13 | 2: 'Another Organization' 14 | -------------------------------------------------------------------------------- /styles/report.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{report} 2 | \usepackage{fullpage} 3 | 4 | <%=@default_packages%> 5 | 6 | <%=@header%> 7 | 8 | <% if !@alternative_author_string.to_s.empty? %> 9 | <%= @alternative_author_string %> 10 | <% else %> 11 | \author{<%=@first_author%>\\ <%=@first_affiliation%> <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \and <%=@coauthor_list[i]%>\\ <%=@coauthor_affiliations[i]%><% end %><% end %>} 12 | <% end %> 13 | 14 | \title{<%=@title%>} 15 | 16 | \begin{document} 17 | \maketitle 18 | 19 | <%= @abstract_begin_end %> 20 | -------------------------------------------------------------------------------- /styles/book.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{book} 2 | 3 | <%=@default_packages%> 4 | <%=@header%> 5 | 6 | \begin{document} 7 | 8 | <% if !@alternative_author_string.to_s.empty? %> 9 | <%= @alternative_author_string %> 10 | <% else %> 11 | \author{<%=@first_author%>\\ <%=@first_affiliation%> <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \and <%=@coauthor_list[i]%>\\ <%=@coauthor_affiliations[i]%><% end %><% end %>} 12 | <% end %> 13 | 14 | \title{<%=@title%>} 15 | 16 | \maketitle 17 | 18 | \frontmatter 19 | \tableofcontents 20 | \newpage 21 | 22 | 23 | -------------------------------------------------------------------------------- /styles/empty.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | % header.tex 4 | <%=@header%> 5 | 6 | \begin{document} 7 | 8 | % document metadata: 9 | {\centerline{\LARGE{\bf 10 | {<%=@title%>} 11 | }}} 12 | 13 | \bigskip 14 | <% if !@alternative_author_string.to_s.empty? %> 15 | <%= @alternative_author_string %> 16 | <% else %> 17 | \centerline{\bf {<%=@first_author%>}} 18 | <% @coauthor_list.to_a.each do |coau| %>\centerline{\bf {<%=coau%>}} 19 | <% end %> 20 | <% end %> 21 | 22 | \bigskip 23 | 24 | % abstract (optional) 25 | % \section{Abstract} 26 | <%= @abstract %> 27 | 28 | % document body 29 | 30 | -------------------------------------------------------------------------------- /test/helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'bundler' 3 | begin 4 | Bundler.setup(:default, :development) 5 | rescue Bundler::BundlerError => e 6 | $stderr.puts e.message 7 | $stderr.puts "Run `bundle install` to install missing gems" 8 | exit e.status_code 9 | end 10 | require 'minitest/autorun' 11 | require 'minitest/reporters' 12 | 13 | reporter_options = { color: true } 14 | Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(reporter_options)] 15 | 16 | 17 | $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) 18 | $LOAD_PATH.unshift(File.dirname(__FILE__)) 19 | 20 | -------------------------------------------------------------------------------- /styles/apa_doc.tex.erb: -------------------------------------------------------------------------------- 1 | \pdfoutput=1 2 | \documentclass{article} 3 | 4 | <%=@default_packages%> 5 | \usepackage{setspace} 6 | \usepackage{apacite} 7 | 8 | <%=@header%> 9 | 10 | \begin{document} 11 | 12 | \title{<%=@title%>} 13 | <% if !@alternative_author_string.to_s.empty? %> 14 | <%= @alternative_author_string %> 15 | <% else %> 16 | \author{<%=@first_author%>\\ <%=@first_affiliation%> <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \and <%=@coauthor_list[i]%>\\ <%=@coauthor_affiliations[i]%><% end %><% end %>} 17 | <% end %> 18 | 19 | \maketitle 20 | 21 | <%= @abstract_begin_end %> 22 | -------------------------------------------------------------------------------- /styles/article.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage[affil-it]{authblk} 3 | <%=@default_packages%> 4 | <%=@header%> 5 | 6 | 7 | \begin{document} 8 | 9 | \title{<%=@title%>} 10 | 11 | <% if !@alternative_author_string.to_s.empty? %> 12 | <%= @alternative_author_string %> 13 | <% else %> 14 | \author{<%=@first_author%>} 15 | \affil{<%=@first_affiliation%>} 16 | <% if !@coauthor_list.to_a.empty? %> 17 | <% for i in (0..@coauthor_list.length-1) %> 18 | \author{<%=@coauthor_list[i]%>} 19 | \affil{<%=@coauthor_affiliations[i]%>} 20 | <% end %> 21 | <% end %> 22 | <% end %> 23 | 24 | \date{\today} 25 | 26 | \maketitle 27 | 28 | <%= @abstract_begin_end %> 29 | -------------------------------------------------------------------------------- /styles/cernatsnote.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{cernatsnote} 2 | \usepackage{texnames} 3 | %\usepackage[T1]{fontenc} 4 | \usepackage{rotating} 5 | 6 | <%=@default_packages%> 7 | 8 | <%=@header%> 9 | 10 | \pagestyle{plain} 11 | 12 | \begin{document} 13 | 14 | \title{<%=@title%>} 15 | 16 | <% if !@alternative_author_string.to_s.empty? %> 17 | <%= @alternative_author_string %> 18 | <% else %> 19 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%><% end %><% end %>} 20 | <% end %> 21 | 22 | \keywords{} 23 | 24 | \maketitle % this produces the title block 25 | 26 | <%= @abstract_begin_end %> 27 | 28 | 29 | -------------------------------------------------------------------------------- /styles/cv.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{article} 2 | <%=@default_packages%> 3 | <%=@header%> 4 | 5 | \usepackage{titlesec} %custom \section 6 | \titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] 7 | \titlespacing{\section}{0pt}{3pt}{3pt} 8 | 9 | \setlength\parindent{0pt} 10 | 11 | \makeatletter 12 | \renewcommand\@biblabel[1]{} 13 | \makeatother 14 | 15 | \usepackage{geometry} 16 | \geometry{margin=0.75in} 17 | 18 | \usepackage{datetime} 19 | 20 | \newdateformat{monthyeardate}{% 21 | \monthname[\THEMONTH], \THEYEAR} 22 | 23 | 24 | \begin{document} 25 | 26 | \title{\bfseries\large <%=@title%>} 27 | 28 | \date{\vspace{-1.0cm}\monthyeardate\today} 29 | 30 | \maketitle 31 | -------------------------------------------------------------------------------- /lib/texstyles.rb: -------------------------------------------------------------------------------- 1 | require 'texstyles/style' 2 | module Texstyles 3 | @@root = File.expand_path('../..', __FILE__) 4 | 5 | class << self 6 | def root 7 | @@root 8 | end 9 | 10 | def list 11 | Dir.glob(File.join(@@root, 'styles', "*.tex.erb")).map{|path| File.basename(path,'.tex.erb')}.sort 12 | end 13 | 14 | def categories 15 | { 'generic' => "Default", 16 | 'physics' => "Physics & Astronomy", 17 | 'computers' => "CS/Engineering", 18 | 'bio' => "Life Sciences", 19 | 'geo' => "Earth Sciences", 20 | 'other' => "Misc", 21 | 'grants' => "Grant Proposals", 22 | 'thesis' => "University Thesis" 23 | } 24 | end 25 | end 26 | end -------------------------------------------------------------------------------- /styles/aisb2008.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{AISB2008} 2 | \usepackage{times} 3 | \usepackage{graphicx} 4 | \usepackage{latexsym} 5 | <%=@default_packages%> 6 | 7 | <%=@header%> 8 | \begin{document} 9 | 10 | \title{<%=@title%>} 11 | 12 | <% if !@alternative_author_string.to_s.empty? %> 13 | <%= @alternative_author_string %> 14 | <% else %> 15 | \author{<%=@first_author%>\institute{<%=@first_affiliation%>}<% 16 | if !@coauthor_list.to_a.empty? 17 | for i in (0..@coauthor_list.length-1) %> 18 | \and <%=@coauthor_list[i]%>\institute{<%=@coauthor_affiliations[i]%>} 19 | <% end 20 | end %>} 21 | <% end %> 22 | 23 | \maketitle 24 | 25 | <% if !@abstract.to_s.empty? %> 26 | 27 | \begin{abstract} 28 | <%=@abstract%> 29 | \end{abstract} 30 | 31 | <% end %> 32 | -------------------------------------------------------------------------------- /styles/nips.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} % For LaTeX2e 2 | \usepackage{nips13submit_e,times} 3 | 4 | <%=@default_packages%> 5 | 6 | \title{<%=@title%>} 7 | 8 | <% if !@alternative_author_string.to_s.empty? %> 9 | <%= @alternative_author_string %> 10 | <% else %> 11 | \author{<%=@first_author%>\\ <%=@first_affiliation%>\\ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \And <%=@coauthor_list[i]%>\\ <%=@coauthor_affiliations[i]%>\\<% end %><% end %>} 12 | <% end %> 13 | 14 | \newcommand{\fix}{\marginpar{FIX}} 15 | \newcommand{\new}{\marginpar{NEW}} 16 | <%=@header%> 17 | 18 | %\nipsfinalcopy % Uncomment for camera-ready version 19 | 20 | \begin{document} 21 | 22 | 23 | \maketitle 24 | 25 | <%= @abstract_begin_end %> 26 | 27 | -------------------------------------------------------------------------------- /styles/cernyrep.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{cernyrep} 2 | \usepackage{texnames} 3 | %\usepackage[T1]{fontenc} 4 | \usepackage{rotating} 5 | 6 | <%=@default_packages%> 7 | 8 | <%=@header%> 9 | 10 | 11 | \pagestyle{plain} 12 | 13 | \begin{document} 14 | 15 | \title{<%=@title%>} 16 | 17 | <% if !@alternative_author_string.to_s.empty? %> 18 | <%= @alternative_author_string %> 19 | <% else %> 20 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%><% end %><% end %>} 21 | 22 | \institute{<%=@first_affiliation%><% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>, <%=@coauthor_affiliations[i]%><% end %><% end %>} 23 | <% end %> 24 | \maketitle % this produces the title block 25 | 26 | <%= @abstract_begin_end %> 27 | 28 | 29 | -------------------------------------------------------------------------------- /styles/jrss.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{statsoc} 2 | 3 | \usepackage{geometry} 4 | \geometry{papersize={7.444in,9.681in},total={4.8in,6.8in}} 5 | 6 | \usepackage{setspace} 7 | \singlespacing 8 | 9 | <%=@default_packages%> 10 | 11 | <%=@header%> 12 | 13 | 14 | \title[<%=@short_title%>]{<%=@title%>} 15 | <% if !@alternative_author_string.to_s.empty? %> 16 | <%= @alternative_author_string %> 17 | <% else %> 18 | \author[<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>]{<%=@first_author%>} 19 | \address{<%=@first_affiliation%>} 20 | 21 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 22 | \author{<%=@coauthor_list[i]%>} 23 | \address{<%=@coauthor_affiliations[i]%>} 24 | <% end %><% end %> 25 | <% end %> 26 | 27 | \begin{document} 28 | 29 | <%= @abstract_begin_end %> 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /styles/aaai.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[letterpaper]{article} 2 | <%=@default_packages%> 3 | \usepackage{aaai} 4 | \usepackage{times} 5 | \usepackage{helvet} 6 | \usepackage{courier} 7 | \usepackage{times} 8 | 9 | <%=@header%> 10 | 11 | \frenchspacing 12 | \setlength{\pdfpagewidth}{8.5in} 13 | \setlength{\pdfpageheight}{11in} 14 | \setcounter{secnumdepth}{0} 15 | \begin{document} 16 | % The file aaai.sty is the style file for AAAI Press 17 | % proceedings, working notes, and technical reports. 18 | % 19 | 20 | \title{<%=@title%>} 21 | <% if !@alternative_author_string.to_s.empty? %> 22 | <%= @alternative_author_string %> 23 | <% else %> 24 | \author{<%=@first_author%>\\ <%=@first_affiliation%> <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \And <%=@coauthor_list[i]%>\\ <%=@coauthor_affiliations[i]%><% end %><% end %>} 25 | <% end %> 26 | 27 | \maketitle 28 | 29 | <%= @abstract_begin_end %> 30 | -------------------------------------------------------------------------------- /styles/iclr.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} % For LaTeX2e 2 | \usepackage{iclr2015,times} 3 | \usepackage{hyperref} 4 | \usepackage{url} 5 | 6 | <%=@default_packages%> 7 | <%=@header%> 8 | 9 | \title{<%=@title%>} 10 | <% if !@alternative_author_string.to_s.empty? %> 11 | <%= @alternative_author_string %> 12 | <% else %> 13 | \author{ 14 | <%=@first_author%>\\ 15 | <%=@first_affiliation%>\\ 16 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 17 | \And 18 | <%=@coauthor_list[i]%>\\ 19 | <%=@coauthor_affiliations[i]%>\\<% end %><% end %>} 20 | <% end %> 21 | 22 | \newcommand{\fix}{\marginpar{FIX}} 23 | \newcommand{\new}{\marginpar{NEW}} 24 | 25 | %\iclrfinalcopy % Uncomment for camera-ready version 26 | 27 | %\iclrconference % Uncomment if submitted as conference paper instead of workshop 28 | 29 | \begin{document} 30 | 31 | 32 | \maketitle 33 | 34 | <%= @abstract_begin_end %> 35 | 36 | -------------------------------------------------------------------------------- /styles/nature_scirep.tex.erb: -------------------------------------------------------------------------------- 1 | % Template from WL: * 2015-02-09T12:07:31.197Z: 2 | 3 | \documentclass[fleqn,10pt]{wlscirep} 4 | 5 | <%=@default_packages%> 6 | 7 | <%=@header%> 8 | 9 | \title{<%=@title%>} 10 | 11 | <% if !@alternative_author_string.to_s.empty? %> 12 | <%= @alternative_author_string %> 13 | <% else %> 14 | \author[1]{<%=@first_author%>} 15 | <% if !@coauthor_list.to_a.empty? %> 16 | <% for i in (0..@coauthor_list.length-1) %> 17 | \author[<%=i+2%>]{<%=@coauthor_list[i]%>} 18 | <% end %><% end %> 19 | 20 | \affil[1]{<%=@first_affiliation%>} 21 | <% if !@coauthor_list.to_a.empty? %> 22 | <% for i in (0..@coauthor_list.length-1) %> 23 | \affil[<%=i+2%>]{<%=@coauthor_affiliations[i]%>} 24 | <% end %><% end %> 25 | <% end %> 26 | 27 | <%= @abstract_begin_end %> 28 | 29 | \begin{document} 30 | 31 | 32 | \flushbottom 33 | \maketitle 34 | 35 | \thispagestyle{empty} 36 | 37 | -------------------------------------------------------------------------------- /styles/asp.tex.erb: -------------------------------------------------------------------------------- 1 | % This is the aspauthor.tex LaTeX file 2 | % Copyright 2010, Astronomical Society of the Pacific Conference Series 3 | 4 | \documentclass[11pt,twoside]{article} 5 | <%=@default_packages%> 6 | \usepackage{asp2010} 7 | 8 | <%=@header%> 9 | 10 | \resetcounters 11 | 12 | \markboth{<%=@first_author%>}{<%=@short_title%>} 13 | 14 | \begin{document} 15 | 16 | \title{<%=@title%>} 17 | <% if !@alternative_author_string.to_s.empty? %> 18 | <%= @alternative_author_string %> 19 | <% else %> 20 | \author{<%=@first_author%>$^1$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^<%=i+2%>$<% end %><% end %> 21 | \affil{$^1$<%=@first_affiliation%>} 22 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> 23 | \affil{$^<%=i+2%>$<%=@coauthor_affiliations[i]%>}<% end %><% end %>} 24 | <% end %> 25 | <%= @abstract_begin_end %> 26 | 27 | -------------------------------------------------------------------------------- /styles/f1000.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[10pt,a4paper,twocolumn]{article} 2 | <%=@default_packages%> 3 | 4 | \usepackage{f1000_styles} 5 | 6 | <%=@header%> 7 | 8 | \title{<%=@title%>} 9 | 10 | <% if !@alternative_author_string.to_s.empty? %> 11 | <%= @alternative_author_string %> 12 | <% else %> 13 | \author[1]{<%=@first_author%>} 14 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 15 | \author[<%=i+2%>]{<%=@coauthor_list[i]%>} 16 | <% end %><% end %> 17 | 18 | \affil[1]{<%=@first_affiliation%>} 19 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> 20 | \affil[<%=i+2%>]{<%=@coauthor_affiliations[i]%>} 21 | <% end %><% end %> 22 | <% end %> 23 | \begin{document} 24 | 25 | \maketitle 26 | \thispagestyle{fancy} 27 | 28 | <%= @abstract_begin_end %> 29 | 30 | 31 | \clearpage 32 | 33 | %\begin{keywords} 34 | %circumstellar matter -- infrared: stars. 35 | %\end{keywords} 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /styles/bioinformatics.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{bioinfo} 2 | \copyrightyear{2005} 3 | \pubyear{2005} 4 | 5 | <%=@default_packages%> 6 | 7 | <%=@header%> 8 | 9 | \begin{document} 10 | 11 | \firstpage{1} 12 | 13 | \title[<%=@title%>]{<%=@title%>} 14 | <% if !@alternative_author_string.to_s.empty? %> 15 | <%= @alternative_author_string %> 16 | <% else %> 17 | \author[<%=@first_author%> \textit{et~al}]{<%=@first_author%>\,$^{1}$ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> , <%=@coauthor_list[i]%>\,$^{<%=i+2%>}$<% end %><% end %>} 18 | 19 | 20 | \address{$^{1}$<%=@first_affiliation%>\\<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 21 | $^{<%=i+2%>}$<%=@coauthor_list[i]%><% end %><% end %>} 22 | <% end %> 23 | 24 | \history{Received on XXXXX; revised on XXXXX; accepted on XXXXX} 25 | 26 | \editor{Associate Editor: XXXXXXX} 27 | 28 | \maketitle 29 | 30 | <%= @abstract_begin_end %> 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /test/render_test.rb: -------------------------------------------------------------------------------- 1 | require 'helper' 2 | require 'texstyles' 3 | 4 | class RenderTest < Minitest::Test 5 | def setup 6 | @example_metadata = YAML.load(File.read(File.join('test','fixtures','example_scholarly_article.yml'))) 7 | end 8 | 9 | def test_can_render_without_metadata 10 | authorea_style = Texstyles::Style.new(:authorea) 11 | rendered_latex = authorea_style.stylize_metadata 12 | 13 | assert rendered_latex.include?('\\documentclass{article}') 14 | assert rendered_latex.include?('\\begin{document}') 15 | end 16 | 17 | def test_can_render_basic_with_metadata 18 | authorea_style = Texstyles::Style.new(:article) 19 | rendered_latex = authorea_style.stylize_metadata(@example_metadata) 20 | 21 | assert rendered_latex.include?('\\documentclass{article}') 22 | assert rendered_latex.include?('\\begin{document}') 23 | assert rendered_latex.include?('First Author') 24 | assert rendered_latex.include?('\author{Third Author}') 25 | assert rendered_latex.include?('\affil{Example Organization}') 26 | 27 | end 28 | end 29 | -------------------------------------------------------------------------------- /styles/nature.tex.erb: -------------------------------------------------------------------------------- 1 | %% Template for a preprint Letter or Article for submission 2 | %% to the journal Nature. 3 | %% Written by Peter Czoschke, 26 February 2004 4 | %% 5 | 6 | \documentclass{nature} 7 | 8 | %% make sure you have the nature.cls and naturemag.bst files where 9 | %% LaTeX can find them 10 | 11 | <%=@default_packages%> 12 | 13 | <%=@header%> 14 | 15 | \title{<%=@title%>} 16 | 17 | %% Notice placement of commas and superscripts and use of & 18 | %% in the author list 19 | <% if !@alternative_author_string.to_s.empty? %> 20 | <%= @alternative_author_string %> 21 | <% else %> 22 | \author{<%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %>} 23 | <% end %> 24 | \begin{document} 25 | 26 | \maketitle 27 | 28 | \begin{affiliations} 29 | \item <%=@first_affiliation%> 30 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> 31 | \item <%=@coauthor_affiliations[i]%><% end %><% end %> 32 | \end{affiliations} 33 | 34 | <%= @abstract_begin_end %> 35 | -------------------------------------------------------------------------------- /styles/alma.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[12pt,a4paper]{article} 2 | 3 | \usepackage{graphics} 4 | \usepackage[american]{babel} 5 | <%=@default_packages %> 6 | 7 | 8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%% 9 | %%%%%% Page dimensions %%%%% 10 | %%%%%% DO NOT CHANGE %%%%% 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | 13 | \textheight=247mm 14 | \textwidth=180mm 15 | \topmargin=-7mm 16 | \oddsidemargin=-10mm 17 | \evensidemargin=-10mm 18 | \parindent=10pt 19 | 20 | <%=@header%> 21 | 22 | 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | %%%%% Start of document %%%%% 25 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 26 | 27 | \begin{document} 28 | \pagestyle{plain} 29 | \pagenumbering{arabic} 30 | 31 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 32 | %%%%% Title of proposal %%%%% 33 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 34 | 35 | \begin{center} 36 | {\LARGE{\bf 37 | {<%=@title%>} 38 | }} 39 | \end{center} 40 | \bigskip 41 | <% if !@alternative_author_string.to_s.empty? %> 42 | <%= @alternative_author_string %> 43 | <% else %> 44 | \centerline{\bf PI: 45 | {<%=@first_author%>}} 46 | <% end %> 47 | 48 | \bigskip 49 | 50 | 51 | \section{Abstract} 52 | <%= @abstract %> 53 | 54 | -------------------------------------------------------------------------------- /styles/geophysics.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[manuscript,revised]{geophysics} 2 | 3 | <%=@default_packages%> 4 | 5 | % An example of defining macros 6 | \newcommand{\rs}[1]{\mathstrut\mbox{\scriptsize\rm #1}} 7 | \newcommand{\rr}[1]{\mbox{\rm #1}} 8 | 9 | <%=@header%> 10 | 11 | \begin{document} 12 | 13 | \title{<%=@title%>} 14 | 15 | \renewcommand{\thefootnote}{\fnsymbol{footnote}} 16 | 17 | %\ms{} % manuscript number 18 | <% if !@alternative_author_string.to_s.empty? %> 19 | <%= @alternative_author_string %> 20 | <% else %> 21 | \address{ 22 | \footnotemark[1]<%=@first_affiliation%><% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 23 | \footnotemark[<%=i+2%>]<%=@coauthor_affiliations[i]%><% end %><% end %> 24 | } 25 | 26 | \author{<%=@first_author%>\footnotemark[1]<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> and <%=@coauthor_list[i]%>\footnotemark[<%=i+2%>]<% end %><% end %>} 27 | 28 | %\footer{} 29 | \lefthead{<%=@first_author%>} 30 | <% end %> 31 | \righthead{<%=@title%>} 32 | 33 | \maketitle 34 | 35 | <%= @abstract_begin_end %> 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /texstyles.gemspec: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | Gem::Specification.new do |spec| 3 | spec.name = "texstyles" 4 | spec.version = "0.0.9" 5 | 6 | spec.authors = ["Deyan Ginev"] 7 | spec.email = ["deyan@authorea.com"] 8 | 9 | spec.summary = %q{A collection of styling templates for LaTeX documents, with a focus on scholarly manuscripts} 10 | spec.description = %q{Hundreds of styles fueling Authorea.com's exporter to PDF. Use with the "exportstylist" gem for a Ruby API.} 11 | spec.homepage = "https://github.com/Authorea/texstyles" 12 | spec.license = "MIT" 13 | 14 | spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } 15 | spec.require_paths = ["lib"] 16 | 17 | spec.add_dependency 'escape_utils', '~> 1.2' 18 | spec.add_dependency 'json', '~> 1.8' 19 | 20 | spec.add_development_dependency "bundler", "~> 1.12" 21 | spec.add_development_dependency "rake", "~> 10.0" 22 | spec.add_development_dependency "minitest", "~> 5.0" 23 | spec.add_development_dependency "minitest-reporters", "~> 1.1" 24 | 25 | end 26 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Deyan Ginev 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /example/example_stylize.rb: -------------------------------------------------------------------------------- 1 | require 'texstyles' 2 | 3 | header = '% Header goes here' 4 | abstract = '% Abstract goes here' 5 | 6 | metadata = { 7 | 'title' => 'An example scholarly article', 8 | 'short_title' => 'Example article', 9 | 'authors' => [ 10 | { 'name' => 'First Author', 11 | 'affiliation' => 1}, 12 | { 'name' => 'Second Author', 13 | 'affiliation' => 2}, 14 | { 'name' => 'Third Author', 15 | 'affiliations' => [1, 2]} 16 | ], 17 | 'affiliations' => { 18 | 1 => 'Example Organization', 19 | 2 => 'Another Organization' 20 | }, 21 | 'header' => header, 22 | 'abstract' => abstract 23 | } 24 | 25 | 26 | # Choose any available Texstyles::Style here 27 | # Full list can be fetched via: Texstyles::Style.list 28 | authorea_style = Texstyles::Style.new(:authorea) 29 | 30 | # To obtain the correct latex preamble for the given style: 31 | stylized_preamble = authorea_style.stylize_metadata(metadata) 32 | 33 | # Then piece together a document by hand (or use the texstylist gem for further automation) 34 | stylized_document = stylized_preamble + "a basic example\n" + "\\end{document}" 35 | 36 | # Enjoy! 37 | puts stylized_document -------------------------------------------------------------------------------- /styles/mnras.tex.erb: -------------------------------------------------------------------------------- 1 | %\documentclass[referee,usenatbib]{mn2e} 2 | \documentclass[usenatbib]{mn2e} 3 | 4 | <%=@default_packages%> 5 | 6 | %\usepackage{natbib} 7 | 8 | <%=@header%> 9 | 10 | \title[<%=@title%>]{<%=@title%>} 11 | 12 | <% if !@alternative_author_string.to_s.empty? %> 13 | <%= @alternative_author_string %> 14 | <% else %> 15 | \author[<%=@first_author%>]{<%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %>\\ 16 | $^{1}$<%=@first_affiliation%> 17 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>\\ 18 | $^{<%=i+2%>}$<%=@coauthor_affiliations[i]%><% end %><% end %>} 19 | <% end %> 20 | 21 | \begin{document} 22 | 23 | %\date{Accepted 1988 December 15. Received 1988 December 14; in original form 1988 October 11} 24 | 25 | %\pagerange{\pageref{firstpage}--\pageref{lastpage}} \pubyear{2002} 26 | 27 | \maketitle 28 | 29 | \label{firstpage} 30 | 31 | <%= @abstract_begin_end %> 32 | 33 | 34 | %\begin{keywords} 35 | %circumstellar matter -- infrared: stars. 36 | %\end{keywords} 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /styles/jinst.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{article} 2 | \pdfoutput=1 % if your are submitting a pdflatex (i.e. if you have 3 | % images in pdf, png or jpg format) 4 | 5 | \usepackage{jinstpub} % for details on the use of the package, please 6 | % see the JINST-author-manual 7 | 8 | <%=@default_packages%> 9 | 10 | <%=@header%> 11 | 12 | \title{<%=@title%>} 13 | 14 | 15 | <% if !@alternative_author_string.to_s.empty? %> 16 | <%= @alternative_author_string %> 17 | <% else %> 18 | \author[a]{<%=@first_author%>} 19 | \affiliation[a]{<%=@first_affiliation%>} 20 | <% end %> 21 | 22 | \abstract{<%= @abstract %>} 23 | 24 | %\keywords{Only keywords from JINST's keywords list please} 25 | 26 | 27 | %\arxivnumber{1234.56789} % only if you have one 28 | 29 | 30 | % \collaboration{\includegraphics[height=17mm]{example-image}\\[6pt] 31 | % XXX collaboration} 32 | % or 33 | %\collaboration[c]{on behalf of XXX collaboration} 34 | 35 | 36 | % if you write for a special issue this may be useful 37 | %\proceeding{N$^{\text{th}}$ Workshop on X\\ 38 | % when\\ 39 | % where} 40 | 41 | 42 | 43 | \begin{document} 44 | \maketitle 45 | \flushbottom 46 | 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | *.rbc 3 | /.config 4 | /coverage/ 5 | /InstalledFiles 6 | /pkg/ 7 | /spec/reports/ 8 | /spec/examples.txt 9 | /test/tmp/ 10 | /test/version_tmp/ 11 | /tmp/ 12 | 13 | # Used by dotenv library to load environment variables. 14 | # .env 15 | 16 | ## Specific to RubyMotion: 17 | .dat* 18 | .repl_history 19 | build/ 20 | *.bridgesupport 21 | build-iPhoneOS/ 22 | build-iPhoneSimulator/ 23 | 24 | ## Specific to RubyMotion (use of CocoaPods): 25 | # 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 29 | # 30 | # vendor/Pods/ 31 | 32 | ## Documentation cache and generated files: 33 | /.yardoc/ 34 | /_yardoc/ 35 | /doc/ 36 | /rdoc/ 37 | 38 | ## Environment normalization: 39 | /.bundle/ 40 | /vendor/bundle 41 | /lib/bundler/man/ 42 | 43 | # for a library or gem, you might want to ignore these files since the code is 44 | # intended to run in multiple environments; otherwise, check them in: 45 | Gemfile.lock 46 | .ruby-version 47 | .ruby-gemset 48 | 49 | # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: 50 | .rvmrc -------------------------------------------------------------------------------- /styles/hst.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % 3 | % phase1-GO.tex (use only for General Observer and Snapshot proposals; 4 | % use phase1-AR.tex for Archival Research and 5 | % Theory proposals use phase1-DD.tex for GO/DD proposals). 6 | % 7 | % HUBBLE SPACE TELESCOPE 8 | % PHASE I OBSERVING PROPOSAL TEMPLATE 9 | % FOR CYCLE 22 (2014) 10 | % 11 | % Version 1.0, January 06, 2014. 12 | % 13 | % Guidelines and assistance 14 | % ========================= 15 | % Cycle 22 Announcement Web Page: 16 | % 17 | % http://www.stsci.edu/hst/proposing/docs/cycle22announce 18 | % 19 | % Please contact the STScI Help Desk if you need assistance with any 20 | % aspect of proposing for and using HST. Either send e-mail to 21 | % help@stsci.edu, or call 1-800-544-8125; from outside the United 22 | % States, call [1] 410-338-1082. 23 | % 24 | % 25 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 26 | 27 | % The template begins here. Please do not modify the font size from 12 point. 28 | 29 | \documentclass[12pt]{article} 30 | <%= @default_packages %> 31 | 32 | \usepackage{phase1} 33 | <%=@header%> 34 | 35 | \begin{document} 36 | 37 | 38 | -------------------------------------------------------------------------------- /styles/ifac.tex.erb: -------------------------------------------------------------------------------- 1 | %=============================================================================== 2 | % $Id: ifacconf.tex 19 2011-10-27 09:32:13Z jpuente $ 3 | % Template for IFAC meeting papers 4 | % Copyright (c) 2007-2008 International Federation of Automatic Control 5 | %=============================================================================== 6 | \documentclass{ifacconf} 7 | 8 | %\usepackage{graphicx} % include this line if your document contains figures 9 | %\usepackage{natbib} % required for bibliography 10 | <%=@default_packages%> 11 | <%=@header%> 12 | 13 | %=============================================================================== 14 | \begin{document} 15 | 16 | \begin{frontmatter} 17 | 18 | \title{<%=@title%>} 19 | % Title, preferably not more than 10 words. 20 | 21 | <% if !@alternative_author_string.to_s.empty? %> 22 | <%= @alternative_author_string %> 23 | <% else %> 24 | \author[First]{<%=@first_author%>} 25 | \address[First]{<%=@first_affiliation%>} 26 | <% end %> 27 | 28 | 29 | <%= @abstract_begin_end %> 30 | 31 | %\begin{keyword} 32 | %Five to ten keywords, preferably chosen from the IFAC keyword list. 33 | %\end{keyword} 34 | 35 | \end{frontmatter} 36 | %=============================================================================== 37 | -------------------------------------------------------------------------------- /styles/jfm.tex.erb: -------------------------------------------------------------------------------- 1 | % This is file JFM2esam.tex 2 | % first release v1.0, 20th October 1996 3 | % release v1.01, 29th October 1996 4 | % release v1.1, 25th June 1997 5 | % release v2.0, 27th July 2004 6 | % release v3.0, 16th July 2014 7 | % (based on JFMsampl.tex v1.3 for LaTeX2.09) 8 | % Copyright (C) 1996, 1997, 2014 Cambridge University Press 9 | 10 | \documentclass{jfm} 11 | \usepackage{graphicx} 12 | \usepackage{epstopdf, epsfig} 13 | 14 | 15 | <%=@default_packages%> 16 | 17 | <%=@header%> 18 | 19 | \newtheorem{lemma}{Lemma} 20 | \newtheorem{corollary}{Corollary} 21 | 22 | \shorttitle{<%=@short_title%>} 23 | \shortauthor{<%=@first_author%>} 24 | 25 | \title{<%=@title%>} 26 | 27 | 28 | <% if !@alternative_author_string.to_s.empty? %> 29 | <%= @alternative_author_string %> 30 | <% else %> 31 | \author{<%=@first_author%>\aff{1}<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, \and <%=@coauthor_list[i]%>\affil{<%=i+2%>}<% end %><% end %>} 32 | 33 | \affiliation{\aff{1}<%=@first_affiliation%> 34 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>\aff{<%=i+2%>}<%=@coauthor_affiliations[i]%><% end %><% end %>} 35 | 36 | <% end %> 37 | 38 | \begin{document} 39 | 40 | \maketitle 41 | 42 | <%= @abstract_begin_end %> 43 | 44 | -------------------------------------------------------------------------------- /styles/peerj.tex.erb: -------------------------------------------------------------------------------- 1 | %% Submissions for peer-review must enable line-numbering 2 | %% using the lineno option in the \documentclass command. 3 | %% 4 | %% Preprints and camera-ready submissions do not need 5 | %% line numbers, and should have this option removed. 6 | %% 7 | %% Please note that the line numbering option requires 8 | %% version 1.1 or newer of the wlpeerj.cls file. 9 | 10 | \documentclass[fleqn,10pt,lineno]{wlpeerj} % for journal submissions 11 | % \documentclass[fleqn,10pt]{wlpeerj} % for preprint submissions 12 | 13 | 14 | <%=@default_packages%> 15 | 16 | <%=@header%> 17 | 18 | \title{<%=@title%>} 19 | 20 | \keywords{} % empty for now, contact help@authorea.com to request support 21 | 22 | <% if !@alternative_author_string.to_s.empty? %> 23 | <%= @alternative_author_string %> 24 | <% else %> 25 | \author[1]{<%=@first_author%>} 26 | <% if !@coauthor_list.to_a.empty? %> 27 | <% for i in (0..@coauthor_list.length-1) %> 28 | \author[<%=i+2%>]{<%=@coauthor_list[i]%>} 29 | <% end %><% end %> 30 | 31 | \affil[1]{<%=@first_affiliation%>} 32 | <% if !@coauthor_list.to_a.empty? %> 33 | <% for i in (0..@coauthor_list.length-1) %> 34 | \affil[<%=i+2%>]{<%=@coauthor_affiliations[i]%>} 35 | <% end %><% end %> 36 | <% end %> 37 | 38 | <%= @abstract_begin_end %> 39 | 40 | \begin{document} 41 | 42 | \flushbottom 43 | \maketitle 44 | \thispagestyle{empty} 45 | 46 | -------------------------------------------------------------------------------- /styles/uchicago.tex.erb: -------------------------------------------------------------------------------- 1 | % ---- ETD Document Class and Useful Packages ---- % 2 | \documentclass{ucetd} 3 | \usepackage{subfigure,epsfig,amsfonts} 4 | %\usepackage{natbib} 5 | %\usepackage{amsmath} 6 | %\usepackage{amssymb} 7 | %\usepackage{amsthm} 8 | 9 | <%=@default_packages%> 10 | <%=@header%> 11 | 12 | %% Use these commands to set biographic information for the title page: 13 | \title{<%=@title%>} 14 | <% if !@alternative_author_string.to_s.empty? %> 15 | <%= @alternative_author_string %> 16 | <% else %> 17 | \author{<%=@first_author%>} 18 | <% end %> 19 | \department{Thesis Department} 20 | \division{Thesis Division} 21 | \degree{Type of Degree} 22 | \date{Graduation Date} 23 | 24 | %% Use these commands to set a dedication and epigraph text 25 | %\dedication{Dedication Text} 26 | %\epigraph{Epigraph Text} 27 | 28 | 29 | \begin{document} 30 | %% Basic setup commands 31 | % If you don't want a title page comment out the next line and uncomment the line after it: 32 | \maketitle 33 | %\omittitle 34 | 35 | % These lines can be commented out to disable the copyright/dedication/epigraph pages 36 | %\makecopyright 37 | %\makededication 38 | %\makeepigraph 39 | 40 | 41 | %% Make the various tables of contents 42 | %\tableofcontents 43 | %\listoffigures 44 | %\listoftables 45 | 46 | %\acknowledgments 47 | % Enter Acknowledgements here 48 | 49 | \abstract 50 | <%=@abstract%> 51 | 52 | \mainmatter 53 | 54 | -------------------------------------------------------------------------------- /styles/umich.tex.erb: -------------------------------------------------------------------------------- 1 | % Use the University of Michigan thesis class. 2 | \documentclass[thesis]{thesis-umich} 3 | 4 | 5 | <%=@default_packages%> 6 | 7 | <%=@header%> 8 | 9 | % Title of the thesis 10 | \title{<%=@title%>} 11 | 12 | % Author name 13 | \author{<%=@first_author%>} 14 | 15 | % Department 16 | \department{Department} 17 | 18 | % Year of completion 19 | \year=2016 20 | 21 | % Frontispiece 22 | \frontispiece{} 23 | 24 | % Default style for front pages 25 | \frontpagestyle{1} 26 | 27 | % Dedication 28 | \dedication{ % 29 | Dedication} 30 | 31 | % Acknowledgments 32 | \acknowledgments[6]{ % 33 | Acknowledgments} 34 | % This command sets the width of the acknowledgments area as a fraction 35 | % of the total width of the text area. 36 | \acknowledgmentswidth{0.8} 37 | 38 | % Preface 39 | \preface[2]{ % 40 | Preface} 41 | 42 | % Committee 43 | \committee{ % 44 | Committee} 45 | 46 | % Chair must be entered separately for formatting reasons. 47 | \chair{Chair} 48 | 49 | % Commands to hide or show lists of figures, tables, etc. 50 | %\hidelistoftables 51 | \showlistofprograms 52 | \showlistofappendices 53 | 54 | % Definition of any abbreviations used. 55 | \abbreviations{ 56 | } 57 | 58 | % Using AIAA bibliography style since I'm in aero. 59 | 60 | % Some abstract text 61 | \abstract{<%= @abstract %>} 62 | %\hideabstractpagenumber 63 | 64 | %% DOCUMENT AREA 65 | \begin{document} 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /styles/development.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[10pt,a4paper]{article} 2 | 3 | <%=@default_packages%> 4 | \usepackage[usenames,dvipsnames]{xcolor} 5 | \hypersetup{colorlinks=true,linkcolor=BrickRed,citecolor=OliveGreen,urlcolor=MidnightBlue} 6 | 7 | % Use doublespacing 8 | \usepackage{setspace} 9 | \doublespacing 10 | 11 | % Text layout 12 | \topmargin 0.0cm 13 | \oddsidemargin 0.5cm 14 | \evensidemargin 0.5cm 15 | \textwidth 16cm 16 | \textheight 21cm 17 | 18 | % Figure labels 19 | \usepackage[labelfont=bf,labelsep=endash,justification=raggedright]{caption} 20 | 21 | % Leave date blank 22 | \date{} 23 | 24 | <%=@header%> 25 | 26 | 27 | \begin{document} 28 | % \linenumbers 29 | 30 | \begin{flushleft} 31 | {\LARGE 32 | \textbf{<%=@title%>} 33 | } 34 | % Insert Author names, affiliations and corresponding author email. 35 | <% if !@alternative_author_string.to_s.empty? %> 36 | <%= @alternative_author_string %> 37 | <% else %> 38 | \\ 39 | <%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %> 40 | \\ 41 | {\bf 1} <%=@first_affiliation%> 42 | \\ 43 | 44 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> 45 | {\bf <%=i+2%>} <%=@coauthor_affiliations[i]%> 46 | \\<% end %><% end %> 47 | <% end %> 48 | 49 | \end{flushleft} 50 | 51 | <% if @abstract && !@abstract.empty? %> 52 | \section*{Abstract} 53 | <%=@abstract%> 54 | <% end %> 55 | 56 | -------------------------------------------------------------------------------- /styles/gji.tex.erb: -------------------------------------------------------------------------------- 1 | % gjilguid2e.tex 2 | % V2.0 released 1998 December 18 3 | % V2.1 released 2003 October 7 -- Gregor Hutton, updated the web address for the style files. 4 | 5 | \documentclass{gji} 6 | \usepackage{timet} 7 | 8 | <%=@default_packages%> 9 | <%=@header%> 10 | 11 | \title[<%=@short_title%>] 12 | {<%=@title%>} 13 | 14 | <% if !@alternative_author_string.to_s.empty? %> 15 | <%= @alternative_author_string %> 16 | <% else %> 17 | \author[<%=@first_author%>] 18 | {<%=@first_author%>$^1$ \\ 19 | $^1$ <%=@first_affiliation%> 20 | } 21 | <% end %> 22 | 23 | %\date{Received 1998 December 18; in original form 1998 November 22} 24 | %\pagerange{\pageref{firstpage}--\pageref{lastpage}} 25 | %\volume{200} 26 | %\pubyear{1998} 27 | 28 | %\def\LaTeX{L\kern-.36em\raise.3ex\hbox{{\small A}}\kern-.15em 29 | % T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX} 30 | %\def\LATeX{L\kern-.36em\raise.3ex\hbox{{\Large A}}\kern-.15em 31 | % T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX} 32 | % Authors with AMS fonts and mssymb.tex can comment out the following 33 | % line to get the correct symbol for Geophysical Journal International. 34 | \let\leqslant=\leq 35 | 36 | \newtheorem{theorem}{Theorem}[section] 37 | 38 | \begin{document} 39 | 40 | \label{firstpage} 41 | 42 | \maketitle 43 | 44 | 45 | \begin{summary} 46 | <%= @abstract %> 47 | \end{summary} 48 | 49 | %\begin{keywords} 50 | % \LaTeXe\ -- class files: \verb"gji.cls"\ -- sample text -- user guide. 51 | %\end{keywords} 52 | -------------------------------------------------------------------------------- /styles/jxb.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[10pt,a4paper]{article} 2 | 3 | <%=@default_packages%> 4 | \usepackage[usenames,dvipsnames]{xcolor} 5 | \hypersetup{colorlinks=true,linkcolor=BrickRed,citecolor=OliveGreen,urlcolor=MidnightBlue} 6 | 7 | % Use doublespacing 8 | \usepackage{setspace} 9 | 10 | %\usepackage{babel} 11 | \doublespacing 12 | 13 | % Text layout 14 | \topmargin 0.0cm 15 | \oddsidemargin 0.5cm 16 | \evensidemargin 0.5cm 17 | \textwidth 16cm 18 | \textheight 21cm 19 | 20 | % Figure labels 21 | \usepackage[labelfont=bf,labelsep=endash,justification=raggedright]{caption} 22 | 23 | % Leave date blank 24 | \date{} 25 | 26 | <%=@header%> 27 | 28 | 29 | \begin{document} 30 | % \linenumbers 31 | 32 | \begin{flushleft} 33 | {\LARGE 34 | \textbf{<%=@title%>} 35 | } 36 | % Insert Author names, affiliations and corresponding author email. 37 | \\ 38 | <% if !@alternative_author_string.to_s.empty? %> 39 | <%= @alternative_author_string %> 40 | <% else %> 41 | <%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %> 42 | \\ 43 | {\bf 1} <%=@first_affiliation%> 44 | \\ 45 | 46 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> 47 | {\bf <%=i+2%>} <%=@coauthor_affiliations[i]%> 48 | \\<% end %><% end %> 49 | <% end %> 50 | \end{flushleft} 51 | 52 | <% if @abstract && !@abstract.empty? %> 53 | \section*{Abstract} 54 | <%=@abstract%> 55 | <% end %> 56 | 57 | -------------------------------------------------------------------------------- /styles/authorea.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{fullpage} 3 | \usepackage{parskip} 4 | \usepackage{titlesec} 5 | \usepackage{graphicx} 6 | \usepackage{xcolor} 7 | \usepackage[colorlinks = true, 8 | linkcolor = blue, 9 | urlcolor = blue, 10 | citecolor = blue, 11 | anchorcolor = blue]{hyperref} 12 | \usepackage{apacite} 13 | \usepackage{eso-pic} 14 | \AddToShipoutPictureBG{\AtPageLowerLeft{\includegraphics[scale=0.7]{powered-by-Authorea-watermark.png}}} 15 | 16 | \renewenvironment{abstract} 17 | {{\bfseries\noindent{\large\abstractname}\par\nobreak}} 18 | {} 19 | 20 | \renewenvironment{quote} 21 | {\begin{tabular}{|p{13cm}}} 22 | {\end{tabular}} 23 | 24 | \titlespacing{\section}{0pt}{*3}{*1} 25 | \titlespacing{\subsection}{0pt}{*2}{*0.5} 26 | \titlespacing{\subsubsection}{0pt}{*1.5}{0pt} 27 | 28 | \usepackage{authblk} 29 | \makeatletter 30 | \renewcommand\AB@authnote[1]{\rlap{\textsuperscript{\normalfont#1}}} 31 | \renewcommand\Authsep{,~\,} 32 | \renewcommand\Authands{,~\,and } 33 | \makeatother 34 | 35 | <%=@default_packages%> 36 | <%=@header%> 37 | 38 | \begin{document} 39 | 40 | \title{<%=@title%>} 41 | 42 | <% if !@alternative_author_string.to_s.empty? %> 43 | <%= @alternative_author_string %> 44 | <% else %> 45 | \author[ ]{<%=@first_author%>} 46 | <% @coauthor_list.to_a.each do |coau| %>\author[ ]{<%=coau%>} 47 | <% end %> 48 | \affil[ ]{} 49 | \vspace{-1em} 50 | <% end %> 51 | 52 | \date{} 53 | 54 | \begingroup 55 | \let\center\flushleft 56 | \let\endcenter\endflushleft 57 | \maketitle 58 | \endgroup 59 | 60 | <%= @abstract_begin_end %> 61 | -------------------------------------------------------------------------------- /styles/acl.tex.erb: -------------------------------------------------------------------------------- 1 | % 2 | % File acl2014.tex 3 | % 4 | % Contact: koller@ling.uni-potsdam.de, yusuke@nii.ac.jp 5 | %% 6 | %% Based on the style files for ACL-2013, which were, in turn, 7 | %% Based on the style files for ACL-2012, which were, in turn, 8 | %% based on the style files for ACL-2011, which were, in turn, 9 | %% based on the style files for ACL-2010, which were, in turn, 10 | %% based on the style files for ACL-IJCNLP-2009, which were, in turn, 11 | %% based on the style files for EACL-2009 and IJCNLP-2008... 12 | 13 | %% Based on the style files for EACL 2006 by 14 | %%e.agirre@ehu.es or Sergi.Balari@uab.es 15 | %% and that of ACL 08 by Joakim Nivre and Noah Smith 16 | 17 | \documentclass[11pt]{article} 18 | <%=@default_packages%> 19 | \usepackage{acl2014} 20 | \usepackage{times} 21 | %\usepackage{url} 22 | %\usepackage{latexsym} 23 | 24 | 25 | %\setlength\titlebox{5cm} 26 | 27 | % You can expand the titlebox if you need extra space 28 | % to show all the authors. Please do not make the titlebox 29 | % smaller than 5cm (the original size); we will check this 30 | % in the camera-ready version and ask you to change it back. 31 | 32 | <%=@header%> 33 | 34 | 35 | \title{<%=@title%>} 36 | <% if !@alternative_author_string.to_s.empty? %> 37 | <%= @alternative_author_string %> 38 | <% else %> 39 | \author{<%=@first_author%>\\ <%=@first_affiliation%>\\ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \And <%=@coauthor_list[i]%>\\ <%=@coauthor_affiliations[i]%>\\<% end %><% end %>} 40 | <% end %> 41 | \date{} 42 | 43 | \begin{document} 44 | \maketitle 45 | <%= @abstract_begin_end %> 46 | 47 | -------------------------------------------------------------------------------- /styles/doe.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[12pt]{article} 2 | 3 | % Set the margins to 1 inch at all sides 4 | \usepackage[ 5 | paper=letterpaper, 6 | lmargin=1in, 7 | rmargin=1in, 8 | tmargin=1in, 9 | bmargin=1in]{geometry} 10 | 11 | % Modify the captions so that they look better, the way I like them at least... 12 | \usepackage[font={small,bf},textfont=md,format=hang,margin=20pt, 13 | singlelinecheck=false]{caption} 14 | 15 | % Make fancy headers and everything... 16 | \usepackage{fancyhdr} 17 | \pagestyle{fancy} 18 | % Headers - left, center and right. 19 | \lhead{Topic} 20 | \chead{Proposal} 21 | \rhead{<%=@short_title%>} 22 | % Footers - as before 23 | \cfoot{\small \thepage} 24 | \renewcommand{\headrulewidth}{0.5pt} 25 | \renewcommand{\footrulewidth}{0.5pt} 26 | 27 | \fancypagestyle{plain}{% 28 | \fancyhead{} % get rid of headers on plain pages 29 | \renewcommand{\headrulewidth}{0pt} % and the line 30 | } 31 | 32 | <%=@default_packages%> 33 | 34 | <%=@header%> 35 | 36 | 37 | % Use the times package to change font if you really have to.... 38 | \usepackage{times} 39 | \usepackage[affil-it]{authblk} 40 | 41 | 42 | \begin{document} 43 | 44 | \title{<%=@title%>} 45 | <% if !@alternative_author_string.to_s.empty? %> 46 | <%= @alternative_author_string %> 47 | <% else %> 48 | \author{<%=@first_author%>} 49 | \affil{<%=@first_affiliation%>} 50 | <% if !@coauthor_list.to_a.empty? %> 51 | <% for i in (0..@coauthor_list.length-1) %> 52 | \author{<%=@coauthor_list[i]%>} 53 | \affil{<%=@coauthor_affiliations[i]%>} 54 | <% end %> 55 | <% end %> 56 | <% end %> 57 | 58 | \maketitle 59 | 60 | <%= @abstract_begin_end %> 61 | 62 | 63 | -------------------------------------------------------------------------------- /styles/authorea-double.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{fullpage} 3 | \usepackage{parskip} 4 | \usepackage{setspace} 5 | \usepackage{titlesec} 6 | \usepackage{graphicx} 7 | \usepackage{xcolor} 8 | \usepackage[colorlinks = true, 9 | linkcolor = blue, 10 | urlcolor = blue, 11 | citecolor = blue, 12 | anchorcolor = blue]{hyperref} 13 | \usepackage{apacite} 14 | \usepackage{eso-pic} 15 | \AddToShipoutPictureBG{\AtPageLowerLeft{\includegraphics[scale=0.7]{powered-by-Authorea-watermark.png}}} 16 | 17 | \renewenvironment{abstract} 18 | {{\bfseries\noindent{\large\abstractname}\par\nobreak}} 19 | {} 20 | 21 | \renewenvironment{quote} 22 | {\begin{tabular}{|p{13cm}}} 23 | {\end{tabular}} 24 | 25 | \titlespacing{\section}{0pt}{*3}{*1} 26 | \titlespacing{\subsection}{0pt}{*2}{*0.5} 27 | \titlespacing{\subsubsection}{0pt}{*1.5}{0pt} 28 | 29 | \usepackage{authblk} 30 | \makeatletter 31 | \renewcommand\AB@authnote[1]{\rlap{\textsuperscript{\normalfont#1}}} 32 | \renewcommand\Authsep{,~\,} 33 | \renewcommand\Authands{,~\,and } 34 | \makeatother 35 | 36 | <%=@default_packages%> 37 | <%=@header%> 38 | 39 | \begin{document} 40 | 41 | \title{<%=@title%>} 42 | 43 | <% if !@alternative_author_string.to_s.empty? %> 44 | <%= @alternative_author_string %> 45 | <% else %> 46 | \author[ ]{<%=@first_author%>} 47 | <% @coauthor_list.to_a.each do |coau| %>\author[ ]{<%=coau%>} 48 | <% end %> 49 | \affil[ ]{} 50 | \vspace{-1em} 51 | <% end %> 52 | 53 | \date{} 54 | 55 | \begingroup 56 | \let\center\flushleft 57 | \let\endcenter\endflushleft 58 | \maketitle 59 | \endgroup 60 | 61 | \doublespacing 62 | 63 | <%= @abstract_begin_end %> 64 | -------------------------------------------------------------------------------- /styles/authorea-numbered.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{fullpage} 3 | \usepackage{parskip} 4 | \usepackage{titlesec} 5 | \usepackage{graphicx} 6 | \usepackage{xcolor} 7 | \usepackage{lineno} 8 | \usepackage[colorlinks = true, 9 | linkcolor = blue, 10 | urlcolor = blue, 11 | citecolor = blue, 12 | anchorcolor = blue]{hyperref} 13 | \usepackage{apacite} 14 | \usepackage{eso-pic} 15 | \AddToShipoutPictureBG{\AtPageLowerLeft{\includegraphics[scale=0.7]{powered-by-Authorea-watermark.png}}} 16 | 17 | \renewenvironment{abstract} 18 | {{\bfseries\noindent{\large\abstractname}\par\nobreak}} 19 | {} 20 | 21 | \renewenvironment{quote} 22 | {\begin{tabular}{|p{13cm}}} 23 | {\end{tabular}} 24 | 25 | \titlespacing{\section}{0pt}{*3}{*1} 26 | \titlespacing{\subsection}{0pt}{*2}{*0.5} 27 | \titlespacing{\subsubsection}{0pt}{*1.5}{0pt} 28 | 29 | \usepackage{authblk} 30 | \makeatletter 31 | \renewcommand\AB@authnote[1]{\rlap{\textsuperscript{\normalfont#1}}} 32 | \renewcommand\Authsep{,~\,} 33 | \renewcommand\Authands{,~\,and } 34 | \makeatother 35 | 36 | <%=@default_packages%> 37 | <%=@header%> 38 | 39 | \begin{document} 40 | 41 | \title{<%=@title%>} 42 | 43 | <% if !@alternative_author_string.to_s.empty? %> 44 | <%= @alternative_author_string %> 45 | <% else %> 46 | \author[ ]{<%=@first_author%>} 47 | <% @coauthor_list.to_a.each do |coau| %>\author[ ]{<%=coau%>} 48 | <% end %> 49 | \affil[ ]{} 50 | \vspace{-1em} 51 | <% end %> 52 | 53 | \date{} 54 | 55 | \begingroup 56 | \let\center\flushleft 57 | \let\endcenter\endflushleft 58 | \maketitle 59 | \endgroup 60 | 61 | \linenumbers 62 | 63 | <%= @abstract_begin_end %> 64 | -------------------------------------------------------------------------------- /styles/cogsci.tex.erb: -------------------------------------------------------------------------------- 1 | % 2 | % Annual Cognitive Science Conference 3 | % Sample LaTeX Paper -- Proceedings Format 4 | % 5 | 6 | % Original : Ashwin Ram (ashwin@cc.gatech.edu) 04/01/1994 7 | % Modified : Johanna Moore (jmoore@cs.pitt.edu) 03/17/1995 8 | % Modified : David Noelle (noelle@ucsd.edu) 03/15/1996 9 | % Modified : Pat Langley (langley@cs.stanford.edu) 01/26/1997 10 | % Latex2e corrections by Ramin Charles Nakisa 01/28/1997 11 | % Modified : Tina Eliassi-Rad (eliassi@cs.wisc.edu) 01/31/1998 12 | % Modified : Trisha Yannuzzi (trisha@ircs.upenn.edu) 12/28/1999 (in process) 13 | % Modified : Mary Ellen Foster (M.E.Foster@ed.ac.uk) 12/11/2000 14 | % Modified : Ken Forbus 01/23/2004 15 | % Modified : Eli M. Silk (esilk@pitt.edu) 05/24/2005 16 | % Modified : Niels Taatgen (taatgen@cmu.edu) 10/24/2006 17 | % Modified : David Noelle (dnoelle@ucmerced.edu) 11/19/2014 18 | 19 | %% Change "letterpaper" in the following line to "a4paper" if you must. 20 | 21 | \documentclass[10pt,letterpaper]{article} 22 | <%=@default_packages%> 23 | 24 | \usepackage{cogsci} 25 | \usepackage{pslatex} 26 | \usepackage{apacite} 27 | 28 | <%=@header%> 29 | 30 | \title{<%=@title%>} 31 | <% if !@alternative_author_string.to_s.empty? %> 32 | <%= @alternative_author_string %> 33 | <% else %> 34 | \author{{\large \bf <%=@first_author%>}\\ <%=@first_affiliation%> <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> \AND {\large \bf <%=@coauthor_list[i]%>}\\ <%=@coauthor_affiliations[i]%><% end %><% end %>} 35 | <% end %> 36 | \begin{document} 37 | 38 | \maketitle 39 | 40 | <%= @abstract_begin_end %> 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /styles/jhep.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[a4paper,11pt]{article} 2 | \pdfoutput=1 % if your are submitting a pdflatex (i.e. if you have 3 | % images in pdf, png or jpg format) 4 | 5 | \usepackage{jheppub} % for details on the use of the package, please 6 | % see the JHEP-author-manual 7 | 8 | \usepackage[T1]{fontenc} % if needed 9 | 10 | <%=@default_packages%> 11 | 12 | <%=@header%> 13 | 14 | \title{<%=@title%>} 15 | 16 | 17 | %% %simple case: 2 authors, same institution 18 | %% \author{A. Uthor} 19 | %% \author{and A. Nother Author} 20 | %% \affiliation{Institution,\\Address, Country} 21 | 22 | 23 | <% if !@alternative_author_string.to_s.empty? %> 24 | <%= @alternative_author_string %> 25 | <% else %> 26 | \author[a]{<%=@first_author%>} 27 | \affiliation[a]{<%=@first_affiliation%>} 28 | <% end %> 29 | 30 | 31 | 32 | % more complex case: 4 authors, 3 institutions, 2 footnotes 33 | %\author[a,b,1]{F. Irst,\note{Corresponding author.}} 34 | %\author[c]{S. Econd,} 35 | %\author[a,2]{T. Hird\note{Also at Some University.}} 36 | %\author[a,2]{and Fourth} 37 | 38 | % The "\note" macro will give a warning: "Ignoring empty anchor..." 39 | % you can safely ignore it. 40 | 41 | %\affiliation[a]{One University,\\some-street, Country} 42 | %\affiliation[b]{Another University,\\different-address, Country} 43 | %\affiliation[c]{A School for Advanced Studies,\\some-location, Country} 44 | 45 | % e-mail addresses: one for each author, in the same order as the authors 46 | %\emailAdd{first@one.univ} 47 | %\emailAdd{second@asas.edu} 48 | %\emailAdd{third@one.univ} 49 | %\emailAdd{fourth@one.univ} 50 | 51 | 52 | \abstract{<%= @abstract %>} 53 | 54 | \begin{document} 55 | \maketitle 56 | \flushbottom 57 | 58 | -------------------------------------------------------------------------------- /styles/authorea-double-numbered.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \usepackage{fullpage} 3 | \usepackage{parskip} 4 | \usepackage{setspace} 5 | \usepackage{titlesec} 6 | \usepackage{lineno} 7 | \usepackage{graphicx} 8 | \usepackage{xcolor} 9 | \usepackage[colorlinks = true, 10 | linkcolor = blue, 11 | urlcolor = blue, 12 | citecolor = blue, 13 | anchorcolor = blue]{hyperref} 14 | \usepackage{apacite} 15 | \usepackage{eso-pic} 16 | \AddToShipoutPictureBG{\AtPageLowerLeft{\includegraphics[scale=0.7]{powered-by-Authorea-watermark.png}}} 17 | 18 | 19 | \renewenvironment{abstract} 20 | {{\bfseries\noindent{\large\abstractname}\par\nobreak}} 21 | {} 22 | 23 | \renewenvironment{quote} 24 | {\begin{tabular}{|p{13cm}}} 25 | {\end{tabular}} 26 | 27 | \titlespacing{\section}{0pt}{*3}{*1} 28 | \titlespacing{\subsection}{0pt}{*2}{*0.5} 29 | \titlespacing{\subsubsection}{0pt}{*1.5}{0pt} 30 | 31 | \usepackage{authblk} 32 | \makeatletter 33 | \renewcommand\AB@authnote[1]{\rlap{\textsuperscript{\normalfont#1}}} 34 | \renewcommand\Authsep{,~\,} 35 | \renewcommand\Authands{,~\,and } 36 | \makeatother 37 | 38 | <%=@default_packages%> 39 | <%=@header%> 40 | 41 | \begin{document} 42 | 43 | \title{<%=@title%>} 44 | 45 | <% if !@alternative_author_string.to_s.empty? %> 46 | <%= @alternative_author_string %> 47 | <% else %> 48 | \author[ ]{<%=@first_author%>} 49 | <% @coauthor_list.to_a.each do |coau| %>\author[ ]{<%=coau%>} 50 | <% end %> 51 | \affil[ ]{} 52 | \vspace{-1em} 53 | <% end %> 54 | 55 | \date{} 56 | 57 | \begingroup 58 | \let\center\flushleft 59 | \let\endcenter\endflushleft 60 | \maketitle 61 | \endgroup 62 | 63 | \doublespacing 64 | \linenumbers 65 | 66 | <%= @abstract_begin_end %> 67 | -------------------------------------------------------------------------------- /styles/aa.tex.erb: -------------------------------------------------------------------------------- 1 | % aa.dem 2 | % AA vers. 8.2, LaTeX class for Astronomy & Astrophysics 3 | % demonstration file 4 | % (c) EDP Sciences 5 | %----------------------------------------------------------------------- 6 | % 7 | %\documentclass[referee]{aa} % for a referee version 8 | %\documentclass[onecolumn]{aa} % for a paper on 1 column 9 | %\documentclass[longauth]{aa} % for the long lists of affiliations 10 | %\documentclass[rnote]{aa} % for the research notes 11 | %\documentclass[letter]{aa} % for the letters 12 | %\documentclass[bibyear]{aa} % if the references are not structured 13 | % according to the author-year natbib style 14 | 15 | % 16 | \documentclass[referee]{aa} 17 | 18 | % 19 | %\usepackage{graphicx} 20 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21 | \usepackage{txfonts} 22 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 23 | %\usepackage[options]{hyperref} 24 | % To add links in your PDF file, use the package "hyperref" 25 | % with options according to your LaTeX or PDFLaTeX drivers. 26 | % 27 | %\usepackage{natbib} 28 | 29 | <%=@default_packages%> 30 | 31 | <%=@header%> 32 | 33 | \begin{document} 34 | 35 | \title{<%=@title%>} 36 | <% if !@alternative_author_string.to_s.empty? %> 37 | <%= @alternative_author_string %> 38 | <% else %> 39 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %> \and <%=author%><% end %><% end %>} 40 | 41 | \institute{<%=@first_affiliation%><% if !@coauthor_affiliations.to_a.empty? %><% for affiliation in @coauthor_affiliations %> \and <%=affiliation%><% end %><% end %>} 42 | <% end %> 43 | 44 | <%= @abstract_command %> 45 | 46 | \maketitle 47 | -------------------------------------------------------------------------------- /styles/aa_onecolumn.tex.erb: -------------------------------------------------------------------------------- 1 | % aa.dem 2 | % AA vers. 8.2, LaTeX class for Astronomy & Astrophysics 3 | % demonstration file 4 | % (c) EDP Sciences 5 | %----------------------------------------------------------------------- 6 | % 7 | %\documentclass[referee]{aa} % for a referee version 8 | %\documentclass[onecolumn]{aa} % for a paper on 1 column 9 | %\documentclass[longauth]{aa} % for the long lists of affiliations 10 | %\documentclass[rnote]{aa} % for the research notes 11 | %\documentclass[letter]{aa} % for the letters 12 | %\documentclass[bibyear]{aa} % if the references are not structured 13 | % according to the author-year natbib style 14 | 15 | % 16 | \documentclass[onecolumn]{aa} 17 | 18 | % 19 | %\usepackage{graphicx} 20 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21 | \usepackage{txfonts} 22 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 23 | %\usepackage[options]{hyperref} 24 | % To add links in your PDF file, use the package "hyperref" 25 | % with options according to your LaTeX or PDFLaTeX drivers. 26 | % 27 | %\usepackage{natbib} 28 | 29 | <%=@default_packages%> 30 | 31 | <%=@header%> 32 | 33 | \begin{document} 34 | 35 | \title{<%=@title%>} 36 | <% if !@alternative_author_string.to_s.empty? %> 37 | <%= @alternative_author_string %> 38 | <% else %> 39 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %> \and <%=author%><% end %><% end %>} 40 | 41 | \institute{<%=@first_affiliation%><% if !@coauthor_affiliations.to_a.empty? %><% for affiliation in @coauthor_affiliations %> \and <%=affiliation%><% end %><% end %>} 42 | <% end %> 43 | <%= @abstract_command %> 44 | 45 | \maketitle 46 | -------------------------------------------------------------------------------- /styles/aa_twocolumn.tex.erb: -------------------------------------------------------------------------------- 1 | % aa.dem 2 | % AA vers. 8.2, LaTeX class for Astronomy & Astrophysics 3 | % demonstration file 4 | % (c) EDP Sciences 5 | %----------------------------------------------------------------------- 6 | % 7 | %\documentclass[referee]{aa} % for a referee version 8 | %\documentclass[onecolumn]{aa} % for a paper on 1 column 9 | %\documentclass[longauth]{aa} % for the long lists of affiliations 10 | %\documentclass[rnote]{aa} % for the research notes 11 | %\documentclass[letter]{aa} % for the letters 12 | %\documentclass[bibyear]{aa} % if the references are not structured 13 | % according to the author-year natbib style 14 | 15 | % 16 | \documentclass{aa} 17 | 18 | % 19 | %\usepackage{graphicx} 20 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21 | \usepackage{txfonts} 22 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 23 | %\usepackage[options]{hyperref} 24 | % To add links in your PDF file, use the package "hyperref" 25 | % with options according to your LaTeX or PDFLaTeX drivers. 26 | % 27 | %\usepackage{natbib} 28 | 29 | <%=@default_packages%> 30 | 31 | <%=@header%> 32 | 33 | \begin{document} 34 | 35 | \title{<%=@title%>} 36 | 37 | <% if !@alternative_author_string.to_s.empty? %> 38 | <%= @alternative_author_string %> 39 | <% else %> 40 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %> \and <%=author%><% end %><% end %>} 41 | <% end %> 42 | 43 | \institute{<%=@first_affiliation%><% if !@coauthor_affiliations.to_a.empty? %><% for affiliation in @coauthor_affiliations %> \and <%=affiliation%><% end %><% end %>} 44 | 45 | <%= @abstract_command %> 46 | 47 | \maketitle 48 | -------------------------------------------------------------------------------- /styles/g3.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[9pt,twocolumn,twoside]{gsag3jnl} 2 | 3 | \articletype{inv} % article type 4 | % {inv} Investigations 5 | % {msr} Mutant Screen Reports 6 | % {gs} Genomic Selection 7 | % {goi} Genetics of Immunity 8 | % {gos} Genetics of Sex 9 | % {mp} Multiparental Populations 10 | 11 | <%=@default_packages%> 12 | 13 | <%=@header%> 14 | 15 | \title{<%=@title%>} 16 | 17 | <% if !@alternative_author_string.to_s.empty? %> 18 | <%= @alternative_author_string %> 19 | <% else %> 20 | \author[$\ast$,1]{<%=@first_author%>} 21 | \affil[$\ast$]{<%=@first_affiliation%>} 22 | <% end %> 23 | 24 | %to manually edit use this format: 25 | %\author[$\ast$,1]{Author One} 26 | %\author[$\dagger$]{Author Two} 27 | %\author[$\ddagger$]{Author Three} 28 | %\author[$\S$]{Author Four} 29 | %\author[$\ast\ast$]{Author Five} 30 | 31 | %\affil[$\ast$]{Author one affiliation} 32 | %\affil[$\dagger$]{Author two affiliation} 33 | %\affil[$\ddagger$]{Author three affiliation} 34 | %\affil[$\S$]{Author four affiliation} 35 | %\affil[$\ast\ast$]{Author five affiliation} 36 | 37 | %\keywords{Keyword \\ Keyword2 \\ Keyword3 \\ ...} 38 | 39 | \runningtitle{<%=@short_title%>} % For use in the footer 40 | 41 | \correspondingauthor{Corresponding Author} 42 | 43 | <% if !@abstract_begin_end.empty? %> 44 | <%= @abstract_begin_end %> 45 | <% else %> 46 | % An abstract is a requirement for the g3 template 47 | \begin{abstract}\end{abstract} 48 | <% end %> 49 | 50 | 51 | \keywords{} % keywords are also required 52 | \setboolean{displaycopyright}{true} 53 | 54 | \begin{document} 55 | 56 | \maketitle 57 | \thispagestyle{firststyle} 58 | \logomark 59 | \articletypemark 60 | \marginmark 61 | \firstpagefootnote 62 | \correspondingauthoraffiliation{<%=@first_affiliation%>} 63 | \vspace{-11pt}% 64 | 65 | -------------------------------------------------------------------------------- /test/sanity_loader_test.rb: -------------------------------------------------------------------------------- 1 | require 'helper' 2 | require 'texstyles' 3 | 4 | class SanityLoaderTest < Minitest::Test 5 | 6 | def can_respond_to_expected_methods 7 | assert Texstyles::Style.respond_to?(:citation_style), "can access citation_style" 8 | assert Texstyles::Style.respond_to?(:name), "can access name" 9 | assert Texstyles::Style.respond_to?(:category), "can access category" 10 | end 11 | 12 | def test_hundreds_of_styles_available 13 | assert Texstyles.list.length > 100, 'hundred of styles are available on the filesystem' 14 | end 15 | 16 | def test_can_load_all_styles 17 | categories = Texstyles.categories 18 | 19 | Texstyles.list.each do |symbol| 20 | style = Texstyles::Style.new(symbol) 21 | latex_preamble_content = style.stylize_metadata 22 | assert latex_preamble_content.length > 0, "render is operational for style #{symbol}" 23 | assert !style.name.empty?, "style #{symbol} has name set" 24 | assert !style.category.empty?, "style #{symbol} has category set" 25 | assert categories[style.category], "#{style.category} is part of the standard category vocabulary" 26 | end 27 | end 28 | 29 | def test_available_citation_style 30 | authorea = Texstyles::Style.new(:authorea) 31 | assert_equal "apacite", authorea.citation_style, "Citation Style for Authorea style is set." 32 | end 33 | 34 | def test_can_check_compatibility 35 | empty_style = Texstyles::Style.new('empty') 36 | assert !empty_style.package_compatible?('fakename'), 'all default packages are considered incompatible with the empty style' 37 | 38 | generic_article_style = Texstyles::Style.new('article') 39 | assert generic_article_style.package_compatible?('fakename'), 'all default packages are considered compatible with the article style' 40 | end 41 | 42 | end 43 | -------------------------------------------------------------------------------- /styles/aip_preprint.tex.erb: -------------------------------------------------------------------------------- 1 | %% ****** Start of file aiptemplate.tex ****** % 2 | %% 3 | %% This file is part of the files in the distribution of AIP substyles for REVTeX4. 4 | %% Version 4.1 of 9 October 2009. 5 | %% 6 | % 7 | % This is a template for producing documents for use with 8 | % the REVTEX 4.1 document class and the AIP substyles. 9 | % 10 | % Copy this file to another name and then work on that file. 11 | % That way, you always have this original template file to use. 12 | 13 | %\documentclass[aip,graphicx]{revtex4-1} 14 | %\documentclass[aip,reprint]{revtex4-1} 15 | 16 | \documentclass[% 17 | aip, 18 | jmp,% 19 | amsmath,amssymb, 20 | preprint,% 21 | %reprint,% 22 | %author-year,% 23 | %author-numerical,% 24 | ]{revtex4-1} 25 | 26 | \usepackage{dcolumn}% Align table columns on decimal point 27 | \usepackage{bm}% bold math 28 | %\usepackage[mathlines]{lineno}% Enable numbering of text and display math 29 | %\linenumbers\relax % Commence numbering lines 30 | %\usepackage{natbib} 31 | 32 | <%=@default_packages%> 33 | 34 | 35 | <%=@header%> 36 | 37 | 38 | \begin{document} 39 | 40 | \title{<%=@title%>} 41 | 42 | <% if !@alternative_author_string.to_s.empty? %> 43 | <%= @alternative_author_string %> 44 | <% else %> 45 | \author{<%=@first_author%>} 46 | \affiliation{<%=@first_affiliation%>} 47 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 48 | \author{<%=@coauthor_list[i]%>} 49 | \affiliation{<%=@coauthor_affiliations[i]%>} 50 | <% end %> 51 | <% end %> 52 | <% end %> 53 | 54 | \date{\today}% It is always \today, today, 55 | 56 | <%= @abstract_begin_end %> 57 | 58 | 59 | %\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy 60 | % Classification Scheme. 61 | %\keywords{Suggested keywords}%Use showkeys class option if keyword 62 | %display desired 63 | 64 | \maketitle 65 | 66 | -------------------------------------------------------------------------------- /styles/aip_reprint.tex.erb: -------------------------------------------------------------------------------- 1 | %% ****** Start of file aiptemplate.tex ****** % 2 | %% 3 | %% This file is part of the files in the distribution of AIP substyles for REVTeX4. 4 | %% Version 4.1 of 9 October 2009. 5 | %% 6 | % 7 | % This is a template for producing documents for use with 8 | % the REVTEX 4.1 document class and the AIP substyles. 9 | % 10 | % Copy this file to another name and then work on that file. 11 | % That way, you always have this original template file to use. 12 | 13 | %\documentclass[aip,graphicx]{revtex4-1} 14 | %\documentclass[aip,reprint]{revtex4-1} 15 | 16 | \documentclass[% 17 | aip, 18 | jmp,% 19 | amsmath,amssymb, 20 | %preprint,% 21 | reprint,% 22 | %author-year,% 23 | %author-numerical,% 24 | ]{revtex4-1} 25 | 26 | \usepackage{dcolumn}% Align table columns on decimal point 27 | \usepackage{bm}% bold math 28 | %\usepackage[mathlines]{lineno}% Enable numbering of text and display math 29 | %\linenumbers\relax % Commence numbering lines 30 | %\usepackage{natbib} 31 | 32 | <%=@default_packages%> 33 | 34 | 35 | <%=@header%> 36 | 37 | 38 | \begin{document} 39 | 40 | \title{<%=@title%>} 41 | 42 | <% if !@alternative_author_string.to_s.empty? %> 43 | <%= @alternative_author_string %> 44 | <% else %> 45 | \author{<%=@first_author%>} 46 | \affiliation{<%=@first_affiliation%>} 47 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 48 | \author{<%=@coauthor_list[i]%>} 49 | \affiliation{<%=@coauthor_affiliations[i]%>} 50 | <% end %> 51 | <% end %> 52 | <% end %> 53 | 54 | \date{\today}% It is always \today, today, 55 | 56 | <%= @abstract_begin_end %> 57 | 58 | 59 | %\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy 60 | % Classification Scheme. 61 | %\keywords{Suggested keywords}%Use showkeys class option if keyword 62 | %display desired 63 | 64 | \maketitle 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /styles/plos.tex.erb: -------------------------------------------------------------------------------- 1 | % Template for PLoS 2 | % Version 1.0 January 2009 3 | % 4 | % To compile to pdf, run: 5 | % latex plos.template 6 | % bibtex plos.template 7 | % latex plos.template 8 | % latex plos.template 9 | % dvipdf plos.template 10 | 11 | \documentclass[10pt]{article} 12 | 13 | <%=@default_packages%> 14 | 15 | % cite package, to clean up citations in the main text. Do not remove. 16 | \usepackage{cite} 17 | 18 | % Use doublespacing - comment out for single spacing 19 | %\usepackage{setspace} 20 | %\doublespacing 21 | 22 | <%=@header%> 23 | 24 | % Text layout 25 | \topmargin 0.0cm 26 | \oddsidemargin 0.5cm 27 | \evensidemargin 0.5cm 28 | \textwidth 16cm 29 | \textheight 21cm 30 | 31 | % Bold the 'Figure #' in the caption and separate it with a period 32 | % Captions will be left justified 33 | \usepackage[labelfont=bf,labelsep=period,justification=raggedright]{caption} 34 | 35 | % Leave date blank 36 | \date{} 37 | 38 | \pagestyle{myheadings} 39 | \begin{document} 40 | 41 | % Title must be 150 characters or less 42 | \begin{flushleft} 43 | {\LARGE 44 | \textbf{<%=@title%>} 45 | } 46 | % Insert Author names, affiliations and corresponding author email. 47 | \\ 48 | <% if !@alternative_author_string.to_s.empty? %> 49 | <%= @alternative_author_string %> 50 | <% else %> 51 | <%=@first_author%><% if !@first_affiliation.to_s.empty? %>$^{1}$<% end %> 52 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %> 53 | \\ 54 | <% if !@first_affiliation.to_s.empty? %> 55 | {\bf 1} <%=@first_affiliation%>\\ 56 | <% end %> 57 | 58 | <% @coauthor_affiliations.to_a.each_with_index do |affil, index| %> 59 | {\bf <%=index+1%>} <%= affil %> \\ 60 | <% end %> 61 | <% end %> 62 | \end{flushleft} 63 | 64 | % Please keep the abstract between 250 and 300 words 65 | 66 | <% if @abstract && !@abstract.empty? %> 67 | \section*{Abstract} 68 | <%=@abstract%> 69 | <% end %> 70 | -------------------------------------------------------------------------------- /styles/svmono.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%% book.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % 3 | % sample root file for the chapters of your "monograph" 4 | % 5 | % Use this file as a template for your own input. 6 | % 7 | %%%%%%%%%%%%%%%% Springer-Verlag %%%%%%%%%%%%%%%%%%%%%%%%%% 8 | 9 | 10 | % RECOMMENDED %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 11 | \documentclass[graybox,envcountchap,sectrefs]{svmono} 12 | 13 | % choose options for [] as required from the list 14 | % in the Reference Guide 15 | 16 | \usepackage{mathptmx} 17 | \usepackage{helvet} 18 | \usepackage{courier} 19 | % 20 | \usepackage{type1cm} 21 | 22 | \usepackage{makeidx} % allows index generation 23 | \usepackage{graphicx} % standard LaTeX graphics tool 24 | % when including figure files 25 | \usepackage{multicol} % used for the two-column index 26 | \usepackage[bottom]{footmisc}% places footnotes at page bottom 27 | 28 | <%=@default_packages%> 29 | 30 | 31 | % see the list of further useful packages 32 | % in the Reference Guide 33 | 34 | \makeindex % used for the subject index 35 | % please use the style svind.ist with 36 | % your makeindex program 37 | 38 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 39 | 40 | <%=@header%> 41 | 42 | \begin{document} 43 | <% if !@alternative_author_string.to_s.empty? %> 44 | <%= @alternative_author_string %> 45 | <% else %> 46 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %>, <%=author%><% end %><% end %>} 47 | <% end %> 48 | 49 | \title{<%=@title%>} 50 | \subtitle{} 51 | \maketitle 52 | 53 | \frontmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 54 | 55 | <% if @abstract && !@abstract.empty? %> 56 | \extrachap{Abstract} 57 | <%=@abstract%> 58 | <% end %> 59 | 60 | \tableofcontents 61 | 62 | \mainmatter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 63 | 64 | -------------------------------------------------------------------------------- /styles/ijcai.tex.erb: -------------------------------------------------------------------------------- 1 | %%%% ijcai16.tex 2 | 3 | \typeout{<%=@title%>} 4 | 5 | % These are the instructions for authors for IJCAI-16. 6 | % They are the same as the ones for IJCAI-11 with superficical wording 7 | % changes only. 8 | 9 | \documentclass{article} 10 | % The file ijcai16.sty is the style file for IJCAI-16 (same as ijcai07.sty). 11 | \usepackage{ijcai16} 12 | 13 | % Use the postscript times font! 14 | \usepackage{times} 15 | 16 | % the following package is optional: 17 | %\usepackage{latexsym} 18 | 19 | <%=@default_packages%> 20 | 21 | <%=@header%> 22 | 23 | 24 | % Following comment is from ijcai97-submit.tex: 25 | % The preparation of these files was supported by Schlumberger Palo Alto 26 | % Research, AT\&T Bell Laboratories, and Morgan Kaufmann Publishers. 27 | % Shirley Jowell, of Morgan Kaufmann Publishers, and Peter F. 28 | % Patel-Schneider, of AT\&T Bell Laboratories collaborated on their 29 | % preparation. 30 | 31 | % These instructions can be modified and used in other conferences as long 32 | % as credit to the authors and supporting agencies is retained, this notice 33 | % is not changed, and further modification or reuse is not restricted. 34 | % Neither Shirley Jowell nor Peter F. Patel-Schneider can be listed as 35 | % contacts for providing assistance without their prior permission. 36 | 37 | % To use for other conferences, change references to files and the 38 | % conference appropriate and use other authors, contacts, publishers, and 39 | % organizations. 40 | % Also change the deadline and address for returning papers and the length and 41 | % page charge instructions. 42 | % Put where the files are available in the appropriate places. 43 | 44 | \title{<%=@title%>} 45 | 46 | <% if !@alternative_author_string.to_s.empty? %> 47 | <%= @alternative_author_string %> 48 | <% else %> 49 | \author{<%=@first_author%>\\ 50 | <%=@first_affiliation%>} 51 | <% end %> 52 | 53 | \begin{document} 54 | 55 | \maketitle 56 | 57 | <%= @abstract_begin_end %> 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /styles/cornell.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[phd,tocprelim]{cornell} 2 | % 3 | % tocprelim option must be included to put the roman numeral pages in the 4 | % table of contents 5 | % 6 | % The cornellheadings option will make headings completely consistent with 7 | % guidelines. 8 | % 9 | % This sample document was originally provided by Blake Jacquot, and 10 | % fixed up by Andrew Myers. 11 | % 12 | %Some possible packages to include 13 | \usepackage{graphicx,pstricks} 14 | \usepackage{graphics} 15 | \usepackage{moreverb} 16 | \usepackage{subfigure} 17 | \usepackage{epsfig} 18 | \usepackage{subfigure} 19 | \usepackage{hangcaption} 20 | \usepackage{txfonts} 21 | \usepackage{palatino} 22 | 23 | <%=@default_packages%> 24 | 25 | <%=@header%> 26 | 27 | %if you're having problems with overfull boxes, you may need to increase 28 | %the tolerance to 9999 29 | \tolerance=9999 30 | 31 | \renewcommand{\caption}[1]{\singlespacing\hangcaption{#1}\normalspacing} 32 | \renewcommand{\topfraction}{0.85} 33 | \renewcommand{\textfraction}{0.1} 34 | \renewcommand{\floatpagefraction}{0.75} 35 | 36 | \title {<%=@title%>} 37 | <% if !@alternative_author_string.to_s.empty? %> 38 | <%= @alternative_author_string %> 39 | <% else %> 40 | \author {<%=@first_author%>} 41 | <% end %> 42 | \conferraldate {June}{2014} 43 | \degreefield {Ph.D.} 44 | \copyrightholder{<%=@first_author%>} 45 | \copyrightyear{2014} 46 | 47 | \begin{document} 48 | 49 | \maketitle 50 | \makecopyright 51 | 52 | \begin{abstract} 53 | <%=@abstract%> 54 | \end{abstract} 55 | 56 | %\begin{biosketch} 57 | %Your biosketch goes here. Make sure it sits inside 58 | %the brackets. 59 | %\end{biosketch} 60 | 61 | %\begin{dedication} 62 | %This document is dedicated to all Cornell graduate students. 63 | %\end{dedication} 64 | 65 | %\begin{acknowledgements} 66 | %Your acknowledgements go here. Make sure it sits inside the brackets. 67 | %\end{acknowledgements} 68 | 69 | \contentspage 70 | \tablelistpage 71 | \figurelistpage 72 | 73 | \normalspacing \setcounter{page}{1} \pagenumbering{arabic} 74 | \pagestyle{cornell} \addtolength{\parskip}{0.5\baselineskip} 75 | 76 | -------------------------------------------------------------------------------- /styles/osaletters.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % File: OLpagelength.tex % 3 | % Date: Nov. 15, 2010 % 4 | % % 5 | % For assistance, contact Joseph Richardson, % 6 | % jricha@osa.org % 7 | % % 8 | % LaTeX template and instructions for % 9 | % length check and submission of OSA % 10 | % Optics Letters manuscripts % 11 | % % 12 | % % 13 | % \documentclass[10pt,letterpaper,twocolumn]{article} % 14 | % \usepackage{ol2} % 15 | % % 16 | % (c) 2009 Optical Society of America % 17 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 18 | 19 | \documentclass[10pt,letterpaper,twocolumn]{article} %% two column, final layout 20 | 21 | <%=@default_packages%> 22 | \hypersetup{draft,implicit=false} 23 | \usepackage{ol2} 24 | %\usepackage{amsmath} 25 | 26 | <%=@header%> 27 | 28 | \begin{document} 29 | 30 | \twocolumn[ %% activate for two-column option 31 | 32 | \title{<%=@title%>} 33 | 34 | %% For REVTeX it is possible to automate superscript and e-mail callouts with the superscriptaddress option; see REVTeX4 documentation. 35 | 36 | <% if !@alternative_author_string.to_s.empty? %> 37 | <%= @alternative_author_string %> 38 | <% else %> 39 | \author{<%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %>} 40 | <% end %> 41 | 42 | \address{ 43 | $^{1}$<%=@first_affiliation%>\\ 44 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>\\ 45 | $^{<%=i+2%>}$<%=@coauthor_affiliations[i]%> \\<% end %><% end %> 46 | } 47 | 48 | <%= @abstract_begin_end %> 49 | 50 | 51 | %\ocis{000.0000, 999.9999.} 52 | 53 | ] %% activate for two-column option 54 | 55 | -------------------------------------------------------------------------------- /styles/ucriverside.tex.erb: -------------------------------------------------------------------------------- 1 | %% uctest.tex 11/3/94 2 | %% Copyright (C) 1988-2004 Daniel Gildea, BBF, Ethan Munson. 3 | % 4 | % This work may be distributed and/or modified under the 5 | % conditions of the LaTeX Project Public License, either version 1.3 6 | % of this license or (at your option) any later version. 7 | % The latest version of this license is in 8 | % http://www.latex-project.org/lppl.txt 9 | % and version 1.3 or later is part of all distributions of LaTeX 10 | % version 2003/12/01 or later. 11 | % 12 | % This work has the LPPL maintenance status "maintained". 13 | % 14 | % The Current Maintainer of this work is Daniel Gildea. 15 | % 16 | % 2007/08/01 17 | % LaTeX Package "ucr" is modified from LaTeX package "ucthesis." 18 | % This modification is therefore under to the conditions of 19 | % the LaTeX Project Public License. 20 | % Its formality is suitable for the dissertation of Universty of 21 | % California, Riverside. 22 | % This test document is for the convenience of all students of 23 | % Universty of California, Riverside. 24 | % Contact Charles Yang at chcyang@yahoo.com if you like. 25 | % Charles Yang has nothing to do with the original author's sarcasm. 26 | % 27 | % \documentclass[11pt]{ucthesis} 28 | % \documentclass[11pt]{ucr} 29 | \documentclass[oneside,final, letterpaper]{ucr} 30 | \begin{document} 31 | 32 | % Declarations for Front Matter 33 | 34 | \title{<%=@title%>} 35 | \author{<%=@first_author%>} 36 | \degreemonth{Month} 37 | \degreeyear{Year} 38 | \degree{Doctor of Philosophy} 39 | \chair{Professor} 40 | \chairtwo{Professor} 41 | \othermembers{Professor} 42 | \numberofmembers{3} 43 | \field{Field} 44 | \campus{Riverside} 45 | 46 | \maketitle 47 | \copyrightpage{} 48 | \approvalpage{} 49 | 50 | \degreesemester{Fall} 51 | 52 | \begin{frontmatter} 53 | 54 | \begin{acknowledgements} 55 | Acknowledgements. 56 | \end{acknowledgements} 57 | 58 | \begin{dedication} 59 | \null\vfil 60 | {\large 61 | \begin{center} 62 | Dedication. 63 | \end{center}} 64 | \vfil\null 65 | \end{dedication} 66 | 67 | <%= @abstract_begin_end %> 68 | 69 | \tableofcontents 70 | \listoffigures 71 | \listoftables 72 | \end{frontmatter} 73 | 74 | % \part{First Part} 75 | 76 | \nocite{*} 77 | % \singlespacing 78 | 79 | 80 | -------------------------------------------------------------------------------- /styles/tufte-handout.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{tufte-handout} 2 | 3 | %\geometry{showframe}% for debugging purposes -- displays the margins 4 | 5 | <%= @default_packages %> 6 | 7 | % Set up the images/graphics package 8 | %\usepackage{graphicx} 9 | \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio} 10 | \graphicspath{{graphics/}} 11 | 12 | \title{<%=@title%>} 13 | <% if !@alternative_author_string.to_s.empty? %> 14 | <%= @alternative_author_string %> 15 | <% else %> 16 | \author[<%=@first_author%>]{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %>, <%=author%><% end %><% end %>} 17 | <% end %> 18 | %\date{24 January 2009} % if the \date{} command is left out, the current date will be used 19 | 20 | % The following package makes prettier tables. We're all about the bling! 21 | %\usepackage{booktabs} 22 | 23 | % The units package provides nice, non-stacked fractions and better spacing 24 | % for units. 25 | \usepackage{units} 26 | 27 | % The fancyvrb package lets us customize the formatting of verbatim 28 | % environments. We use a slightly smaller font. 29 | \usepackage{fancyvrb} 30 | \fvset{fontsize=\normalsize} 31 | 32 | % Small sections of multiple columns 33 | \usepackage{multicol} 34 | 35 | % Provides paragraphs of dummy text 36 | \usepackage{lipsum} 37 | 38 | % These commands are used to pretty-print LaTeX commands 39 | \newcommand{\doccmd}[1]{\texttt{\textbackslash#1}}% command name -- adds backslash automatically 40 | \newcommand{\docopt}[1]{\ensuremath{\langle}\textrm{\textit{#1}}\ensuremath{\rangle}}% optional command argument 41 | \newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument 42 | \newenvironment{docspec}{\begin{quote}\noindent}{\end{quote}}% command specification environment 43 | \newcommand{\docenv}[1]{\textsf{#1}}% environment name 44 | \newcommand{\docpkg}[1]{\texttt{#1}}% package name 45 | \newcommand{\doccls}[1]{\texttt{#1}}% document class name 46 | \newcommand{\docclsopt}[1]{\texttt{#1}}% document class option name 47 | 48 | <%=@header%> 49 | 50 | 51 | \begin{document} 52 | 53 | \maketitle% this prints the handout title, author, and date 54 | 55 | <% if @abstract && !@abstract.empty? %> 56 | \begin{abstract} 57 | \noindent <%=@abstract%> 58 | \end{abstract} 59 | <% end %> 60 | 61 | -------------------------------------------------------------------------------- /styles/hess.tex.erb: -------------------------------------------------------------------------------- 1 | %% Copernicus Publications Manuscript Preparation Template for LaTeX Submissions 2 | %% --------------------------------- 3 | %% This template should be used for the following class files: copernicus.cls, copernicus2.cls, copernicus_discussions.cls 4 | %% The class files, the Copernicus LaTeX Manual with detailed explanations regarding the comments 5 | %% and some style files are bundled in the Copernicus Latex Package which can be downloaded from the different journal webpages. 6 | %% For further assistance please contact the Publication Production Office (production@copernicus.org). 7 | %% http://publications.copernicus.org 8 | 9 | 10 | %% Differing commands regarding the specific class files are highlighted. 11 | 12 | 13 | %% copernicus.cls 14 | \documentclass[hess, manuscript]{copernicus} 15 | 16 | %% copernicus2.cls 17 | %\documentclass[journal abbreviation]{copernicus2} 18 | 19 | %% copernicus_discussions.cls 20 | %\documentclass[journal abbreviation, hvmath, online]{copernicus_discussions} 21 | 22 | 23 | 24 | <%=@default_packages%> 25 | 26 | <%=@header%> 27 | 28 | \begin{document} 29 | 30 | \title{<%=@title%>} 31 | 32 | <% if !@alternative_author_string.to_s.empty? %> 33 | <%= @alternative_author_string %> 34 | <% else %> 35 | \author[1]{<%=@first_author%>} 36 | <% if !@coauthor_list.to_a.empty? %> 37 | <% for i in (0..@coauthor_list.length-1) %> 38 | \author[<%=i+2%>]{<%=@coauthor_list[i]%>} 39 | <% end %><% end %> 40 | 41 | \affil[1]{<%=@first_affiliation%>} 42 | <% if !@coauthor_list.to_a.empty? %> 43 | <% for i in (0..@coauthor_list.length-1) %> 44 | \affil[<%=i+2%>]{<%=@coauthor_affiliations[i]%>} 45 | <% end %><% end %> 46 | <% end %> 47 | %% The [] brackets identify the author to the corresponding affiliation, 1, 2, 3, etc. should be inserted. 48 | 49 | 50 | 51 | \runningtitle{<%=@title%>} 52 | 53 | \runningauthor{<%=@first_author%>} 54 | 55 | \correspondence{<%=@first_author%>} 56 | 57 | \received{} 58 | \pubdiscuss{} %% only important for two-stage journals 59 | \revised{} 60 | \accepted{} 61 | \published{} 62 | 63 | %% These dates will be inserted by the Publication Production Office during the typesetting process. 64 | 65 | 66 | \firstpage{1} 67 | 68 | \maketitle %% Please note that for the copernicus2.cls this command needs to be inserted after \abstract{TEXT} 69 | 70 | 71 | <%= @abstract_begin_end %> 72 | -------------------------------------------------------------------------------- /styles/biogeosciences.tex.erb: -------------------------------------------------------------------------------- 1 | %% Copernicus Publications Manuscript Preparation Template for LaTeX Submissions 2 | %% --------------------------------- 3 | %% This template should be used for the following class files: copernicus.cls, copernicus2.cls, copernicus_discussions.cls 4 | %% The class files, the Copernicus LaTeX Manual with detailed explanations regarding the comments 5 | %% and some style files are bundled in the Copernicus Latex Package which can be downloaded from the different journal webpages. 6 | %% For further assistance please contact the Publication Production Office (production@copernicus.org). 7 | %% http://publications.copernicus.org 8 | 9 | 10 | %% Differing commands regarding the specific class files are highlighted. 11 | 12 | 13 | %% copernicus.cls 14 | \documentclass[bg, manuscript]{copernicus} 15 | 16 | %% copernicus2.cls 17 | %\documentclass[journal abbreviation]{copernicus2} 18 | 19 | %% copernicus_discussions.cls 20 | %\documentclass[journal abbreviation, hvmath, online]{copernicus_discussions} 21 | 22 | 23 | 24 | <%=@default_packages%> 25 | 26 | <%=@header%> 27 | 28 | \begin{document} 29 | 30 | \title{<%=@title%>} 31 | 32 | <% if !@alternative_author_string.to_s.empty? %> 33 | <%= @alternative_author_string %> 34 | <% else %> 35 | \author[1]{<%=@first_author%>} 36 | <% if !@coauthor_list.to_a.empty? %> 37 | <% for i in (0..@coauthor_list.length-1) %> 38 | \author[<%=i+2%>]{<%=@coauthor_list[i]%>} 39 | <% end %><% end %> 40 | 41 | \affil[1]{<%=@first_affiliation%>} 42 | <% if !@coauthor_list.to_a.empty? %> 43 | <% for i in (0..@coauthor_list.length-1) %> 44 | \affil[<%=i+2%>]{<%=@coauthor_affiliations[i]%>} 45 | <% end %><% end %> 46 | <% end %> 47 | %% The [] brackets identify the author to the corresponding affiliation, 1, 2, 3, etc. should be inserted. 48 | 49 | 50 | 51 | \runningtitle{<%=@short_title%>} 52 | 53 | \runningauthor{<%=@first_author%>} 54 | 55 | \correspondence{<%=@first_author%>} 56 | 57 | \received{} 58 | \pubdiscuss{} %% only important for two-stage journals 59 | \revised{} 60 | \accepted{} 61 | \published{} 62 | 63 | %% These dates will be inserted by the Publication Production Office during the typesetting process. 64 | 65 | 66 | \firstpage{1} 67 | 68 | \maketitle %% Please note that for the copernicus2.cls this command needs to be inserted after \abstract{TEXT} 69 | 70 | 71 | <%= @abstract_begin_end %> 72 | -------------------------------------------------------------------------------- /styles/egu.tex.erb: -------------------------------------------------------------------------------- 1 | %% Copernicus Publications Manuscript Preparation Template for LaTeX Submissions 2 | %% --------------------------------- 3 | %% This template should be used for the following class files: copernicus.cls, copernicus2.cls, copernicus_discussions.cls 4 | %% The class files, the Copernicus LaTeX Manual with detailed explanations regarding the comments 5 | %% and some style files are bundled in the Copernicus Latex Package which can be downloaded from the different journal webpages. 6 | %% For further assistance please contact the Publication Production Office (production@copernicus.org). 7 | %% http://publications.copernicus.org 8 | 9 | 10 | %% Differing commands regarding the specific class files are highlighted. 11 | 12 | 13 | %% copernicus.cls 14 | \documentclass[journal abbreviation]{copernicus} 15 | 16 | %% copernicus2.cls 17 | %\documentclass[journal abbreviation]{copernicus2} 18 | 19 | %% copernicus_discussions.cls 20 | %\documentclass[journal abbreviation, hvmath, online]{copernicus_discussions} 21 | 22 | 23 | 24 | <%=@default_packages%> 25 | 26 | <%=@header%> 27 | 28 | \begin{document} 29 | 30 | \linenumbers 31 | 32 | \title{<%=@title%>} 33 | 34 | <% if !@alternative_author_string.to_s.empty? %> 35 | <%= @alternative_author_string %> 36 | <% else %> 37 | \author[1]{<%=@first_author%>} 38 | <% if !@coauthor_list.to_a.empty? %> 39 | <% for i in (0..@coauthor_list.length-1) %> 40 | \author[<%=i+2%>]{<%=@coauthor_list[i]%>} 41 | <% end %><% end %> 42 | 43 | \affil[1]{<%=@first_affiliation%>} 44 | <% if !@coauthor_list.to_a.empty? %> 45 | <% for i in (0..@coauthor_list.length-1) %> 46 | \affil[<%=i+2%>]{<%=@coauthor_affiliations[i]%>} 47 | <% end %><% end %> 48 | <% end %> 49 | %% The [] brackets identify the author to the corresponding affiliation, 1, 2, 3, etc. should be inserted. 50 | 51 | 52 | 53 | \runningtitle{<%=@title%>} 54 | 55 | \runningauthor{<%=@first_author%>} 56 | 57 | \correspondence{<%=@first_author%>} 58 | 59 | \received{} 60 | \pubdiscuss{} %% only important for two-stage journals 61 | \revised{} 62 | \accepted{} 63 | \published{} 64 | 65 | %% These dates will be inserted by the Publication Production Office during the typesetting process. 66 | 67 | 68 | \firstpage{1} 69 | 70 | \maketitle %% Please note that for the copernicus2.cls this command needs to be inserted after \abstract{TEXT} 71 | 72 | 73 | <%= @abstract_begin_end %> 74 | -------------------------------------------------------------------------------- /styles/aps.tex.erb: -------------------------------------------------------------------------------- 1 | %% ****** Start of file apstemplate.tex ****** % 2 | %% 3 | %% 4 | %% This file is part of the APS files in the REVTeX 4 distribution. 5 | %% Version 4.1r of REVTeX, August 2010 6 | %% 7 | %% 8 | %% Copyright (c) 2001, 2009, 2010 The American Physical Society. 9 | %% 10 | %% See the REVTeX 4 README file for restrictions and more information. 11 | %% 12 | % 13 | % This is a template for producing manuscripts for use with REVTEX 4.0 14 | % Copy this file to another name and then work on that file. 15 | % That way, you always have this original template file to use. 16 | % 17 | % Group addresses by affiliation; use superscriptaddress for long 18 | % author lists, or if there are many overlapping affiliations. 19 | % For Phys. Rev. appearance, change preprint to twocolumn. 20 | % Choose pra, prb, prc, prd, pre, prl, prstab, prstper, or rmp for journal 21 | % Add 'draft' option to mark overfull boxes with black boxes 22 | % Add 'showpacs' option to make PACS codes appear 23 | % Add 'showkeys' option to make keywords appear 24 | %\documentclass[aps,prl,preprint,groupedaddress]{revtex4-1} 25 | %\documentclass[aps,prl,preprint,superscriptaddress]{revtex4-1} 26 | %\documentclass[aps,prl,reprint,groupedaddress]{revtex4-1} 27 | 28 | \documentclass[% 29 | reprint, 30 | %superscriptaddress, 31 | %groupedaddress, 32 | %unsortedaddress, 33 | %runinaddress, 34 | %frontmatterverbose, 35 | %preprint, 36 | %showpacs,preprintnumbers, 37 | %nofootinbib, 38 | %nobibnotes, 39 | %bibnotes, 40 | amsmath,amssymb, 41 | aps, 42 | %pra, 43 | %prb, 44 | %rmp, 45 | %prstab, 46 | %prstper, 47 | %floatfix, 48 | ]{revtex4-1} 49 | 50 | 51 | <%=@default_packages%> 52 | 53 | %\usepackage{babel} 54 | 55 | <%=@header%> 56 | 57 | \begin{document} 58 | 59 | \title{<%=@title%>} 60 | <% if !@alternative_author_string.to_s.empty? %> 61 | <%= @alternative_author_string %> 62 | <% else %> 63 | \author{<%=@first_author%>} 64 | \affiliation{<%=@first_affiliation%>} 65 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 66 | \author{<%=@coauthor_list[i]%>} 67 | \affiliation{<%=@coauthor_affiliations[i]%>} 68 | <% end %> 69 | <% end %> 70 | <% end %> 71 | 72 | <%= @abstract_begin_end %> 73 | 74 | 75 | %\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy 76 | % Classification Scheme. 77 | %\keywords{Suggested keywords}%Use showkeys class option if keyword 78 | %display desired 79 | \maketitle 80 | -------------------------------------------------------------------------------- /styles/aps_preprint.tex.erb: -------------------------------------------------------------------------------- 1 | %% ****** Start of file apstemplate.tex ****** % 2 | %% 3 | %% 4 | %% This file is part of the APS files in the REVTeX 4 distribution. 5 | %% Version 4.1r of REVTeX, August 2010 6 | %% 7 | %% 8 | %% Copyright (c) 2001, 2009, 2010 The American Physical Society. 9 | %% 10 | %% See the REVTeX 4 README file for restrictions and more information. 11 | %% 12 | % 13 | % This is a template for producing manuscripts for use with REVTEX 4.0 14 | % Copy this file to another name and then work on that file. 15 | % That way, you always have this original template file to use. 16 | % 17 | % Group addresses by affiliation; use superscriptaddress for long 18 | % author lists, or if there are many overlapping affiliations. 19 | % For Phys. Rev. appearance, change preprint to twocolumn. 20 | % Choose pra, prb, prc, prd, pre, prl, prstab, prstper, or rmp for journal 21 | % Add 'draft' option to mark overfull boxes with black boxes 22 | % Add 'showpacs' option to make PACS codes appear 23 | % Add 'showkeys' option to make keywords appear 24 | %\documentclass[aps,prl,preprint,groupedaddress]{revtex4-1} 25 | %\documentclass[aps,prl,preprint,superscriptaddress]{revtex4-1} 26 | %\documentclass[aps,prl,reprint,groupedaddress]{revtex4-1} 27 | 28 | \documentclass[% 29 | prl,preprint, 30 | %superscriptaddress, 31 | %groupedaddress, 32 | %unsortedaddress, 33 | %runinaddress, 34 | %frontmatterverbose, 35 | %preprint, 36 | %showpacs,preprintnumbers, 37 | %nofootinbib, 38 | %nobibnotes, 39 | %bibnotes, 40 | amsmath,amssymb, 41 | aps, 42 | %pra, 43 | %prb, 44 | %rmp, 45 | %prstab, 46 | %prstper, 47 | %floatfix, 48 | ]{revtex4-1} 49 | 50 | 51 | <%=@default_packages%> 52 | 53 | %\usepackage{babel} 54 | 55 | <%=@header%> 56 | 57 | \begin{document} 58 | 59 | \title{<%=@title%>} 60 | <% if !@alternative_author_string.to_s.empty? %> 61 | <%= @alternative_author_string %> 62 | <% else %> 63 | \author{<%=@first_author%>} 64 | \affiliation{<%=@first_affiliation%>} 65 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 66 | \author{<%=@coauthor_list[i]%>} 67 | \affiliation{<%=@coauthor_affiliations[i]%>} 68 | <% end %> 69 | <% end %> 70 | <% end %> 71 | 72 | <%= @abstract_begin_end %> 73 | 74 | 75 | %\pacs{Valid PACS appear here}% PACS, the Physics and Astronomy 76 | % Classification Scheme. 77 | %\keywords{Suggested keywords}%Use showkeys class option if keyword 78 | %display desired 79 | \maketitle 80 | -------------------------------------------------------------------------------- /styles/nsf.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass{proposalnsf} 2 | %\usepackage{epsfig} 3 | 4 | <%=@default_packages%> 5 | 6 | % NSF proposal generation template style file. 7 | % based on latex stylefiles written by Stefan Llewellyn Smith and 8 | % Sarah Gille, with contributions from other collaborators. 9 | 10 | \newcommand{\jas}{{\it J. Atmos. Sci.}} 11 | \newcommand{\jpo}{{\it J. Phys. Oceanogr.}} 12 | \newcommand{\JPO}{{\it J. Phys. Oceanogr.}} 13 | \newcommand{\jfm}{{\it J. Fluid Mech.}} 14 | \newcommand{\jgr}{{\it J. Geophys. Res.}} 15 | \newcommand{\JGR}{{\it J. Geophys. Res.}} 16 | \newcommand{\jmr}{{\it J. Mar. Res.}} 17 | \newcommand{\arfm}{{\it Ann. Rev. Fluid Mech.}} 18 | \newcommand{\dsr}{{\it Deep-Sea Res.}} 19 | \newcommand{\dao}{{\it Dyn. Atmos. Oceans}} 20 | \newcommand{\jam}{{\it Journal of Applied Meteorology}} 21 | \newcommand{\phfl}{{\it Phys. Fluids}} 22 | \newcommand{\phfla}{{\it Phys. Fluids A}} 23 | \newcommand{\PhilTrans}{{\it Philosophical Transactions of the Royal Society, 24 | London}} 25 | \newcommand{\gafd}{{\it Geophys. Astrophys. Fluid Dyn.}} 26 | \newcommand{\gfd}{{\it Geophys. Fluid Dyn.}} 27 | \newcommand{\PCE} {{\it Physics and Chemistry of the Earth}} 28 | \newcommand{\PRL} {{\it Physical Review Letters}} 29 | 30 | \newcommand{\mnras}{Monthly Notices of the Royal Astronomical Society} 31 | \newcommand{\apj}{Astrophysical Journal} 32 | \newcommand{\aj}{Astronomical Journal} 33 | \newcommand{\apjl}{Astrophysical Journal Letters} 34 | \newcommand{\apjs}{Astrophysical Journal Supplement} 35 | \newcommand{\aap}{Astronomy \& Astrophysics} 36 | \newcommand{\araa}{Annual Reviews of Astronomy and Astrophysics} 37 | \newcommand{\apss}{Astrophysics \& Space Science} 38 | \newcommand{\nat}{Nature} 39 | 40 | \newcommand{\ProgOc}{{\it Prog. Oceanography}} 41 | \newcommand{\WHOITR}{Woods Hole Oceanographic Institution Technical Report, WHOI-} 42 | \newcommand{\degrees}{$\!\!$\char23$\!$} 43 | \DeclareFontFamily{OT1}{psyr}{} 44 | \DeclareFontShape{OT1}{psyr}{m}{n}{<-> psyr}{} 45 | \def\times{{\fontfamily{psyr}\selectfont\char180}} 46 | 47 | <%=@header%> 48 | 49 | \renewcommand{\refname}{\centerline{References cited}} 50 | 51 | % this handles hanging indents for publications 52 | \def\rrr#1\\{\par 53 | \medskip\hbox{\vbox{\parindent=2em\hsize=6.12in 54 | \hangindent=4em\hangafter=1#1}}} 55 | 56 | \def\baselinestretch{0.931} 57 | 58 | \begin{document} 59 | 60 | \pagenumbering{arabic} 61 | \renewcommand{\thepage} {\arabic{page}} 62 | 63 | \noindent{\Large \bf PROJECT DESCRIPTION} 64 | \small 65 | 66 | 67 | -------------------------------------------------------------------------------- /styles/ajps.tex.erb: -------------------------------------------------------------------------------- 1 | % This is a LaTeX template for a submission to American Journal of Political Science 2 | % If you find any errors, please let me know: jjharden@unc.edu 3 | \documentclass[12pt, letterpaper]{article} 4 | 5 | %==============Packages & Commands================= 6 | \usepackage{graphicx} % Graphics 7 | \usepackage{indentfirst} % Tells LaTeX to indent every paragraph 8 | \usepackage{setspace} % To set line spacing 9 | \usepackage[longnamesfirst]{natbib} % For references 10 | \usepackage{booktabs} % For tables 11 | \usepackage{rotating} % For sideways tables/figures 12 | \usepackage{amsmath} % Some math symbols 13 | \usepackage[margin = 1in]{geometry} 14 | \usepackage{subfig} 15 | \usepackage{mdwlist} 16 | \usepackage{url} 17 | \usepackage{verbatim} 18 | \urlstyle{same} 19 | \usepackage{multirow} 20 | \usepackage[nolists]{endfloat} % Figures and tables at the end 21 | \newcommand{\R}{\texttt{R}\space} % Write R in typewriter font 22 | \newcommand{\trans}[1]{{#1}^{\ensuremath{\mathsf{T}}}} % Transpose symbol 23 | \bibpunct{(}{)}{;}{a}{}{,} % Reference punctuation 24 | \captionsetup[subfloat]{position = top, font = large} % For sub-figure captions 25 | 26 | <%=@default_packages%> 27 | 28 | %===============Some new commands================== 29 | \newcommand{\fnote}[1]{\footnote{\begin{doublespace}\normalsize{#1}\vspace{-26pt}\end{doublespace}}} % 12 pt, double spaced footnotes 30 | \renewcommand{\figureplace}{ % This places [Insert Table X here] and [Insert Figure Y here] in the text 31 | \begin{center} 32 | [Insert \figurename~\thepostfig\ here] 33 | \end{center}} 34 | \renewcommand{\tableplace}{% 35 | \begin{center} 36 | [Insert \tablename~\theposttbl\ here] 37 | \end{center}} 38 | 39 | <%=@header%> 40 | 41 | %============Article Title, Authors================ 42 | \title{<%=@title%>} 43 | 44 | <% if !@alternative_author_string.to_s.empty? %> 45 | <%= @alternative_author_string %> 46 | <% else %> 47 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%><% end %><% end %>} 48 | <% end %> 49 | 50 | %===================Startup======================== 51 | \begin{document} 52 | \maketitle 53 | \doublespacing 54 | \vspace{5.5in} 55 | \thispagestyle{empty} 56 | %===================Abstract======================= 57 | \newpage 58 | \thispagestyle{empty} 59 | \begin{abstract} 60 | \begin{normalsize} 61 | \noindent <%=@abstract%> 62 | 63 | \end{normalsize} 64 | \end{abstract} 65 | 66 | %================Begin Manuscript================== 67 | \newpage 68 | 69 | 70 | -------------------------------------------------------------------------------- /styles/imsart_aas.tex.erb: -------------------------------------------------------------------------------- 1 | % Template for the submission to: 2 | % The Annals of Probability [aop] 3 | % The Annals of Applied Probability [aap] 4 | % The Annals of Statistics [aos] 5 | % The Annals of Applied Statistics [aoas] 6 | % Stochastic Systems [ssy] 7 | % 8 | %Author: In this template, the places where you need to add information 9 | % (or delete line) are indicated by {???}. Mostly the information 10 | % required is obvious, but some explanations are given in lines starting 11 | %Author: 12 | %All other lines should be ignored. After editing, there should be 13 | %no instances of ??? after this line. 14 | 15 | % use option [preprint] to remove info line at bottom 16 | % journal options: aop,aap,aos,aoas,ssy 17 | % natbib option: authoryear 18 | \documentclass[aoas,preprint]{imsart} 19 | 20 | <%=@default_packages%> 21 | 22 | %\usepackage{amsthm,amsmath,natbib} 23 | %\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue]{hyperref} 24 | 25 | % provide arXiv number if available: 26 | %\arxiv{arXiv:0000.0000} 27 | 28 | <%=@header%> 29 | 30 | % put your definitions there: 31 | %\startlocaldefs 32 | %\endlocaldefs 33 | 34 | \begin{document} 35 | 36 | \begin{frontmatter} 37 | 38 | % "Title of the paper" 39 | \title{<%=@title%>} 40 | \runtitle{<%=@short_title%>} 41 | <% if !@alternative_author_string.to_s.empty? %> 42 | <%= @alternative_author_string %> 43 | <% else %> 44 | \author{<%=@first_author%>\thanksref{1}} 45 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 46 | \and \author{<%=@coauthor_list[i]%>\thanksref{<%=i+2%>}}<% end %><% end %> 47 | 48 | \runauthor{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>} 49 | 50 | 51 | \affiliation{<%=@first_affiliation%>\thanksmark{1}} 52 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 53 | \affiliation{<%=@coauthor_affiliations[i]%>\thanksmark{<%=i+2%>}} 54 | <% end %><% end %> 55 | <% end %> 56 | 57 | <%= @abstract_begin_end %> 58 | 59 | 60 | %\begin{keyword}[class=MSC] 61 | %\kwd[Primary ]{} 62 | %\kwd{} 63 | %\kwd[; secondary ]{} 64 | %\end{keyword} 65 | 66 | %\begin{keyword} 67 | %\kwd{} 68 | %\kwd{} 69 | %\end{keyword} 70 | 71 | \end{frontmatter} 72 | 73 | % AOS,AOAS: If there are supplements please fill: 74 | %\begin{supplement}[id=suppA] 75 | % \sname{Supplement A} 76 | % \stitle{Title} 77 | % \slink[doi]{10.1214/00-AOASXXXXSUPP} 78 | % \sdatatype{.pdf}" 79 | % \sdescription{Some text} 80 | %\end{supplement} 81 | 82 | 83 | -------------------------------------------------------------------------------- /styles/imsart_as.tex.erb: -------------------------------------------------------------------------------- 1 | % Template for the submission to: 2 | % The Annals of Probability [aop] 3 | % The Annals of Applied Probability [aap] 4 | % The Annals of Statistics [aos] 5 | % The Annals of Applied Statistics [aoas] 6 | % Stochastic Systems [ssy] 7 | % 8 | %Author: In this template, the places where you need to add information 9 | % (or delete line) are indicated by {???}. Mostly the information 10 | % required is obvious, but some explanations are given in lines starting 11 | %Author: 12 | %All other lines should be ignored. After editing, there should be 13 | %no instances of ??? after this line. 14 | 15 | % use option [preprint] to remove info line at bottom 16 | % journal options: aop,aap,aos,aoas,ssy 17 | % natbib option: authoryear 18 | \documentclass[aos,preprint]{imsart} 19 | 20 | <%=@default_packages%> 21 | 22 | %\usepackage{amsthm,amsmath,natbib} 23 | %\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue]{hyperref} 24 | 25 | % provide arXiv number if available: 26 | %\arxiv{arXiv:0000.0000} 27 | 28 | <%=@header%> 29 | 30 | % put your definitions there: 31 | %\startlocaldefs 32 | %\endlocaldefs 33 | 34 | \begin{document} 35 | 36 | \begin{frontmatter} 37 | 38 | % "Title of the paper" 39 | \title{<%=@title%>} 40 | \runtitle{<%=@short_title%>} 41 | <% if !@alternative_author_string.to_s.empty? %> 42 | <%= @alternative_author_string %> 43 | <% else %> 44 | \author{<%=@first_author%>\thanksref{1}} 45 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 46 | \and \author{<%=@coauthor_list[i]%>\thanksref{<%=i+2%>}}<% end %><% end %> 47 | 48 | \runauthor{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>} 49 | 50 | 51 | \affiliation{<%=@first_affiliation%>\thanksmark{1}} 52 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 53 | \affiliation{<%=@coauthor_affiliations[i]%>\thanksmark{<%=i+2%>}} 54 | <% end %><% end %> 55 | <% end %> 56 | 57 | <%= @abstract_begin_end %> 58 | 59 | 60 | %\begin{keyword}[class=MSC] 61 | %\kwd[Primary ]{} 62 | %\kwd{} 63 | %\kwd[; secondary ]{} 64 | %\end{keyword} 65 | 66 | %\begin{keyword} 67 | %\kwd{} 68 | %\kwd{} 69 | %\end{keyword} 70 | 71 | \end{frontmatter} 72 | 73 | % AOS,AOAS: If there are supplements please fill: 74 | %\begin{supplement}[id=suppA] 75 | % \sname{Supplement A} 76 | % \stitle{Title} 77 | % \slink[doi]{10.1214/00-AOASXXXXSUPP} 78 | % \sdatatype{.pdf}" 79 | % \sdescription{Some text} 80 | %\end{supplement} 81 | 82 | 83 | -------------------------------------------------------------------------------- /styles/epjc.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%% file template.tex %%%%%%%%%%%%%%%%%%%%%%%%% 2 | % 3 | % This is a template file for the LaTeX package SVJour3 width change file svepjc3.clo 4 | % for Springer journal: 5 | % The European Physical Journal C 6 | % 7 | % Copy it to a new file with a new name and use it as the basis 8 | % for your article. Delete % signs as needed. 9 | % 10 | % This template includes a few options for different layouts and 11 | % content for various journals. Please consult a previous issue of 12 | % your journal as needed. 13 | % 14 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15 | % 16 | % First comes an example EPS file -- just ignore it and 17 | % proceed on the \documentclass line 18 | % your LaTeX will extract the file if required 19 | 20 | 21 | \documentclass[twocolumn,epjc3]{svjour3} 22 | % 23 | \smartqed % flush right qed marks, e.g. at end of proof 24 | % 25 | \RequirePackage{graphicx} 26 | % 27 | % \RequirePackage{mathptmx} % use Times fonts if available on your TeX system 28 | % 29 | % insert here the call for the packages your document requires 30 | %\RequirePackage{latexsym} 31 | %\RequirePackage[numbers,sort&compress]{natbib} 32 | %\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue,linkcolor=blue]{hyperref} 33 | % etc. 34 | % 35 | % please place your own definitions here and don't use \def but 36 | % \newcommand{}{} 37 | % 38 | 39 | <%=@header%> 40 | 41 | 42 | \journalname{Eur. Phys. J. C} 43 | % 44 | \begin{document} 45 | 46 | \title{<%=@title%>} 47 | 48 | \titlerunning{<%=@short_title%>} % if too long for running head 49 | 50 | 51 | <% if !@alternative_author_string.to_s.empty? %> 52 | <%= @alternative_author_string %> 53 | <% else %> 54 | \author{<%=@first_author%>\thanksref{1}% 55 | %<% @coauthor_list.each_with_index do |item, index| %> 56 | \and <%=item%>\thanksref{<%=index+2%>} 57 | %<% end %> 58 | } 59 | 60 | \institute{<%=@first_affiliation%>\label{1} 61 | <% @coauthor_affiliations.each_with_index do |item, index| %> 62 | \and <%=item%>\label{<%=index+2%>} 63 | <% end %> 64 | } 65 | <% end %> 66 | 67 | 68 | % \date{Received: date / Accepted: date} 69 | % The correct dates will be entered by the editor 70 | 71 | 72 | \maketitle 73 | 74 | <%= @abstract_begin_end %> 75 | 76 | % BibTeX users please use one of 77 | %\bibliographystyle{spbasic} % basic style, author-year citations 78 | %\bibliographystyle{spmpsci} % mathematics and physical sciences 79 | %\bibliographystyle{spphys} % APS-like style for physics 80 | %\bibliography{} % name your BibTeX data base 81 | 82 | -------------------------------------------------------------------------------- /styles/jacow.tex.erb: -------------------------------------------------------------------------------- 1 | \documentclass[letterpaper, %a4paper 2 | %boxit, 3 | %titlepage, % separate title page 4 | %refpage % separate references 5 | ]{jacow} 6 | % 7 | % CHANGE SEQUENCE OF GRAPHICS EXTENSION TO BE EMBEDDED 8 | % ---------------------------------------------------- 9 | % test for XeTeX where the sequence is by default eps-> pdf, jpg, png, pdf, ... 10 | % and the JACoW template provides JACpic2v3.eps and JACpic2v3.jpg which 11 | % might generates errors, therefore PNG and JPG first 12 | % 13 | \makeatletter% 14 | \ifboolexpr{bool{xetex}} 15 | {\renewcommand{\Gin@extensions}{.pdf,% 16 | .png,.jpg,.bmp,.pict,.tif,.psd,.mac,.sga,.tga,.gif,% 17 | .eps,.ps,% 18 | }}{} 19 | \makeatother 20 | 21 | <%= @default_packages %> 22 | \usepackage[final]{pdfpages} 23 | %\usepackage{multirow} 24 | \usepackage{ragged2e} 25 | 26 | % 27 | % if BibLaTeX is used 28 | % 29 | \ifboolexpr{bool{jacowbiblatex}}% 30 | {% 31 | \addbibresource{jacow-test.bib} 32 | \addbibresource{biblatex-examples.bib} 33 | }{} 34 | \listfiles 35 | 36 | % 37 | % command for typesetting a \section like word 38 | % 39 | \newcommand\SEC[1]{\textbf{\uppercase{#1}}} 40 | 41 | %% 42 | %% Lengths for the spaces in the title 43 | %% \setlength\titleblockstartskip{..} %before title, default 3pt 44 | %% \setlength\titleblockmiddleskip{..} %between title + author, default 1em 45 | %% \setlength\titleblockendskip{..} %afterauthor, default 1em 46 | 47 | %\copyrightspace %default 1cm. arbitrary size with e.g. \copyrightspace[2cm] 48 | 49 | % testing to fill the copyright space 50 | %\usepackage{eso-pic} 51 | %\AddToShipoutPictureFG*{\AtTextLowerLeft{\textcolor{red}{COPYRIGHTSPACE}}} 52 | 53 | 54 | <%=@header%> 55 | 56 | \begin{document} 57 | 58 | \title{<%=@title%>} 59 | 60 | \author{A. N. Author\thanks{email address}, H. Co-author, Name of Institute or Affiliation, City, Country \\ 61 | P. Contributor\textsuperscript{1}, Name of Institute or Affiliation, City, Country \\ 62 | \textsuperscript{1}also at Name of Secondary Institute or Affiliation, City, Country} 63 | 64 | 65 | <% if !@alternative_author_string.to_s.empty? %> 66 | <%= @alternative_author_string %> 67 | <% else %> 68 | \author{<%=@first_author%>, <%=@first_affiliation%> 69 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>\\ 70 | <%=@coauthor_list[i]%>\textsuperscript{<%=i+2%>}, <%=@coauthor_affiliations[i]%><% end %><% end %>} 71 | <% end %> 72 | 73 | \maketitle 74 | 75 | <%= @abstract_begin_end %> 76 | 77 | 78 | -------------------------------------------------------------------------------- /styles/lncs.tex.erb: -------------------------------------------------------------------------------- 1 | 2 | %%%%%%%%%%%%%%%%%%%%%%% file typeinst.tex %%%%%%%%%%%%%%%%%%%%%%%%% 3 | % 4 | % This is the LaTeX source for the instructions to authors using 5 | % the LaTeX document class 'llncs.cls' for contributions to 6 | % the Lecture Notes in Computer Sciences series. 7 | % http://www.springer.com/lncs Springer Heidelberg 2006/05/04 8 | % 9 | % It may be used as a template for your own input - copy it 10 | % to a new file with a new name and use it as the basis 11 | % for your article. 12 | % 13 | % NB: the document class 'llncs' has its own and detailed documentation, see 14 | % ftp://ftp.springer.de/data/pubftp/pub/tex/latex/llncs/latex2e/llncsdoc.pdf 15 | % 16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17 | 18 | 19 | \documentclass[runningheads,a4paper]{llncs} 20 | 21 | <%=@default_packages%> 22 | 23 | \usepackage{amssymb} 24 | \setcounter{tocdepth}{3} 25 | %\usepackage{graphicx} 26 | 27 | \urldef{\mailsa}\path|{alfred.hofmann, ursula.barth, ingrid.haas, frank.holzwarth,| 28 | \urldef{\mailsb}\path|anna.kramer, leonie.kunz, christine.reiss, nicole.sator,| 29 | \urldef{\mailsc}\path|erika.siebert-cole, peter.strasser, lncs}@springer.com| 30 | \newcommand{\keywords}[1]{\par\addvspace\baselineskip 31 | \noindent\keywordname\enspace\ignorespaces#1} 32 | 33 | <%=@header%> 34 | 35 | \begin{document} 36 | 37 | \mainmatter % start of an individual contribution 38 | 39 | % first the title is needed 40 | \title{<%=@title%>} 41 | 42 | % a short form should be given in case it is too long for the running head 43 | \titlerunning{<%=@short_title%>} 44 | 45 | % the name(s) of the author(s) follow(s) next 46 | % 47 | % NB: Chinese authors should write their first names(s) in front of 48 | % their surnames. This ensures that the names appear correctly in 49 | % the running heads and the author index. 50 | % 51 | <% if !@alternative_author_string.to_s.empty? %> 52 | <%= @alternative_author_string %> 53 | <% else %> 54 | \author{<%=@first_author%>% 55 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>\and <%=@coauthor_list[i]%><% end %><% end %>} 56 | 57 | % the affiliations are given next; don't give your e-mail address 58 | % unless you accept that it will be published 59 | \institute{<%=@first_affiliation%>} 60 | <% end %> 61 | % 62 | % NB: a more complex sample for affiliations and the mapping to the 63 | % corresponding authors can be found in the file "llncs.dem" 64 | % (search for the string "\mainmatter" where a contribution starts). 65 | % "llncs.dem" accompanies the document class "llncs.cls". 66 | % 67 | 68 | \toctitle{Lecture Notes in Computer Science} 69 | \tocauthor{<%=@title%>} 70 | \maketitle 71 | 72 | 73 | <%= @abstract_begin_end %> 74 | 75 | 76 | -------------------------------------------------------------------------------- /styles/uiowa.tex.erb: -------------------------------------------------------------------------------- 1 | % thesis.tex (starting point of my thesis) 2 | 3 | % Declare overall type of document (use 12pt report class): 4 | \documentclass[12pt]{report} 5 | <%=@default_packages%> 6 | 7 | % Import uithesisXX.sty file: 8 | \usepackage{uithesis03} 9 | 10 | % Some examples (yours may be different): 11 | \newtheorem{theorem}{Theorem}[section] 12 | \newtheorem{lemma}[theorem]{Lemma} 13 | \newcommand{\bfx}{{\ensuremath{\mathbf{x}}}} 14 | \newcommand{\thetadd}{{\ensuremath{\bar{\theta}^{(\cdot)}_\cdot}}} 15 | 16 | 17 | <%=@header%> 18 | 19 | \begin{document} 20 | 21 | 22 | % prelude.tex (specification of which features in `uithesisXX.sty' you 23 | % are using, your personal information, and your title & abstract) 24 | 25 | % Specify features of `uithesisXX.sty' you want to use: 26 | \abtitlepgtrue % special title page announcing your abstract, not to 27 | % be bound with thesis (required) 28 | \abstractpgtrue % special version of your abstract suitable for 29 | % microfilming, not to be bound with thesis (required) 30 | \titlepgtrue % main title page (required) 31 | \copyrighttrue % copyright page (optional) 32 | \signaturepagetrue % page for thesis committee signatures (required) 33 | \dedicationtrue % dedication page (optional) 34 | \acktrue % acknowledgments page (optional) 35 | \abswithesistrue % abstract to be bound with thesis (optional) 36 | \tablecontentstrue % table of contents page (required) 37 | \tablespagetrue % table of contents page for tables (required only if you 38 | % have tables) 39 | \figurespagetrue % table of contents page for figures (required only if 40 | % you have figures) 41 | 42 | \title{<%=@title%>} % use all capital letters 43 | 44 | <% if !@alternative_author_string.to_s.empty? %> 45 | <%= @alternative_author_string %> 46 | <% else %> 47 | \author{<%=@first_author%>} % use mixed upper & lower case 48 | <% end %> 49 | \advisor{Title and Name of My Advisor} % example: 50 | % Associate Professor John Doe 51 | \dept{Department} % your academic department 52 | \submitdate{Date} % month & year of your graduation 53 | 54 | \newcommand{\abstextwithesis} 55 | {<%=@abstract%>} 56 | 57 | \newcommand{\abstracttext} 58 | {<%=@abstract%>} 59 | 60 | \newcommand{\dedication} 61 | { This is optional; start with the word ``To''; you do not need to end with 62 | a period } 63 | 64 | \newcommand{\acknowledgement} 65 | { This is also optional. Use complete sentences here. } 66 | 67 | % Take care of things in `uithesisXX.sty' behind the scenes (it sounds 68 | % weird, but you need these commands): 69 | \beforepreface 70 | \afterpreface 71 | 72 | % newcom.tex (new command definitions) 73 | 74 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /styles/acm.tex.erb: -------------------------------------------------------------------------------- 1 | % v2-acmsmall-sample.tex, dated March 6 2012 2 | % This is a sample file for ACM small trim journals 3 | % 4 | % Compilation using 'acmsmall.cls' - version 1.3 (March 2012), Aptara Inc. 5 | % (c) 2010 Association for Computing Machinery (ACM) 6 | % 7 | % Questions/Suggestions/Feedback should be addressed to => "acmtexsupport@aptaracorp.com". 8 | % Users can also go through the FAQs available on the journal's submission webpage. 9 | % 10 | % Steps to compile: latex, bibtex, latex latex 11 | % 12 | % For tracking purposes => this is v1.3 - March 2012 13 | 14 | \documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax 15 | 16 | % Package to generate and customize Algorithm as per ACM style 17 | \usepackage[ruled]{algorithm2e} 18 | \renewcommand{\algorithmcfname}{ALGORITHM} 19 | \SetAlFnt{\small} 20 | \SetAlCapFnt{\small} 21 | \SetAlCapNameFnt{\small} 22 | \SetAlCapHSkip{0pt} 23 | \IncMargin{-\parindent} 24 | 25 | <%=@default_packages%> 26 | 27 | % Metadata Information 28 | \acmVolume{1} 29 | \acmNumber{1} 30 | \acmArticle{1} 31 | \acmYear{2013} 32 | \acmMonth{1} 33 | 34 | % Document starts 35 | \begin{document} 36 | 37 | % Page heads 38 | \markboth{<%=@first_author%>}{<%=@title%>} 39 | 40 | % Title portion 41 | \title{<%=@title%>} 42 | <% if !@alternative_author_string.to_s.empty? %> 43 | <%= @alternative_author_string %> 44 | <% else %> 45 | \author{<%=@first_author%>\affil{<%=@first_affiliation%>}<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> <%=@coauthor_list[i]%>\affil{<%=@coauthor_affiliations[i]%>}<% end %><% end %>} 46 | <% end %> 47 | 48 | <%= @abstract_begin_end %> 49 | 50 | <%=@header%> 51 | 52 | 53 | %\category{C.2.2}{Computer-Communication Networks}{Network Protocols} 54 | 55 | %\terms{Design, Algorithms, Performance} 56 | 57 | %\keywords{Wireless sensor networks, media access control, multi-channel, radio interference, time synchronization} 58 | 59 | %\acmformat{} 60 | % At a minimum you need to supply the author names, year and a title. 61 | % IMPORTANT: 62 | % Full first names whenever they are known, surname last, followed by a period. 63 | % In the case of two authors, 'and' is placed between them. 64 | % In the case of three or more authors, the serial comma is used, that is, all author names 65 | % except the last one but including the penultimate author's name are followed by a comma, 66 | % and then 'and' is placed before the final author's name. 67 | % If only first and middle initials are known, then each initial 68 | % is followed by a period and they are separated by a space. 69 | % The remaining information (journal title, volume, article number, date, etc.) is 'auto-generated'. 70 | 71 | %\begin{bottomstuff} 72 | %\end{bottomstuff} 73 | 74 | \maketitle 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /styles/osaexpress.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % File: OpEx_style.tex % 3 | % Date: Sept. 2, 2009 % 4 | % % 5 | % LaTeX template file for use with % 6 | % OSA's journal Optics Express % 7 | % % 8 | % send comments to Jennifer Mayfield, jmayfi@osa.org % 9 | % % 10 | % This file requires style file, opex3.sty, under % 11 | % the LaTeX article class % 12 | % % 13 | % \documentclass[10pt,letterpaper]{article} % 14 | % \usepackage{opex3} % 15 | % % 16 | % Note that our online submission system does not % 17 | % currently process PDFLaTeX; if PDFLaTeX must be % 18 | % used, pls. contact OpEx staff, and we will process % 19 | % manually % 20 | % % 21 | % % 22 | % (c) 2009 Optical Society of America % 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | 25 | %%%%%%%%%%%%%%%%%%%%%%% preamble %%%%%%%%%%%%%%%%%%%%%%%%%%% 26 | \documentclass[10pt,letterpaper]{article} 27 | \usepackage{opex3} 28 | 29 | <%=@default_packages%> 30 | 31 | <%=@header%> 32 | 33 | 34 | %%%%%%%%%%%%%%%%%%%%%%% begin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 35 | \begin{document} 36 | 37 | %% NOTE: TITLE PAGE & TOC NOT USED FOR MANUSCRIPT SUBMISSIONS %% 38 | \title{<%=@title%>} 39 | 40 | \vskip4pc 41 | 42 | \tableofcontents 43 | \clearpage 44 | %% NO TITLE PAGE FOR OPEX SUBMISSIONS %% 45 | 46 | %% START HERE 47 | %%%%%%%%%%%%%%%%%% title page information %%%%%%%%%%%%%%%%%% 48 | \title{<%=@title%>} 49 | 50 | <% if !@alternative_author_string.to_s.empty? %> 51 | <%= @alternative_author_string %> 52 | <% else %> 53 | \author{<%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %>} 54 | <% end %> 55 | 56 | \address{ 57 | $^{1}$<%=@first_affiliation%>\\ 58 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>\\ 59 | $^{<%=i+2%>}$<%=@coauthor_affiliations[i]%> \\<% end %><% end %> 60 | } 61 | 62 | %\email{opex@osa.org} %% email address is required 63 | 64 | % \homepage{http:...} %% author's URL, if desired 65 | 66 | %%%%%%%%%%%%%%%%%%% abstract and OCIS codes %%%%%%%%%%%%%%%% 67 | %% [use \begin{abstract*}...\end{abstract*} if exempt from copyright] 68 | 69 | <%= @abstract_begin_end %> 70 | 71 | %\ocis{(000.0000) General.} % REPLACE WITH CORRECT OCIS CODES FOR YOUR ARTICLE 72 | 73 | 74 | -------------------------------------------------------------------------------- /styles/spie.tex.erb: -------------------------------------------------------------------------------- 1 | % article.tex (Version 3.3, released 19 January 2008) 2 | % Article to demonstrate format for SPIE Proceedings 3 | % Special instructions are included in this file after the 4 | % symbol %>>>> 5 | % Numerous commands are commented out, but included to show how 6 | % to effect various options, e.g., to print page numbers, etc. 7 | % This LaTeX source file is composed for LaTeX2e. 8 | 9 | % The following commands have been added in the SPIE class 10 | % file (spie.cls) and will not be understood in other classes: 11 | % \supit{}, \authorinfo{}, \skiplinehalf, \keywords{} 12 | % The bibliography style file is called spiebib.bst, 13 | % which replaces the standard style unstr.bst. 14 | 15 | \documentclass[]{spie} %>>> use for US letter paper 16 | %%\documentclass[a4paper]{spie} %>>> use this instead for A4 paper 17 | %%\documentclass[nocompress]{spie} %>>> to avoid compression of citations 18 | %% \addtolength{\voffset}{9mm} %>>> moves text field down 19 | %% \renewcommand{\baselinestretch}{1.65} %>>> 1.65 for double spacing, 1.25 for 1.5 spacing 20 | % The following command loads a graphics package to include images 21 | % in the document. It may be necessary to specify a DVI driver option, 22 | % e.g., [dvips], but that may be inappropriate for some LaTeX 23 | % installations. 24 | \usepackage[]{graphicx} 25 | 26 | <%=@default_packages%> 27 | 28 | \title{<%=@title%>} 29 | 30 | %>>>> The author is responsible for formatting the 31 | % author list and their affiliations. Use \\ to force linebreaks. 32 | % The correspondence between each author and his/her address 33 | % can be indicated with a superscript, 34 | % which is easily obtained with \supscr{}. 35 | %>>>> After the abstract, the author must include 36 | % a list of keywords and contact information for the corresponding author. 37 | 38 | 39 | <% if !@alternative_author_string.to_s.empty? %> 40 | <%= @alternative_author_string %> 41 | <% else %> 42 | \author{<%=@first_author%>\supit{1} <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>and <%=@coauthor_list[i]%>\supit{<%=i+2%>}<% end %><% end %> 43 | \skiplinehalf 44 | \supit{1}<%=@first_affiliation%> 45 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>\\ 46 | \supit{<%=i+2%>}<%=@coauthor_affiliations[i]%><% end %><% end %>} 47 | 48 | %>>>> Further information about the authors, other than their 49 | % institution and addresses, should be included as a footnote, 50 | % which is facilitated by the \authorinfo{} command. 51 | 52 | \authorinfo{} 53 | %%>>>> when using amstex, you need to use @@ instead of @ 54 | <% end %> 55 | 56 | <%=@header%> 57 | 58 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 59 | %>>>> uncomment following for page numbers 60 | % \pagestyle{plain} 61 | %>>>> uncomment following to start page numbering at 301 62 | %\setcounter{page}{301} 63 | 64 | \begin{document} 65 | \maketitle 66 | 67 | <%= @abstract_begin_end %> 68 | 69 | -------------------------------------------------------------------------------- /styles/sigplan.tex.erb: -------------------------------------------------------------------------------- 1 | %----------------------------------------------------------------------------- 2 | % 3 | % Template for sigplanconf LaTeX Class 4 | % 5 | % Name: sigplanconf-template.tex 6 | % 7 | % Purpose: A template for sigplanconf.cls, which is a LaTeX 2e class 8 | % file for SIGPLAN conference proceedings. 9 | % 10 | % Guide: Refer to "Author's Guide to the ACM SIGPLAN Class," 11 | % sigplanconf-guide.pdf 12 | % 13 | % Author: Paul C. Anagnostopoulos 14 | % Windfall Software 15 | % 978 371-2316 16 | % paul@windfall.com 17 | % 18 | % Created: 15 February 2005 19 | % 20 | %----------------------------------------------------------------------------- 21 | 22 | 23 | \documentclass{sigplanconf} 24 | 25 | % The following \documentclass options may be useful: 26 | 27 | % preprint Remove this option only once the paper is in final form. 28 | % 10pt To set in 10-point type instead of 9-point. 29 | % 11pt To set in 11-point type instead of 9-point. 30 | % authoryear To obtain author/year citation style instead of numeric. 31 | 32 | %\usepackage{amsmath} 33 | <%=@default_packages%> 34 | 35 | <%=@header%> 36 | 37 | 38 | \begin{document} 39 | 40 | \special{papersize=8.5in,11in} 41 | \setlength{\pdfpageheight}{\paperheight} 42 | \setlength{\pdfpagewidth}{\paperwidth} 43 | 44 | \conferenceinfo{CONF '14}{June 22--27, 2014, Baltimore, PA, USA} 45 | \copyrightyear{2014} 46 | \copyrightdata{978-1-nnnn-nnnn-n/yy/mm} 47 | \doi{nnnnnnn.nnnnnnn} 48 | 49 | % Uncomment one of the following two, if you are not going for the 50 | % traditional copyright transfer agreement. 51 | 52 | %\exclusivelicense % ACM gets exclusive license to publish, 53 | % you retain copyright 54 | 55 | %\permissiontopublish % ACM gets nonexclusive license to publish 56 | % (paid open-access papers, 57 | % short abstracts) 58 | 59 | \titlebanner{banner above paper title} % These are ignored unless 60 | \preprintfooter{short description of paper} % 'preprint' option specified. 61 | 62 | \title{<%=@title%>} 63 | %\subtitle{Subtitle Text, if any} 64 | 65 | <% if !@alternative_author_string.to_s.empty? %> 66 | <%= @alternative_author_string %> 67 | <% else %> 68 | \authorinfo{<%=@first_author%>} 69 | {<%=@first_affiliation%>} 70 | {} 71 | 72 | <% if !@coauthor_list.to_a.empty? %> 73 | <% for i in (0..@coauthor_list.length-1) %> 74 | \authorinfo{<%=@coauthor_list[i]%>} 75 | {<%=@coauthor_affiliations[i]%>} 76 | {} 77 | <% end %> 78 | <% end %> 79 | <% end %> 80 | 81 | \maketitle 82 | 83 | <%= @abstract_begin_end %> 84 | 85 | %\category{CR-number}{subcategory}{third-level} 86 | 87 | % general terms are not compulsory anymore, 88 | % you may leave them out 89 | %\terms 90 | %term1, term2 91 | 92 | %\keywords 93 | %keyword1, keyword2 94 | 95 | -------------------------------------------------------------------------------- /styles/aj_manuscript.tex.erb: -------------------------------------------------------------------------------- 1 | %\documentclass[10pt,flushrt,preprint]{aastex} 2 | 3 | \documentclass[manuscript]{aastex} 4 | 5 | <%=@default_packages%> 6 | 7 | %\usepackage{natbib} 8 | 9 | <%=@header%> 10 | 11 | %% preprint2 produces a double-column, single-spaced document: 12 | 13 | %% \documentclass[preprint2]{aastex} 14 | 15 | %% Sometimes a paper's abstract is too long to fit on the 16 | %% title page in preprint2 mode. When that is the case, 17 | %% use the longabstract style option. 18 | 19 | %% \documentclass[preprint2,longabstract]{aastex} 20 | 21 | %% If you want to create your own macros, you can do so 22 | %% using \newcommand. Your macros should appear before 23 | %% the \begin{document} command. 24 | %% 25 | %% If you are submitting to a journal that translates manuscripts 26 | %% into SGML, you need to follow certain guidelines when preparing 27 | %% your macros. See the AASTeX v5.x Author Guide 28 | %% for information. 29 | 30 | 31 | %% You can insert a short comment on the title page using the command below. 32 | 33 | \slugcomment{To appear in The Astronomical Journal (AJ)} 34 | 35 | %% If you wish, you may supply running head information, although 36 | %% this information may be modified by the editorial offices. 37 | %% The left head contains a list of authors, 38 | %% usually a maximum of three (otherwise use et al.). The right 39 | %% head is a modified title of up to roughly 44 characters. 40 | %% Running heads will not print in the manuscript style. 41 | 42 | \shorttitle{<%=@title%>} 43 | \shortauthors{<%=@first_author%>} 44 | 45 | %% This is the end of the preamble. Indicate the beginning of the 46 | %% paper itself with \begin{document}. 47 | 48 | \begin{document} 49 | 50 | %% LaTeX will automatically break titles if they run longer than 51 | %% one line. However, you may use \\ to force a line break if 52 | %% you desire. 53 | 54 | \title{<%=@title%>} 55 | 56 | %% Use \author, \affil, and the \and command to format 57 | %% author and affiliation information. 58 | %% Note that \email has replaced the old \authoremail command 59 | %% from AASTeX v4.0. You can use \email to mark an email address 60 | %% anywhere in the paper, not just in the front matter. 61 | %% As in the title, use \\ to force line breaks. 62 | <% if !@alternative_author_string.to_s.empty? %> 63 | <%= @alternative_author_string %> 64 | <% else %> 65 | \author{<%=@first_author%>\affil{<%=@first_affiliation%>}<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> <%=@coauthor_list[i]%>\affil{<%=@coauthor_affiliations[i]%>}<% end %><% end %>} 66 | <% end %> 67 | 68 | <%= @abstract_begin_end %> 69 | 70 | 71 | %% Keywords should appear after the \end{abstract} command. The uncommented 72 | %% example has been keyed in ApJ style. See the instructions to authors 73 | %% for the journal to which you are submitting your paper to determine 74 | %% what keyword punctuation is appropriate. 75 | 76 | %\keywords{globular clusters: general --- globular clusters: individual(NGC 6397, NGC 6624, NGC 7078, Terzan 8} 77 | -------------------------------------------------------------------------------- /styles/apj_manuscript.tex.erb: -------------------------------------------------------------------------------- 1 | %\documentclass[10pt,flushrt,preprint]{aastex} 2 | 3 | \documentclass[manuscript]{aastex} 4 | 5 | <%=@default_packages%> 6 | 7 | %\usepackage{babel} 8 | 9 | <%=@header%> 10 | 11 | %% preprint2 produces a double-column, single-spaced document: 12 | 13 | %% \documentclass[preprint2]{aastex} 14 | 15 | %% Sometimes a paper's abstract is too long to fit on the 16 | %% title page in preprint2 mode. When that is the case, 17 | %% use the longabstract style option. 18 | 19 | %% \documentclass[preprint2,longabstract]{aastex} 20 | 21 | %% If you want to create your own macros, you can do so 22 | %% using \newcommand. Your macros should appear before 23 | %% the \begin{document} command. 24 | %% 25 | %% If you are submitting to a journal that translates manuscripts 26 | %% into SGML, you need to follow certain guidelines when preparing 27 | %% your macros. See the AASTeX v5.x Author Guide 28 | %% for information. 29 | 30 | 31 | %% You can insert a short comment on the title page using the command below. 32 | 33 | \slugcomment{To appear in The Astrophysical Journal (ApJ)} 34 | 35 | %% If you wish, you may supply running head information, although 36 | %% this information may be modified by the editorial offices. 37 | %% The left head contains a list of authors, 38 | %% usually a maximum of three (otherwise use et al.). The right 39 | %% head is a modified title of up to roughly 44 characters. 40 | %% Running heads will not print in the manuscript style. 41 | 42 | \shorttitle{<%=@title%>} 43 | \shortauthors{<%=@first_author%>} 44 | 45 | %% This is the end of the preamble. Indicate the beginning of the 46 | %% paper itself with \begin{document}. 47 | 48 | \begin{document} 49 | 50 | %% LaTeX will automatically break titles if they run longer than 51 | %% one line. However, you may use \\ to force a line break if 52 | %% you desire. 53 | 54 | \title{<%=@title%>} 55 | 56 | %% Use \author, \affil, and the \and command to format 57 | %% author and affiliation information. 58 | %% Note that \email has replaced the old \authoremail command 59 | %% from AASTeX v4.0. You can use \email to mark an email address 60 | %% anywhere in the paper, not just in the front matter. 61 | %% As in the title, use \\ to force line breaks. 62 | <% if !@alternative_author_string.to_s.empty? %> 63 | <%= @alternative_author_string %> 64 | <% else %> 65 | \author{<%=@first_author%>\affil{<%=@first_affiliation%>}<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> <%=@coauthor_list[i]%>\affil{<%=@coauthor_affiliations[i]%>}<% end %><% end %>} 66 | <% end %> 67 | 68 | <%= @abstract_begin_end %> 69 | 70 | 71 | %% Keywords should appear after the \end{abstract} command. The uncommented 72 | %% example has been keyed in ApJ style. See the instructions to authors 73 | %% for the journal to which you are submitting your paper to determine 74 | %% what keyword punctuation is appropriate. 75 | 76 | %\keywords{globular clusters: general --- globular clusters: individual(NGC 6397, NGC 6624, NGC 7078, Terzan 8} 77 | -------------------------------------------------------------------------------- /styles/aj_preprint.tex.erb: -------------------------------------------------------------------------------- 1 | %\documentclass[10pt,flushrt,preprint]{aastex} 2 | 3 | %\documentclass[manuscript]{aastex} 4 | \documentclass[preprint2]{aastex} 5 | 6 | <%=@default_packages%> 7 | %\usepackage{natbib} 8 | %\usepackage[english]{babel} 9 | 10 | <%=@header%> 11 | 12 | %% preprint2 produces a double-column, single-spaced document: 13 | 14 | %% \documentclass[preprint2]{aastex} 15 | 16 | %% Sometimes a paper's abstract is too long to fit on the 17 | %% title page in preprint2 mode. When that is the case, 18 | %% use the longabstract style option. 19 | 20 | %% \documentclass[preprint2,longabstract]{aastex} 21 | 22 | %% If you want to create your own macros, you can do so 23 | %% using \newcommand. Your macros should appear before 24 | %% the \begin{document} command. 25 | %% 26 | %% If you are submitting to a journal that translates manuscripts 27 | %% into SGML, you need to follow certain guidelines when preparing 28 | %% your macros. See the AASTeX v5.x Author Guide 29 | %% for information. 30 | 31 | 32 | %% You can insert a short comment on the title page using the command below. 33 | 34 | \slugcomment{To appear in The Astronomical Journal (AJ)} 35 | 36 | %% If you wish, you may supply running head information, although 37 | %% this information may be modified by the editorial offices. 38 | %% The left head contains a list of authors, 39 | %% usually a maximum of three (otherwise use et al.). The right 40 | %% head is a modified title of up to roughly 44 characters. 41 | %% Running heads will not print in the manuscript style. 42 | 43 | \shorttitle{<%=@title%>} 44 | \shortauthors{<%=@first_author%>} 45 | 46 | %% This is the end of the preamble. Indicate the beginning of the 47 | %% paper itself with \begin{document}. 48 | 49 | \begin{document} 50 | 51 | %% LaTeX will automatically break titles if they run longer than 52 | %% one line. However, you may use \\ to force a line break if 53 | %% you desire. 54 | 55 | \title{<%=@title%>} 56 | 57 | %% Use \author, \affil, and the \and command to format 58 | %% author and affiliation information. 59 | %% Note that \email has replaced the old \authoremail command 60 | %% from AASTeX v4.0. You can use \email to mark an email address 61 | %% anywhere in the paper, not just in the front matter. 62 | %% As in the title, use \\ to force line breaks. 63 | <% if !@alternative_author_string.to_s.empty? %> 64 | <%= @alternative_author_string %> 65 | <% else %> 66 | \author{<%=@first_author%>\affil{<%=@first_affiliation%>}<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> <%=@coauthor_list[i]%>\affil{<%=@coauthor_affiliations[i]%>}<% end %><% end %>} 67 | <% end %> 68 | 69 | <%= @abstract_begin_end %> 70 | 71 | 72 | %% Keywords should appear after the \end{abstract} command. The uncommented 73 | %% example has been keyed in ApJ style. See the instructions to authors 74 | %% for the journal to which you are submitting your paper to determine 75 | %% what keyword punctuation is appropriate. 76 | 77 | %\keywords{globular clusters: general --- globular clusters: individual(NGC 6397, NGC 6624, NGC 7078, Terzan 8} 78 | 79 | -------------------------------------------------------------------------------- /styles/aiaa.tex.erb: -------------------------------------------------------------------------------- 1 | % `template.tex', a bare-bones example employing the AIAA class. 2 | % 3 | % For a more advanced example that makes use of several third-party 4 | % LaTeX packages, see `advanced_example.tex', but please read the 5 | % Known Problems section of the users manual first. 6 | % 7 | % Typical processing for PostScript (PS) output: 8 | % 9 | % latex template 10 | % latex template (repeat as needed to resolve references) 11 | % 12 | % xdvi template (onscreen draft display) 13 | % dvips template (postscript) 14 | % gv template.ps (onscreen display) 15 | % lpr template.ps (hardcopy) 16 | % 17 | % With the above, only Encapsulated PostScript (EPS) images can be used. 18 | % 19 | % Typical processing for Portable Document Format (PDF) output: 20 | % 21 | % pdflatex template 22 | % pdflatex template (repeat as needed to resolve references) 23 | % 24 | % acroread template.pdf (onscreen display) 25 | % 26 | % If you have EPS figures, you will need to use the epstopdf script 27 | % to convert them to PDF because PDF is a limmited subset of EPS. 28 | % pdflatex accepts a variety of other image formats such as JPG, TIF, 29 | % PNG, and so forth -- check the documentation for your version. 30 | % 31 | % If you do *not* specify suffixes when using the graphicx package's 32 | % \includegraphics command, latex and pdflatex will automatically select 33 | % the appropriate figure format from those available. This allows you 34 | % to produce PS and PDF output from the same LaTeX source file. 35 | % 36 | % To generate a large format (e.g., 11"x17") PostScript copy for editing 37 | % purposes, use 38 | % 39 | % dvips -x 1467 -O -0.65in,0.85in -t tabloid template 40 | % 41 | % For further details and support, read the Users Manual, aiaa.pdf. 42 | 43 | 44 | % Try to reduce the number of latex support calls from people who 45 | % don't read the included documentation. 46 | % 47 | \typeout{}\typeout{If latex fails to find aiaa-tc, read the README file!} 48 | % 49 | 50 | 51 | \documentclass[]{aiaa-tc}% insert '[draft]' option to show overfull boxes 52 | 53 | <%=@default_packages%> 54 | <%=@header%> 55 | 56 | \title{<%=@title%>} 57 | 58 | <% if !@alternative_author_string.to_s.empty? %> 59 | <%= @alternative_author_string %> 60 | <% else %> 61 | \author{ 62 | <%=@first_author%>% 63 | \thanks{<%=@first_affiliation%>}\\<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 64 | \and <%=@coauthor_list[i]%> 65 | \thanks{<%=@coauthor_affiliations[i]%>}\\<% end %><% end %>} 66 | <% end %> 67 | 68 | % Data used by 'handcarry' option if invoked 69 | \AIAApapernumber{YEAR-NUMBER} 70 | \AIAAconference{Conference Name, Date, and Location} 71 | \AIAAcopyright{\AIAAcopyrightD{YEAR}} 72 | 73 | % Define commands to assure consistent treatment throughout document 74 | \newcommand{\eqnref}[1]{(\ref{#1})} 75 | \newcommand{\class}[1]{\texttt{#1}} 76 | \newcommand{\package}[1]{\texttt{#1}} 77 | \newcommand{\file}[1]{\texttt{#1}} 78 | \newcommand{\BibTeX}{\textsc{Bib}\TeX} 79 | 80 | \begin{document} 81 | 82 | \maketitle 83 | 84 | <%= @abstract_begin_end %> 85 | -------------------------------------------------------------------------------- /styles/iram_proposal.tex.erb: -------------------------------------------------------------------------------- 1 | %------------------------------------------------------------------------------ 2 | % This is a LaTeX template for the scientific justification of IRAM Proposals 3 | %------------------------------------------------------------------------------ 4 | % 5 | % We encourage IRAM proposers to use this template for the sake of unity 6 | % and clarity when Program Committee members assess their proposals. 7 | % 8 | % You may customize this template to suit your preferences (e.g. using BibTex), 9 | % but please respect the following requirements: 10 | % The scientific and technical justification should contain a 11 | % maximum of 2 pages of text (4 pages for Large Programs), 12 | % plus 2 pages of Figs., Tables and Refs. 13 | % The font size should be 11pt or larger. 14 | % 15 | % For Large Programs, the following sections should be included: 16 | % i) Scientific Rationale, 17 | % ii) Immediate Objective, 18 | % iii) Feasibility and Technical Justification, and 19 | % iv) Organizational Issues. 20 | % 21 | % 22 | %------------------------------------------------------------------------------ 23 | % 24 | \documentclass[11pt,a4paper,twoside,graphicx,color]{article} 25 | % 26 | \usepackage[margin=2cm]{geometry} 27 | <%=@default_packages%> 28 | % 29 | % Page size and text dimensions 30 | % Do not change! 31 | \textheight 260mm 32 | \textwidth 178mm 33 | \oddsidemargin -8mm 34 | \evensidemargin -8mm 35 | \marginparwidth 50pt 36 | \topmargin -22mm 37 | \brokenpenalty=10000 38 | \sloppy 39 | % 40 | 41 | <%=@header%> 42 | %------------------------------------------------------------------- 43 | \begin{document} 44 | % 45 | % 46 | \begin{center}{\huge \bf 47 | %------------------------------------------------------------------- 48 | <%=@title%> 49 | %------------------------------------------------------------------- 50 | }\end{center} 51 | % 52 | <% if !@alternative_author_string.to_s.empty? %> 53 | <%= @alternative_author_string %> 54 | <% else %> 55 | \centerline{\bf P.I.: <%=@first_author%>} 56 | <% end %> 57 | 58 | %\section{Scientific context} 59 | % 60 | %Start the scientific justification here... 61 | % 62 | %\subsection{Structure your proposal} 63 | % 64 | %\subsection{Another subsection} 65 | % 66 | %\section{Planned observations} 67 | % 68 | %\section{Technical justification} 69 | % 70 | % 71 | %\section{Supporting material} 72 | % You may include up to two pages of figures, tables, and References. 73 | % 74 | % Below is an example for including a figure in your proposal. 75 | % If you are compiling with pdflatex, you can include jpeg, png, and pdf files. 76 | % if compiling with latex, only eps files can be included. 77 | %\begin{figure} 78 | % \centering 79 | % \includegraphics[width=0.8\textwidth]{image.png} 80 | % \caption{Enter the figure caption here.} 81 | % \label{fig:myPlot_1} 82 | %\end{figure} 83 | % 84 | %%%%%%%%%%%% 85 | %\begin{thebibliography}{9} 86 | % 87 | %\bibitem{lamport94} 88 | % Leslie Lamport, 89 | % \emph{\LaTeX: A Document Preparation System}. 90 | % Addison Wesley, Massachusetts, 91 | % 2nd Edition, 92 | % 1994. 93 | %\end{thebibliography} 94 | -------------------------------------------------------------------------------- /styles/springer_twocolumn.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%% file template.tex %%%%%%%%%%%%%%%%%%%%%%%%% 2 | % 3 | % This is a general template file for the LaTeX package SVJour3 4 | % for Springer journals. Springer Heidelberg 2010/09/16 5 | % 6 | % Copy it to a new file with a new name and use it as the basis 7 | % for your article. Delete % signs as needed. 8 | % 9 | % This template includes a few options for different layouts and 10 | % content for various journals. Please consult a previous issue of 11 | % your journal as needed. 12 | % 13 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14 | % 15 | % First comes an example EPS file -- just ignore it and 16 | % proceed on the \documentclass line 17 | % your LaTeX will extract the file if required 18 | \begin{filecontents*}{example.eps} 19 | %!PS-Adobe-3.0 EPSF-3.0 20 | %%BoundingBox: 19 19 221 221 21 | %%CreationDate: Mon Sep 29 1997 22 | %%Creator: programmed by hand (JK) 23 | %%EndComments 24 | gsave 25 | newpath 26 | 20 20 moveto 27 | 20 220 lineto 28 | 220 220 lineto 29 | 220 20 lineto 30 | closepath 31 | 2 setlinewidth 32 | gsave 33 | .4 setgray fill 34 | grestore 35 | stroke 36 | grestore 37 | \end{filecontents*} 38 | % 39 | \RequirePackage{fix-cm} 40 | % 41 | %\documentclass{svjour3} % onecolumn (standard format) 42 | %\documentclass[smallcondensed]{svjour3} % onecolumn (ditto) 43 | %\documentclass[smallextended]{svjour3} % onecolumn (second format) 44 | \documentclass[twocolumn]{svjour3} % twocolumn 45 | % 46 | \smartqed % flush right qed marks, e.g. at end of proof 47 | % 48 | 49 | <%=@default_packages%> 50 | 51 | % 52 | % \usepackage{mathptmx} % use Times fonts if available on your TeX system 53 | % 54 | % insert here the call for the packages your document requires 55 | %\usepackage{latexsym} 56 | % etc. 57 | % 58 | % please place your own definitions here and don't use \def but 59 | % \newcommand{}{} 60 | % 61 | % Insert the name of "your journal" with 62 | % \journalname{myjournal} 63 | % 64 | <%=@header%> 65 | 66 | \begin{document} 67 | 68 | \title{<%=@title%> 69 | %\thanks{Grants or other notes 70 | %about the article that should go on the front page should be 71 | %placed here. General acknowledgments should be placed at the end of the article.} 72 | } 73 | %\subtitle{Do you have a subtitle?\\ If so, write it here} 74 | 75 | %\titlerunning{Short form of title} % if too long for running head 76 | 77 | <% if !@alternative_author_string.to_s.empty? %> 78 | <%= @alternative_author_string %> 79 | <% else %> 80 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %> \and <%=author%><% end %><% end %>} 81 | 82 | \institute{<%=@first_author%> \at <%=@first_affiliation%><% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> \and <%=@coauthor_list[i]%> \at <%=@coauthor_affiliations[i]%><% end %><% end %>} 83 | <% end %> 84 | %\authorrunning{Short form of author list} % if too long for running head 85 | 86 | %\date{Received: date / Accepted: date} 87 | % The correct dates will be entered by the editor 88 | 89 | \maketitle 90 | 91 | <%= @abstract_begin_end %> 92 | 93 | -------------------------------------------------------------------------------- /styles/springer.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%% file template.tex %%%%%%%%%%%%%%%%%%%%%%%%% 2 | % 3 | % This is a general template file for the LaTeX package SVJour3 4 | % for Springer journals. Springer Heidelberg 2010/09/16 5 | % 6 | % Copy it to a new file with a new name and use it as the basis 7 | % for your article. Delete % signs as needed. 8 | % 9 | % This template includes a few options for different layouts and 10 | % content for various journals. Please consult a previous issue of 11 | % your journal as needed. 12 | % 13 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 14 | % 15 | % First comes an example EPS file -- just ignore it and 16 | % proceed on the \documentclass line 17 | % your LaTeX will extract the file if required 18 | \begin{filecontents*}{example.eps} 19 | %!PS-Adobe-3.0 EPSF-3.0 20 | %%BoundingBox: 19 19 221 221 21 | %%CreationDate: Mon Sep 29 1997 22 | %%Creator: programmed by hand (JK) 23 | %%EndComments 24 | gsave 25 | newpath 26 | 20 20 moveto 27 | 20 220 lineto 28 | 220 220 lineto 29 | 220 20 lineto 30 | closepath 31 | 2 setlinewidth 32 | gsave 33 | .4 setgray fill 34 | grestore 35 | stroke 36 | grestore 37 | \end{filecontents*} 38 | % 39 | \RequirePackage{fix-cm} 40 | % 41 | \documentclass{svjour3} % onecolumn (standard format) 42 | %\documentclass[smallcondensed]{svjour3} % onecolumn (ditto) 43 | %\documentclass[smallextended]{svjour3} % onecolumn (second format) 44 | %\documentclass[twocolumn]{svjour3} % twocolumn 45 | % 46 | \smartqed % flush right qed marks, e.g. at end of proof 47 | % 48 | 49 | <%=@default_packages%> 50 | \usepackage[english]{babel} 51 | % 52 | % \usepackage{mathptmx} % use Times fonts if available on your TeX system 53 | % 54 | % insert here the call for the packages your document requires 55 | %\usepackage{latexsym} 56 | % etc. 57 | % 58 | % please place your own definitions here and don't use \def but 59 | % \newcommand{}{} 60 | % 61 | % Insert the name of "your journal" with 62 | % \journalname{myjournal} 63 | % 64 | <%=@header%> 65 | 66 | \begin{document} 67 | 68 | \title{<%=@title%> 69 | %\thanks{Grants or other notes 70 | %about the article that should go on the front page should be 71 | %placed here. General acknowledgments should be placed at the end of the article.} 72 | } 73 | %\subtitle{Do you have a subtitle?\\ If so, write it here} 74 | 75 | %\titlerunning{Short form of title} % if too long for running head 76 | 77 | <% if !@alternative_author_string.to_s.empty? %> 78 | <%= @alternative_author_string %> 79 | <% else %> 80 | \author{<%=@first_author%><% if !@coauthor_list.to_a.empty? %><% for author in @coauthor_list %> \and <%=author%><% end %><% end %>} 81 | 82 | \institute{<%=@first_author%> \at <%=@first_affiliation%><% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> \and <%=@coauthor_list[i]%> \at <%=@coauthor_affiliations[i]%><% end %><% end %>} 83 | <% end %> 84 | %\authorrunning{Short form of author list} % if too long for running head 85 | 86 | %\date{Received: date / Accepted: date} 87 | % The correct dates will be entered by the editor 88 | 89 | \maketitle 90 | 91 | <%= @abstract_begin_end %> 92 | 93 | -------------------------------------------------------------------------------- /lib/texstyles/style.rb: -------------------------------------------------------------------------------- 1 | require 'erb' 2 | require 'yaml' 3 | 4 | module Texstyles 5 | class Style 6 | attr_accessor :symbol 7 | 8 | def initialize(symbol = :authorea) 9 | @symbol = symbol.to_sym 10 | style_filename = "#{@symbol}.tex.erb" 11 | style_filepath = File.join(Texstyles.root, 'styles', style_filename) 12 | @erb = if File.exist? style_filepath 13 | ERB.new(File.read(style_filepath)) 14 | else 15 | nil 16 | end 17 | 18 | meta_filename = "#{@symbol}.yml" 19 | meta_filepath = File.join(Texstyles.root, 'meta', meta_filename) 20 | @meta = if File.exist? meta_filepath 21 | YAML.load_file(meta_filepath) 22 | else 23 | {} 24 | end 25 | @meta_default_packages = @meta['default_packages'] || {} 26 | @all_rule = @meta_default_packages['*'] 27 | @all_compatible = (@all_rule == true) 28 | @none_compatible = (@all_rule == false) 29 | end 30 | 31 | def stylize_metadata(options = {}) 32 | @default_packages = options["default_packages"].to_s 33 | @header = options["header"].to_s 34 | @alternative_author_string = options["alternative_author_string"].to_s 35 | @title = options["title"].to_s 36 | @short_title = options["short_title"].to_s 37 | 38 | @authors = options["authors"] || [] 39 | @affiliations = options["affiliations"] || {} 40 | # TODO: Refactor these together with the templates into a more elegant workflow, 41 | # more aware of multiple affiliations 42 | @authors.each do |data| 43 | # set the first affiliation as the default one, if not set and we have a list 44 | data["affiliation"] ||= (data["affiliations"] && data["affiliations"][0]) 45 | end 46 | @first_author_data = @authors[0] || {} 47 | @first_author = @first_author_data["name"].to_s 48 | @first_affiliation = @first_author_data["affiliation"] && @affiliations[@first_author_data["affiliation"]].to_s 49 | @coauthor_list = @authors[1..-1].to_a.map{|data| data["name"]} 50 | @coauthor_affiliations = @authors[1..-1].to_a.map do |data| 51 | data["affiliation"] && @affiliations[data["affiliation"]].to_s 52 | end 53 | 54 | @abstract = options["abstract"].to_s 55 | if !@abstract.empty? 56 | @abstract_begin_end = if @abstract.match(/\{abstract\}/) 57 | @abstract 58 | else 59 | "\\begin{abstract}\n" + @abstract + "%\n\\end{abstract}%\n" 60 | end 61 | @abstract_command = "\\abstract{" + @abstract + "%\n}\n\n" 62 | else 63 | @abstract_begin_end = "" 64 | @abstract_command = "" 65 | end 66 | 67 | @erb && @erb.result(binding) 68 | end 69 | 70 | def package_compatible?(package_name) 71 | @all_compatible || (!@none_compatible && (@meta_default_packages[package_name] != false)) 72 | end 73 | 74 | # Missing methods are assumed to be @meta getters 75 | def method_missing(method_sym, *arguments, &block) 76 | @meta[method_sym.to_s] 77 | end 78 | 79 | # We can respond to any method, since we're indexing into @meta 80 | def self.respond_to?(method_sym, include_private = false) 81 | true 82 | end 83 | 84 | end 85 | end -------------------------------------------------------------------------------- /styles/frontiersMED.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % This is just a template to use when submitting manuscripts to Frontiers, it is not mandatory to use frontiers.cls nor frontiers.tex % 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4 | 5 | %\documentclass{frontiersENG} % for Engineering articles 6 | %\documentclass{frontiersSCNS} % for Science articles 7 | \documentclass{frontiersMED} % for Medicine articles 8 | 9 | <%=@default_packages%> 10 | 11 | 12 | \usepackage{url,lineno} 13 | \linenumbers 14 | 15 | <%=@header%> 16 | 17 | % Leave a blank line between paragraphs in stead of using \\ 18 | 19 | \copyrightyear{} 20 | \pubyear{} 21 | 22 | \def\journal{Medicine}%%% write here for which journal %%% 23 | \def\DOI{} 24 | \def\articleType{Research Article} 25 | \def\keyFont{\fontsize{8}{11}\helveticabold } 26 | \def\firstAuthorLast{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>} %use et al only if is more than 1 author 27 | \def\Authors{<%=@first_author%>\,$^{1,*}$ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 28 | , <%=@coauthor_list[i]%>\,$^{<%=i+2%>}$<% end %><% end %>} 29 | 30 | % Affiliations should be keyed to the author's name with superscript numbers and be listed as follows: Laboratory, Institute, Department, Organization, City, State abbreviation (USA, Canada, Australia), and Country (without detailed address information such as city zip codes or street names). 31 | % If one of the authors has a change of address, list the new address below the correspondence details using a superscript symbol and use the same symbol to indicate the author in the author list. 32 | \def\Address{$^{1}$<%=@first_affiliation%> \\ 33 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 34 | $^{<%=i+2%>}$ <%=@coauthor_affiliations[i]%> \\ <% end %><% end %> } 35 | % The Corresponding Author should be marked with an asterisk 36 | % Provide the exact contact address (this time including street name and city zip code) and email of the corresponding author 37 | \def\corrAuthor{<%=@first_author%>} 38 | \def\corrAddress{<%=@first_affiliation%>} 39 | \def\corrEmail{email@uni.edu} 40 | 41 | % \color{FrontiersColor} Is the color used in the Journal name, in the title, and the names of the sections 42 | 43 | \begin{document} 44 | \onecolumn 45 | \firstpage{1} 46 | 47 | \title[<%=@short_title%>]{<%=@title%>} 48 | <% if !@alternative_author_string.to_s.empty? %> 49 | <%= @alternative_author_string %> 50 | <% else %> 51 | \author[\firstAuthorLast ]{\Authors} 52 | <% end %> 53 | \address{} 54 | \correspondance{} 55 | \extraAuth{}% If there are more than 1 additional author, comment this line and uncomment the next one 56 | %\extraAuth{corresponding Author2 \\ Laboratory X2, Institute X2, Department X2, Organization X2, Street X2, City X2 , State XX2 (only USA, Canada and Australia), Zip Code2, X2 Country X2, email2@uni2.edu} 57 | %\topic{Research Topic} 58 | 59 | \maketitle 60 | 61 | <%= @abstract_begin_end %> 62 | 63 | 64 | %\bibliographystyle{frontiersinSCNS&ENG} % for Science and Engineering articles 65 | %\bibliographystyle{frontiersinMED} % for Medicine articles 66 | 67 | -------------------------------------------------------------------------------- /styles/frontiersSCNS.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % This is just a template to use when submitting manuscripts to Frontiers, it is not mandatory to use frontiers.cls nor frontiers.tex % 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4 | 5 | %\documentclass{frontiersENG} % for Engineering articles 6 | \documentclass{frontiersSCNS} % for Science articles 7 | %\documentclass{frontiersMED} % for Medicine articles 8 | 9 | <%=@default_packages%> 10 | 11 | 12 | \usepackage{url,lineno} 13 | \linenumbers 14 | 15 | <%=@header%> 16 | 17 | % Leave a blank line between paragraphs in stead of using \\ 18 | 19 | \copyrightyear{} 20 | \pubyear{} 21 | 22 | \def\journal{Science}%%% write here for which journal %%% 23 | \def\DOI{} 24 | \def\articleType{Research Article} 25 | \def\keyFont{\fontsize{8}{11}\helveticabold } 26 | \def\firstAuthorLast{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>} %use et al only if is more than 1 author 27 | \def\Authors{<%=@first_author%>\,$^{1,*}$ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 28 | , <%=@coauthor_list[i]%>\,$^{<%=i+2%>}$<% end %><% end %>} 29 | 30 | % Affiliations should be keyed to the author's name with superscript numbers and be listed as follows: Laboratory, Institute, Department, Organization, City, State abbreviation (USA, Canada, Australia), and Country (without detailed address information such as city zip codes or street names). 31 | % If one of the authors has a change of address, list the new address below the correspondence details using a superscript symbol and use the same symbol to indicate the author in the author list. 32 | \def\Address{$^{1}$<%=@first_affiliation%> \\ 33 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 34 | $^{<%=i+2%>}$ <%=@coauthor_affiliations[i]%> \\ <% end %><% end %> } 35 | % The Corresponding Author should be marked with an asterisk 36 | % Provide the exact contact address (this time including street name and city zip code) and email of the corresponding author 37 | \def\corrAuthor{<%=@first_author%>} 38 | \def\corrAddress{<%=@first_affiliation%>} 39 | \def\corrEmail{email@uni.edu} 40 | 41 | % \color{FrontiersColor} Is the color used in the Journal name, in the title, and the names of the sections 42 | 43 | \begin{document} 44 | \onecolumn 45 | \firstpage{1} 46 | 47 | \title[<%=@short_title%>]{<%=@title%>} 48 | <% if !@alternative_author_string.to_s.empty? %> 49 | <%= @alternative_author_string %> 50 | <% else %> 51 | \author[\firstAuthorLast ]{\Authors} 52 | <% end %> 53 | \address{} 54 | \correspondance{} 55 | \extraAuth{}% If there are more than 1 additional author, comment this line and uncomment the next one 56 | %\extraAuth{corresponding Author2 \\ Laboratory X2, Institute X2, Department X2, Organization X2, Street X2, City X2 , State XX2 (only USA, Canada and Australia), Zip Code2, X2 Country X2, email2@uni2.edu} 57 | %\topic{Research Topic} 58 | 59 | \maketitle 60 | 61 | <%= @abstract_begin_end %> 62 | 63 | 64 | %\bibliographystyle{frontiersinSCNS&ENG} % for Science and Engineering articles 65 | %\bibliographystyle{frontiersinMED} % for Medicine articles 66 | 67 | -------------------------------------------------------------------------------- /styles/frontiersENG.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % This is just a template to use when submitting manuscripts to Frontiers, it is not mandatory to use frontiers.cls nor frontiers.tex % 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4 | 5 | \documentclass{frontiersENG} % for Engineering articles 6 | %\documentclass{frontiersSCNS} % for Science articles 7 | %\documentclass{frontiersMED} % for Medicine articles 8 | 9 | <%=@default_packages%> 10 | 11 | 12 | \usepackage{url,lineno} 13 | \linenumbers 14 | 15 | <%=@header%> 16 | 17 | % Leave a blank line between paragraphs in stead of using \\ 18 | 19 | \copyrightyear{} 20 | \pubyear{} 21 | 22 | \def\journal{Engineering}%%% write here for which journal %%% 23 | \def\DOI{} 24 | \def\articleType{Research Article} 25 | \def\keyFont{\fontsize{8}{11}\helveticabold } 26 | \def\firstAuthorLast{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>} %use et al only if is more than 1 author 27 | \def\Authors{<%=@first_author%>\,$^{1,*}$ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 28 | , <%=@coauthor_list[i]%>\,$^{<%=i+2%>}$<% end %><% end %>} 29 | 30 | % Affiliations should be keyed to the author's name with superscript numbers and be listed as follows: Laboratory, Institute, Department, Organization, City, State abbreviation (USA, Canada, Australia), and Country (without detailed address information such as city zip codes or street names). 31 | % If one of the authors has a change of address, list the new address below the correspondence details using a superscript symbol and use the same symbol to indicate the author in the author list. 32 | \def\Address{$^{1}$<%=@first_affiliation%> \\ 33 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 34 | $^{<%=i+2%>}$ <%=@coauthor_affiliations[i]%> \\ <% end %><% end %> } 35 | % The Corresponding Author should be marked with an asterisk 36 | % Provide the exact contact address (this time including street name and city zip code) and email of the corresponding author 37 | \def\corrAuthor{<%=@first_author%>} 38 | \def\corrAddress{<%=@first_affiliation%>} 39 | \def\corrEmail{email@uni.edu} 40 | 41 | % \color{FrontiersColor} Is the color used in the Journal name, in the title, and the names of the sections 42 | 43 | \begin{document} 44 | \onecolumn 45 | \firstpage{1} 46 | 47 | \title[<%=@short_title%>]{<%=@title%>} 48 | <% if !@alternative_author_string.to_s.empty? %> 49 | <%= @alternative_author_string %> 50 | <% else %> 51 | \author[\firstAuthorLast ]{\Authors} 52 | <% end %> 53 | \address{} 54 | \correspondance{} 55 | \extraAuth{}% If there are more than 1 additional author, comment this line and uncomment the next one 56 | %\extraAuth{corresponding Author2 \\ Laboratory X2, Institute X2, Department X2, Organization X2, Street X2, City X2 , State XX2 (only USA, Canada and Australia), Zip Code2, X2 Country X2, email2@uni2.edu} 57 | %\topic{Research Topic} 58 | 59 | \maketitle 60 | 61 | <%= @abstract_begin_end %> 62 | 63 | 64 | %\bibliographystyle{frontiersinSCNS&ENG} % for Science and Engineering articles 65 | %\bibliographystyle{frontiersinMED} % for Medicine articles 66 | 67 | -------------------------------------------------------------------------------- /styles/sciadvances.tex.erb: -------------------------------------------------------------------------------- 1 | % Use only LaTeX2e, calling the article.cls class and 12-point type. 2 | % modified by Aaron Clauset (2014) from the scifile.tex file distributed 3 | % by AAAS for articles in Science 4 | 5 | \documentclass[12pt]{article} 6 | 7 | % Users of the {thebibliography} environment or BibTeX should use the 8 | % scicite.sty package, downloadable from *Science* at 9 | % www.sciencemag.org/about/authors/prep/TeX_help/ . 10 | % This package should properly format in-text 11 | % reference calls and reference-list numbers. 12 | 13 | \usepackage{scicite} 14 | 15 | % Use times if you have the font installed; otherwise, comment out the 16 | % following line. 17 | 18 | \usepackage{times} 19 | 20 | % Some standard mathematical notation and figure packages 21 | 22 | <%=@default_packages%> 23 | 24 | % The preamble here sets up a lot of new/revised commands and 25 | % environments. It's annoying, but please do *not* try to strip these 26 | % out into a separate .sty file (which could lead to the loss of some 27 | % information when we convert the file to other formats). Instead, keep 28 | % them in the preamble of your main LaTeX source file. 29 | 30 | 31 | % The following parameters seem to provide a reasonable page setup. 32 | 33 | \topmargin 0.0cm 34 | \oddsidemargin 0.2cm 35 | \textwidth 16cm 36 | \textheight 21cm 37 | \footskip 1.0cm 38 | 39 | 40 | %The next command sets up an environment for the abstract to your paper. 41 | 42 | \newenvironment{sciabstract}{% 43 | \begin{quote} \bf} 44 | {\end{quote}} 45 | 46 | <%=@header%> 47 | 48 | % If your reference list includes text notes as well as references, 49 | % include the following line; otherwise, leave it commented out. 50 | 51 | %\renewcommand\refname{References and Notes} 52 | 53 | % Include your paper's title here 54 | 55 | \title{<%=@title%>} 56 | 57 | 58 | % Place the author information here. Please hand-code the contact 59 | % information and notecalls; do *not* use \footnote commands. Let the 60 | % author contact information appear immediately below the author names 61 | % as shown. We would also prefer that you don't change the type-size 62 | % settings shown here. 63 | <% if !@alternative_author_string.to_s.empty? %> 64 | <%= @alternative_author_string %> 65 | <% else %> 66 | \author 67 | {<%=@first_author%>$^{1}$<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %>, <%=@coauthor_list[i]%>$^{<%=i+2%>}$<% end %><% end %>\\ 68 | \\ 69 | \normalsize{$^{1}$<%=@first_affiliation%>}\\<% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %> 70 | \normalsize{$^{<%=i+2%>}$<%=@coauthor_affiliations[i]%>}\\<% end %><% end %> 71 | } 72 | <% end %> 73 | 74 | % Include the date command, but leave its argument blank. 75 | 76 | \date{} 77 | 78 | 79 | %%%%%%%%%%%%%%%%% END OF PREAMBLE %%%%%%%%%%%%%%%% 80 | 81 | 82 | 83 | \begin{document} 84 | 85 | % Double-space the manuscript. 86 | 87 | \baselineskip24pt 88 | 89 | % Make the title. 90 | 91 | \maketitle 92 | 93 | <% if @abstract && !@abstract.empty? %> 94 | 95 | \begin{sciabstract} 96 | <%=@abstract%> 97 | \end{sciabstract} 98 | 99 | <% end %> 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /styles/frontiersFPHY.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % This is just a template to use when submitting manuscripts to Frontiers, it is not mandatory to use frontiers.cls nor frontiers.tex % 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 4 | 5 | %\documentclass{frontiersENG} % for Engineering articles 6 | %\documentclass{frontiersSCNS} % for Science articles 7 | %\documentclass{frontiersMED} % for Medicine articles 8 | \documentclass{frontiersFPHY} % for phys articles 9 | 10 | <%=@default_packages%> 11 | 12 | 13 | \usepackage{url,lineno} 14 | \linenumbers 15 | 16 | <%=@header%> 17 | 18 | % Leave a blank line between paragraphs in stead of using \\ 19 | 20 | \copyrightyear{} 21 | \pubyear{} 22 | 23 | \def\journal{Physics}%%% write here for which journal %%% 24 | \def\DOI{} 25 | \def\articleType{Research Article} 26 | \def\keyFont{\fontsize{8}{11}\helveticabold } 27 | \def\firstAuthorLast{<%=@first_author%> <% if !@coauthor_list.to_a.empty? %>{et~al.}<% end %>} %use et al only if is more than 1 author 28 | \def\Authors{<%=@first_author%>\,$^{1,*}$ <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 29 | , <%=@coauthor_list[i]%>\,$^{<%=i+2%>}$<% end %><% end %>} 30 | 31 | % Affiliations should be keyed to the author's name with superscript numbers and be listed as follows: Laboratory, Institute, Department, Organization, City, State abbreviation (USA, Canada, Australia), and Country (without detailed address information such as city zip codes or street names). 32 | % If one of the authors has a change of address, list the new address below the correspondence details using a superscript symbol and use the same symbol to indicate the author in the author list. 33 | \def\Address{$^{1}$<%=@first_affiliation%> \\ 34 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 35 | $^{<%=i+2%>}$ <%=@coauthor_affiliations[i]%> \\ <% end %><% end %> } 36 | % The Corresponding Author should be marked with an asterisk 37 | % Provide the exact contact address (this time including street name and city zip code) and email of the corresponding author 38 | \def\corrAuthor{<%=@first_author%>} 39 | \def\corrAddress{<%=@first_affiliation%>} 40 | \def\corrEmail{email@uni.edu} 41 | 42 | % \color{FrontiersColor} Is the color used in the Journal name, in the title, and the names of the sections 43 | 44 | \begin{document} 45 | \onecolumn 46 | \firstpage{1} 47 | 48 | \title[<%=@short_title%>]{<%=@title%>} 49 | <% if !@alternative_author_string.to_s.empty? %> 50 | <%= @alternative_author_string %> 51 | <% else %> 52 | \author[\firstAuthorLast ]{\Authors} 53 | <% end %> 54 | \address{} 55 | \correspondance{} 56 | \extraAuth{}% If there are more than 1 additional author, comment this line and uncomment the next one 57 | %\extraAuth{corresponding Author2 \\ Laboratory X2, Institute X2, Department X2, Organization X2, Street X2, City X2 , State XX2 (only USA, Canada and Australia), Zip Code2, X2 Country X2, email2@uni2.edu} 58 | %\topic{Research Topic} 59 | 60 | \maketitle 61 | 62 | <%= @abstract_begin_end %> 63 | 64 | 65 | %\bibliographystyle{frontiersinSCNS&ENG} % for Science and Engineering articles 66 | %\bibliographystyle{frontiersinMED&FPHY} % for Medicine articles 67 | 68 | -------------------------------------------------------------------------------- /styles/acm_large.tex.erb: -------------------------------------------------------------------------------- 1 | % v2-acmlarge-sample.tex, dated March 6 2012 2 | % This is a sample file for ACM large trim journals 3 | % 4 | % Compilation using 'acmlarge.cls' - version 1.3, Aptara Inc. 5 | % (c) 2011 Association for Computing Machinery (ACM) 6 | % 7 | % Questions/Suggestions/Feedback should be addressed to => "acmtexsupport@aptaracorp.com". 8 | % Users can also go through the FAQs available on the journal's submission webpage. 9 | % 10 | % Steps to compile: latex, bibtex, latex latex 11 | % 12 | \documentclass[prodmode,acmtap]{acmlarge} 13 | 14 | % Metadata Information 15 | \acmVolume{2} 16 | \acmNumber{3} 17 | \acmArticle{1} 18 | \articleSeq{1} 19 | \acmYear{2010} 20 | \acmMonth{5} 21 | 22 | % Package to generate and customize Algorithm as per ACM style 23 | \usepackage[ruled]{algorithm2e} 24 | \SetAlFnt{\algofont} 25 | \SetAlCapFnt{\algofont} 26 | \SetAlCapNameFnt{\algofont} 27 | \SetAlCapHSkip{0pt} 28 | \IncMargin{-\parindent} 29 | \renewcommand{\algorithmcfname}{ALGORITHM} 30 | 31 | <%=@default_packages%> 32 | 33 | % Page heads 34 | \markboth{D. Pineo, C. Ware and S. Fogarty}{Neural Modeling of Flow Rendering Effectiveness} 35 | 36 | % Title portion 37 | \title{<%=@title%>} 38 | <% if !@alternative_author_string.to_s.empty? %> 39 | <%= @alternative_author_string %> 40 | <% else %> 41 | \author{<%=@first_author%>\affil{<%=@first_affiliation%>}<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> <%=@coauthor_list[i]%>\affil{<%=@coauthor_affiliations[i]%>}<% end %><% end %>} 42 | <% end %> 43 | % NOTE! Affiliations placed here should be for the institution where the 44 | % BULK of the research was done. If the author has gone to a new 45 | % institution, before publication, the (above) affiliation should NOT be changed. 46 | % The authors 'current' address may be given in the "Author's addresses:" block (below). 47 | % So for example, Mr. Fogarty, the bulk of the research was done at UIUC, and he is 48 | % currently affiliated with NASA. 49 | 50 | <%= @abstract_begin_end %> 51 | 52 | <%=@header%> 53 | 54 | 55 | %\category{H.5.2}{Information Interfaces and Presentation}{User 56 | %Interfaces}[Evaluation/\break methodology] 57 | %\category{H.1.2}{Models and Principles}{User/Machine Systems}[Human Information Processing] 58 | %\category{I.5.1}{Pattern\break Recognition}{Models}[Neural Nets] 59 | 60 | %\terms{Human Factors} 61 | %\keywords{Contour perception, flow visualization, perceptual theory, visual cortex, visualization} 62 | 63 | %\acmformat{Daniel Pineo, Colin Ware, and Sean Fogarty. 2010. Neural Modeling of Flow Rendering Effectiveness.} 64 | % At a minimum you need to supply the author names, year and a title. 65 | % IMPORTANT: 66 | % Full first names whenever they are known, surname last, followed by a period. 67 | % In the case of two authors, 'and' is placed between them. 68 | % In the case of three or more authors, the serial comma is used, that is, all author names 69 | % except the last one but including the penultimate author's name are followed by a comma, 70 | % and then 'and' is placed before the final author's name. 71 | % If only first and middle initials are known, then each initial 72 | % is followed by a period and they are separated by a space. 73 | % The remaining information (journal title, volume, article number, date, etc.) is 'auto-generated'. 74 | 75 | \begin{document} 76 | 77 | %\begin{bottomstuff} 78 | %\end{bottomstuff} 79 | 80 | 81 | \maketitle 82 | 83 | -------------------------------------------------------------------------------- /styles/acs.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | %% This is a (brief) model paper using the achemso class 3 | %% The document class accepts keyval options, which should include 4 | %% the target journal and optionally the macuscript tye 5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6 | \documentclass[journal=jacsat,manuscript=article]{achemso} 7 | 8 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 9 | %% Place any additional packages needed here. Only include packages 10 | %% which are essential, to avoid problems later. 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | <%=@default_packages%> 13 | \usepackage[version=3]{mhchem} % Formula subscripts using \ce{} 14 | 15 | 16 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 17 | %% If issues arise when submitting your manuscript, you may want to 18 | %% un-comment the next line. This provides information on the 19 | %% version of every file you have used. 20 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 21 | %%\listfiles 22 | 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 24 | %% Place any additional macros here. Please use \newcommand* where 25 | %% possible, and avoid layout changing macros (which are not used 26 | %% when typesetting). 27 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 28 | %\newcommand*{\mycommand}[1]{\texttt{\emph{#1}}} 29 | 30 | <%=@header%> 31 | 32 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 33 | %% Meta-data block 34 | %% --------------- 35 | %% Each author should be given as a separate \author command. 36 | %% 37 | %% Corresponding authors should have an e-mail given after the author 38 | %% name as an \email command. 39 | %% 40 | %% The affiliation of authors is given after the authors; each 41 | %% \affiliation command applies to all preceding authors not already 42 | %% assigned an affiliation. 43 | %% 44 | %% The affiliation takes an option argument for the short name. This 45 | %% will typically be something like "University of Somewhere". 46 | %% 47 | %% The \altaffiliation macro should be used for new address, etc. 48 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 49 | 50 | <% if !@alternative_author_string.to_s.empty? %> 51 | <%= @alternative_author_string %> 52 | <% else %> 53 | \author{<%=@first_author%>} 54 | \affiliation[<%=@first_affiliation%>]{<%=@first_affiliation%>} 55 | \email{Address} 56 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 57 | \author{<%=@coauthor_list[i]%>} 58 | \affiliation{<%=@coauthor_affiliations[i]%>}<% end %><% end %> 59 | <% end %> 60 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 61 | %% The document title should be given as usual 62 | %% A short title can be given as a *suggestion* for running headers. 63 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 64 | \title[]{<%=@title%>} 65 | 66 | \begin{document} 67 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 68 | %% The manuscript does not need to include \maketitle, which is 69 | %% executed automatically. The document should begin with an 70 | %% abstract, if appropriate. If one is given and should not be, the 71 | %% contents will be gobbled. 72 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 73 | 74 | <%= @abstract_begin_end %> 75 | 76 | 77 | -------------------------------------------------------------------------------- /styles/iop.tex.erb: -------------------------------------------------------------------------------- 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2 | % INSTITUTE OF PHYSICS PUBLISHING % 3 | % % 4 | % `Preparing an article for publication in an Institute of Physics % 5 | % Publishing journal using LaTeX' % 6 | % % 7 | % LaTeX source code `ioplau2e.tex' used to generate `author % 8 | % guidelines', the documentation explaining and demonstrating use % 9 | % of the Institute of Physics Publishing LaTeX preprint files % 10 | % `iopart.cls, iopart12.clo and iopart10.clo'. % 11 | % % 12 | % `ioplau2e.tex' itself uses LaTeX with `iopart.cls' % 13 | % % 14 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 15 | % 16 | % 17 | % First we have a character check 18 | % 19 | % ! exclamation mark " double quote 20 | % # hash ` opening quote (grave) 21 | % & ampersand ' closing quote (acute) 22 | % $ dollar % percent 23 | % ( open parenthesis ) close paren. 24 | % - hyphen = equals sign 25 | % | vertical bar ~ tilde 26 | % @ at sign _ underscore 27 | % { open curly brace } close curly 28 | % [ open square ] close square bracket 29 | % + plus sign ; semi-colon 30 | % * asterisk : colon 31 | % < open angle bracket > close angle 32 | % , comma . full stop 33 | % ? question mark / forward slash 34 | % \ backslash ^ circumflex 35 | % 36 | % ABCDEFGHIJKLMNOPQRSTUVWXYZ 37 | % abcdefghijklmnopqrstuvwxyz 38 | % 1234567890 39 | % 40 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 41 | % 42 | \documentclass[12pt]{iopart} 43 | %Uncomment next line if AMS fonts required 44 | \usepackage{iopams} 45 | \usepackage[breaklinks=true,colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref} 46 | 47 | \usepackage{graphicx} 48 | \usepackage[space]{grffile} 49 | \usepackage{latexsym} 50 | 51 | \expandafter\let\csname equation*\endcsname\relax 52 | \expandafter\let\csname endequation*\endcsname\relax 53 | 54 | \usepackage{amsfonts,amsmath,amssymb} 55 | \usepackage{url} 56 | \usepackage[utf8]{inputenc} 57 | \usepackage{hyperref} 58 | \hypersetup{colorlinks=false,pdfborder={0 0 0},} 59 | \usepackage{textcomp} 60 | \usepackage{longtable} 61 | \usepackage{multirow,booktabs} 62 | 63 | <%=@header%> 64 | 65 | \begin{document} 66 | 67 | \title[<%=@title%>]{<%=@title%>} 68 | <% if !@alternative_author_string.to_s.empty? %> 69 | <%= @alternative_author_string %> 70 | <% else %> 71 | \author{<%=@first_author%>$^{1}$} 72 | \address{$^1$<%=@first_affiliation%>} 73 | 74 | <% if !@coauthor_list.to_a.empty? %> 75 | <% for i in (0..@coauthor_list.length-1) %> 76 | \author{<%=@coauthor_list[i]%>$^{<%=i+2%>}$} 77 | \address{$^<%=i+2%>$<%=@coauthor_affiliations[i]%>} 78 | <% end %><% end %> 79 | <% end %> 80 | 81 | <%= @abstract_begin_end %> 82 | 83 | 84 | %Uncomment for PACS numbers title message 85 | %\pacs{00.00, 20.00, 42.10} 86 | % Keywords required only for MST, PB, PMB, PM, JOA, JOB? 87 | %\vspace{2pc} 88 | %\noindent{\it Keywords}: Article preparation, IOP journals 89 | % Uncomment for Submitted to journal title message 90 | %\submitto{\JPA} 91 | % Comment out if separate title page not required 92 | %\maketitle 93 | 94 | -------------------------------------------------------------------------------- /styles/spieman.tex.erb: -------------------------------------------------------------------------------- 1 | % article.tex (Version 1.00, released 1 October 2013) 2 | % LaTeX source file to demonstrate formatting for manuscripts 3 | % to be submitted to SPIE journals 4 | % based on the class file spieman.cls, which requires 5 | % the following standard packages: times.sty, float.sty, 6 | % ifthen.sty, cite.sty, color.sty, setspace.sty 7 | % 8 | % Special instructions are included in this file after the 9 | % symbol %>>>> 10 | % Numerous commands are commented out, but included to show how 11 | % to effect various options, for example, to print page numbers, etc. 12 | % This LaTeX source file is composed for LaTeX2e. 13 | 14 | % The following commands have been added in the SPIE class 15 | % file (spieman.cls) and may not be understood in other classes: 16 | % \affiliations{}, \sup{},\supit{}, \authorinfo{}, \keywords{}, 17 | % \linkable and \video 18 | % The bibliography style file is called spiejour.bst 19 | % This article.tex file needs the following image files: 20 | % mcr3b.eps 21 | % fig2.eps 22 | % satellite.eps 23 | 24 | \documentclass[12pt]{spieman} %>>> 12pt font mandatory; use this for US letter paper 25 | %%\documentclass[a4paper,12pt]{spieman} %>>> use this instead for A4 paper 26 | %%\documentclass[nocompress,12pt]{spieman} %>>> to avoid compression of citations 27 | %% \addtolength{\voffset}{9mm} %>>> moves text field down 28 | % The following command loads a graphics package to include images 29 | % in the document. It may be necessary to specify a DVI driver option, 30 | % for example, [dvips], but that may be inappropriate for some LaTeX installations. 31 | %%\usepackage{amsmath} %>>> for AMS math formatting, 32 | % including bold Greek symbols 33 | \usepackage[]{graphicx} 34 | \usepackage{setspace} 35 | %\usepackage{tocloft} 36 | 37 | <%=@default_packages%> 38 | 39 | \title{<%=@title%>} 40 | 41 | %>>>> The author is responsible for formatting the 42 | % author list and their affiliations. Use \\ to force linebreaks. 43 | % The correspondence between each author and his/her address 44 | % can be indicated with a superscript, 45 | % which is easily obtained with \supscr{}. 46 | %>>>> After the abstract, the author must include 47 | % a list of keywords and contact information for the corresponding author. 48 | <% if !@alternative_author_string.to_s.empty? %> 49 | <%= @alternative_author_string %> 50 | <% else %> 51 | \author{<%=@first_author%>,\supscr{1} 52 | <% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %><%=@coauthor_list[i]%>,\supscr{<%=i+2%>}<% end %><% end %>} 53 | 54 | \affiliation{\supscrsm{1}<%=@first_affiliation%>\\ 55 | <% if !@coauthor_affiliations.to_a.empty? %><% for i in (0..@coauthor_affiliations.length-1) %>\supscrsm{<%=i+2%>}<%=@coauthor_affiliations[i]%><% end %><% end %>} 56 | <% end %> 57 | 58 | <%=@header%> 59 | 60 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 61 | \renewcommand{\cftdotsep}{\cftnodots} 62 | 63 | \begin{document} 64 | \maketitle 65 | 66 | <%= @abstract_begin_end %> 67 | 68 | %>>>> Include a list of up to six keywords after the abstract 69 | %\keywords{optics, photonics, light, lasers, journal manuscripts, LaTeX template} 70 | 71 | %>>>> Include contact information for corresponding author 72 | %{\noindent \footnotesize{\bf Address all correspondence to}: First author, University Name, Faculty Group, Department, Street Address, City, Country, Postal Code; Tel: +1 555-555-5555; Fax: +1 555-555-5556; E-mail: \linkable{myemail@university.edu} } 73 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 74 | 75 | \doublespacing 76 | -------------------------------------------------------------------------------- /styles/acm_sig_strict.tex.erb: -------------------------------------------------------------------------------- 1 | % THIS IS SIGPROC-SP.TEX - VERSION 3.1 2 | % WORKS WITH V3.2SP OF ACM_PROC_ARTICLE-SP.CLS 3 | % APRIL 2009 4 | % 5 | % It is an example file showing how to use the 'acm_proc_article-sp.cls' V3.2SP 6 | % LaTeX2e document class file for Conference Proceedings submissions. 7 | % ---------------------------------------------------------------------------------------------------------------- 8 | % This .tex file (and associated .cls V3.2SP) *DOES NOT* produce: 9 | % 1) The Permission Statement 10 | % 2) The Conference (location) Info information 11 | % 3) The Copyright Line with ACM data 12 | % 4) Page numbering 13 | % --------------------------------------------------------------------------------------------------------------- 14 | % It is an example which *does* use the .bib file (from which the .bbl file 15 | % is produced). 16 | % REMEMBER HOWEVER: After having produced the .bbl file, 17 | % and prior to final submission, 18 | % you need to 'insert' your .bbl file into your source .tex file so as to provide 19 | % ONE 'self-contained' source file. 20 | % 21 | % Questions regarding SIGS should be sent to 22 | % Adrienne Griscti ---> griscti@acm.org 23 | % 24 | % Questions/suggestions regarding the guidelines, .tex and .cls files, etc. to 25 | % Gerald Murray ---> murray@hq.acm.org 26 | % 27 | % For tracking purposes - this is V3.1SP - APRIL 2009 28 | 29 | \documentclass{acm_proc_article-sp} 30 | 31 | <%=@default_packages%> 32 | 33 | \begin{document} 34 | 35 | \title{<%=@title%>} 36 | 37 | % 38 | % You need the command \numberofauthors to handle the 'placement 39 | % and alignment' of the authors beneath the title. 40 | % 41 | % For aesthetic reasons, we recommend 'three authors at a time' 42 | % i.e. three 'name/affiliation blocks' be placed beneath the title. 43 | % 44 | % NOTE: You are NOT restricted in how many 'rows' of 45 | % "name/affiliations" may appear. We just ask that you restrict 46 | % the number of 'columns' to three. 47 | % 48 | % Because of the available 'opening page real-estate' 49 | % we ask you to refrain from putting more than six authors 50 | % (two rows with three columns) beneath the article title. 51 | % More than six makes the first-page appear very cluttered indeed. 52 | % 53 | % Use the \alignauthor commands to handle the names 54 | % and affiliations for an 'aesthetic maximum' of six authors. 55 | % Add names, affiliations, addresses for 56 | % the seventh etc. author(s) as the argument for the 57 | % \additionalauthors command. 58 | % These 'additional authors' will be output/set for you 59 | % without further effort on your part as the last section in 60 | % the body of your article BEFORE References or any Appendices. 61 | 62 | <% if !@alternative_author_string.to_s.empty? %> 63 | <%= @alternative_author_string %> 64 | <% else %> 65 | \numberofauthors{<%= @coauthor_list.to_a.length + 1%>} 66 | \author{ 67 | \alignauthor <%=@first_author%>\\ 68 | \affaddr{<%=@first_affiliation%>}\\<% if !@coauthor_list.to_a.empty? %><% for i in (0..@coauthor_list.length-1) %> 69 | \alignauthor <%=@coauthor_list[i]%>\\ 70 | \affaddr{<%=@coauthor_affiliations[i]%>}\\ <% end %><% end %> 71 | } 72 | <% end %> 73 | 74 | \maketitle 75 | 76 | <%= @abstract_begin_end %> 77 | 78 | <%=@header%> 79 | 80 | 81 | % A category with the (minimum) three required fields 82 | %\category{H.4}{Information Systems Applications}{Miscellaneous} 83 | %A category including the fourth, optional field follows... 84 | %\category{D.2.8}{Software Engineering}{Metrics}[complexity measures, performance measures] 85 | 86 | %\terms{Theory} 87 | 88 | %\keywords{ACM proceedings, \LaTeX, text tagging} % NOT required for Proceedings 89 | 90 | 91 | --------------------------------------------------------------------------------