texstyles 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/lib/texstyles/style.rb +7 -7
  3. data/meta/a0poster-landscape.yml +7 -0
  4. data/meta/a0poster-portrait.yml +7 -0
  5. data/meta/aa.yml +7 -0
  6. data/meta/aa_onecolumn.yml +7 -0
  7. data/meta/aa_twocolumn.yml +7 -0
  8. data/meta/aaai.yml +6 -0
  9. data/meta/abnt.yml +6 -0
  10. data/meta/acl.yml +6 -0
  11. data/meta/acm.yml +7 -0
  12. data/meta/acm_large.yml +7 -0
  13. data/meta/acm_sig_alternate.yml +7 -0
  14. data/meta/acm_sig_strict.yml +7 -0
  15. data/meta/acs.yml +6 -0
  16. data/meta/agu.yml +6 -0
  17. data/meta/aiaa.yml +6 -0
  18. data/meta/aip_preprint.yml +7 -0
  19. data/meta/aip_reprint.yml +7 -0
  20. data/meta/aisb2008.yml +6 -0
  21. data/meta/aj_manuscript.yml +7 -0
  22. data/meta/aj_preprint.yml +7 -0
  23. data/meta/ajps.yml +6 -0
  24. data/meta/alma.yml +6 -0
  25. data/meta/ams_one.yml +7 -0
  26. data/meta/ams_two.yml +7 -0
  27. data/meta/apa_doc.yml +6 -0
  28. data/meta/apj_emulate.yml +7 -0
  29. data/meta/apj_manuscript.yml +7 -0
  30. data/meta/aps.yml +7 -0
  31. data/meta/aps_preprint.yml +7 -0
  32. data/meta/article.yml +6 -0
  33. data/meta/asp.yml +6 -0
  34. data/meta/authorea-double-numbered.yml +6 -0
  35. data/meta/authorea-double.yml +6 -0
  36. data/meta/authorea-numbered.yml +6 -0
  37. data/meta/authorea.yml +6 -0
  38. data/meta/biogeosciences.yml +6 -0
  39. data/meta/bioinformatics.yml +6 -0
  40. data/meta/bmc.yml +6 -0
  41. data/meta/book.yml +6 -0
  42. data/meta/cernatsnote.yml +7 -0
  43. data/meta/cernyrep.yml +7 -0
  44. data/meta/chandra.yml +6 -0
  45. data/meta/cogsci.yml +6 -0
  46. data/meta/cornell.yml +6 -0
  47. data/meta/cv.yml +6 -0
  48. data/meta/development.yml +6 -0
  49. data/meta/dfgproposal.yml +6 -0
  50. data/meta/dod.yml +6 -0
  51. data/meta/doe.yml +6 -0
  52. data/meta/econf.yml +6 -0
  53. data/meta/egu.yml +6 -0
  54. data/meta/elsevier.yml +7 -0
  55. data/meta/elsevier_review.yml +7 -0
  56. data/meta/elsevier_softwarex.yml +7 -0
  57. data/meta/elsevier_twocolumn.yml +7 -0
  58. data/meta/empty.yml +6 -0
  59. data/meta/epjc.yml +6 -0
  60. data/meta/f1000.yml +6 -0
  61. data/meta/frontiersENG.yml +7 -0
  62. data/meta/frontiersFPHY.yml +7 -0
  63. data/meta/frontiersMED.yml +7 -0
  64. data/meta/frontiersSCNS.yml +7 -0
  65. data/meta/g3.yml +6 -0
  66. data/meta/geophysics.yml +6 -0
  67. data/meta/gji.yml +6 -0
  68. data/meta/hess.yml +6 -0
  69. data/meta/hst.yml +6 -0
  70. data/meta/iclr.yml +6 -0
  71. data/meta/ieee_bare_conf.yml +7 -0
  72. data/meta/ieee_bare_jrnl.yml +7 -0
  73. data/meta/ieee_bare_jrnl_compsoc.yml +7 -0
  74. data/meta/ifac.yml +6 -0
  75. data/meta/ijcai.yml +6 -0
  76. data/meta/imsart_aas.yml +7 -0
  77. data/meta/imsart_as.yml +7 -0
  78. data/meta/iop.yml +6 -0
  79. data/meta/iram_proposal.yml +6 -0
  80. data/meta/jacow.yml +6 -0
  81. data/meta/jfm.yml +6 -0
  82. data/meta/jhep.yml +6 -0
  83. data/meta/jinst.yml +6 -0
  84. data/meta/jrss.yml +6 -0
  85. data/meta/jxb.yml +6 -0
  86. data/meta/lncs.yml +7 -0
  87. data/meta/mdpi.yml +6 -0
  88. data/meta/mit.yml +6 -0
  89. data/meta/mnras.yml +6 -0
  90. data/meta/nasa.yml +6 -0
  91. data/meta/nature.yml +7 -0
  92. data/meta/nature_scirep.yml +7 -0
  93. data/meta/nih.yml +6 -0
  94. data/meta/nime.yml +6 -0
  95. data/meta/nips.yml +6 -0
  96. data/meta/nsf.yml +6 -0
  97. data/meta/osaexpress.yml +7 -0
  98. data/meta/osaletters.yml +7 -0
  99. data/meta/peerj.yml +6 -0
  100. data/meta/plos.yml +7 -0
  101. data/meta/plos2015.yml +7 -0
  102. data/meta/pnas.yml +6 -0
  103. data/meta/report.yml +6 -0
  104. data/meta/rsc.yml +6 -0
  105. data/meta/sciadvances.yml +7 -0
  106. data/meta/science.yml +7 -0
  107. data/meta/sigchi.yml +7 -0
  108. data/meta/sigplan.yml +7 -0
  109. data/meta/spie.yml +6 -0
  110. data/meta/spieman.yml +6 -0
  111. data/meta/springer.yml +7 -0
  112. data/meta/springer_twocolumn.yml +7 -0
  113. data/meta/svmono.yml +7 -0
  114. data/meta/trb.yml +6 -0
  115. data/meta/tufte-handout.yml +6 -0
  116. data/meta/uchicago.yml +6 -0
  117. data/meta/ucriverside.yml +6 -0
  118. data/meta/uiowa.yml +6 -0
  119. data/meta/umich.yml +6 -0
  120. data/meta/uvic.yml +6 -0
  121. data/meta/uwollongong.yml +6 -0
  122. data/texstyles.gemspec +1 -1
  123. metadata +120 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f07c14f9ad05008b0dd23481c853253607b4654
4
- data.tar.gz: 0f355705a06b27c303eb1f3e4660fe3b522cdbaa
3
+ metadata.gz: 34a8a62f109191e51725aaa9d1614de06b2752ae
4
+ data.tar.gz: d48583a7168c5c76abcd4a3fc17b3f24204fb755
5
5
  SHA512:
6
- metadata.gz: 34f061ca3b159fec54e4dae31e544695151bfd55057c2e48deedd0d7793ca4182b259e3cba0b2280bc13150a6b4153cf4b7d0cf916574a7fcdf91b349e3307a1
7
- data.tar.gz: 6afda5cefc0599ed263bda80f5eb4fd0f82991b8d545eb6c316ebbf966a177677ea94338d2acc79c9b18087738e422cce6de02103e10f692321a67ebf3df42e1
6
+ metadata.gz: 295193214804eb73dbed0683f13430f0c8f6c43f89b650d3598338951d28162e65bfc21de3dee5d5827e8af718b242d75a64d2c6730e8b53d6599811fa38dd7e
7
+ data.tar.gz: eab566c54b3d4896d1d910920d7c5729c449edfda45356b98836452a08a061e85057d9c608fc42a0d7b0ad2a15e020eaf524c4721496367d2bbc9b17330b1f2a
@@ -5,7 +5,7 @@ module Texstyles
5
5
  class Style
6
6
  attr_accessor :symbol
7
7
 
8
- def initialize(symbol=:authorea)
8
+ def initialize(symbol = :authorea)
9
9
  @symbol = symbol.to_sym
10
10
  style_filename = "#{@symbol}.tex.erb"
11
11
  style_filepath = File.join(Texstyles.root, 'styles', style_filename)
@@ -15,10 +15,10 @@ module Texstyles
15
15
  nil
16
16
  end
17
17
 
18
- spec_filename = "#{@symbol}.yml"
19
- spec_filepath = File.join(Texstyles.root, 'spec', spec_filename)
20
- @spec = if File.exist? spec_filepath
21
- YAML.load_file(spec_filepath)
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
22
  else
23
23
  {}
24
24
  end
@@ -29,11 +29,11 @@ module Texstyles
29
29
  end
30
30
 
31
31
  def name
32
- @spec['name']
32
+ @meta['name']
33
33
  end
34
34
 
35
35
  def category
36
- @spec['category']
36
+ @meta['category']
37
37
  end
38
38
 
39
39
  end
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Landscape
3
+ category: generic
4
+ subcategory: Poster
5
+ citation_style: plain
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Portrait
3
+ category: generic
4
+ subcategory: Poster
5
+ citation_style: plain
6
+ default_packages:
7
+ "*": true
data/meta/aa.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Referee
3
+ category: physics
4
+ subcategory: Astronomy & Astrophysics (A&A)
5
+ citation_style: mnras
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: One column
3
+ category: physics
4
+ subcategory: Astronomy & Astrophysics (A&A)
5
+ citation_style: mnras
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Two column
3
+ category: physics
4
+ subcategory: Astronomy & Astrophysics (A&A)
5
+ citation_style: mnras
6
+ default_packages:
7
+ "*": true
data/meta/aaai.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: AAAI
3
+ category: computers
4
+ citation_style: aaai
5
+ default_packages:
6
+ "*": true
data/meta/abnt.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Associacao Brasileira de Normas Tecnicas - ABNT
3
+ category: other
4
+ citation_style:
5
+ default_packages:
6
+ "*": true
data/meta/acl.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Association for Computational Linguistics (ACL)
3
+ category: computers
4
+ citation_style: acl
5
+ default_packages:
6
+ "*": true
data/meta/acm.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Small Standard Format
3
+ category: computers
4
+ subcategory: ACM
5
+ citation_style: ACM-Reference-Format-Journals
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Large Format
3
+ category: computers
4
+ subcategory: ACM
5
+ citation_style:
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: SIG Alternate
3
+ category: computers
4
+ subcategory: ACM
5
+ citation_style: abbrv
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: SIG Strict
3
+ category: computers
4
+ subcategory: ACM
5
+ citation_style: abbrv
6
+ default_packages:
7
+ "*": true
data/meta/acs.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: American Chemical Society (ACS)
3
+ category: bio
4
+ citation_style:
5
+ default_packages:
6
+ "*": true
data/meta/agu.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: American Geophysical Union (AGU)
3
+ category: geo
4
+ citation_style: agufull08
5
+ default_packages:
6
+ "*": true
data/meta/aiaa.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: American Institute of Aeronautics and Astronautics (AIAA)
3
+ category: other
4
+ citation_style: aiaa
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,7 @@
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
@@ -0,0 +1,7 @@
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
data/meta/aisb2008.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: AISB
3
+ category: computers
4
+ citation_style: AISB2008
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Manuscript
3
+ category: physics
4
+ subcategory: The Astronomical Journal (AJ)
5
+ citation_style: aj
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Preprint
3
+ category: physics
4
+ subcategory: The Astronomical Journal (AJ)
5
+ citation_style: aj
6
+ default_packages:
7
+ "*": true
data/meta/ajps.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: American Journal of Political Science - AJPS
3
+ category: other
4
+ citation_style: apsr
5
+ default_packages:
6
+ "*": true
data/meta/alma.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: ALMA
3
+ category: grants
4
+ citation_style: abbrv
5
+ default_packages:
6
+ "*": true
data/meta/ams_one.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: One column
3
+ category: other
4
+ subcategory: American Meteorological Society (AMS)
5
+ citation_style: ametsoc2014
6
+ default_packages:
7
+ "*": true
data/meta/ams_two.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Two column
3
+ category: other
4
+ subcategory: American Meteorological Society (AMS)
5
+ citation_style: ametsoc2014
6
+ default_packages:
7
+ "*": true
data/meta/apa_doc.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: APA Style
3
+ category: generic
4
+ citation_style: apacite
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Emulate ApJ
3
+ category: physics
4
+ subcategory: The Astrophysical Journal (ApJ)
5
+ citation_style: apj
6
+ default_packages:
7
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Manuscript
3
+ category: physics
4
+ subcategory: The Astrophysical Journal (ApJ)
5
+ citation_style: aj
6
+ default_packages:
7
+ "*": true
data/meta/aps.yml ADDED
@@ -0,0 +1,7 @@
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
@@ -0,0 +1,7 @@
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
data/meta/article.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Scholarly Article
3
+ category: generic
4
+ citation_style: plain
5
+ default_packages:
6
+ "*": true
data/meta/asp.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Astronomical Society of the Pacific (ASP)
3
+ category: physics
4
+ citation_style: asp2010
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Authorea Double-spaced, Numbered Lines
3
+ category: generic
4
+ citation_style: apacite
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Authorea Double-spaced
3
+ category: generic
4
+ citation_style: apacite
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Authorea Numbered Lines
3
+ category: generic
4
+ citation_style: apacite
5
+ default_packages:
6
+ "*": true
data/meta/authorea.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Authorea
3
+ category: generic
4
+ citation_style: apacite
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Biogeosciences
3
+ category: geo
4
+ citation_style: copernicus
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Bioinformatics
3
+ category: bio
4
+ citation_style: natbib
5
+ default_packages:
6
+ "*": true
data/meta/bmc.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: BioMed Central
3
+ category: bio
4
+ citation_style: bmc-mathphys
5
+ default_packages:
6
+ "*": true
data/meta/book.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Book
3
+ category: generic
4
+ citation_style: plain
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: ATS Note
3
+ category: physics
4
+ subcategory: CERN
5
+ citation_style: naturemag
6
+ default_packages:
7
+ "*": true
data/meta/cernyrep.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: Yellow Report
3
+ category: physics
4
+ subcategory: CERN
5
+ citation_style: naturemag
6
+ default_packages:
7
+ "*": true
data/meta/chandra.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Chandra
3
+ category: grants
4
+ citation_style: plain
5
+ default_packages:
6
+ "*": true
data/meta/cogsci.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Cognitive Science Society (CogSci)
3
+ category: computers
4
+ citation_style: apacite
5
+ default_packages:
6
+ "*": true
data/meta/cornell.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Cornell
3
+ category: thesis
4
+ citation_style: plain
5
+ default_packages:
6
+ "*": true
data/meta/cv.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Curriculum Vitae (cv)
3
+ category: generic
4
+ citation_style: unsrt
5
+ default_packages:
6
+ "*": true
@@ -0,0 +1,6 @@
1
+ ---
2
+ name: Development
3
+ category: bio
4
+ citation_style: jxb
5
+ default_packages:
6
+ "*": true