texstyles 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34a8a62f109191e51725aaa9d1614de06b2752ae
4
- data.tar.gz: d48583a7168c5c76abcd4a3fc17b3f24204fb755
3
+ metadata.gz: 34d3bf8527240d16f2a1d9329dc69fc5eab74e23
4
+ data.tar.gz: a238adb5be7890918a7d68a4bee1203cde14b3ee
5
5
  SHA512:
6
- metadata.gz: 295193214804eb73dbed0683f13430f0c8f6c43f89b650d3598338951d28162e65bfc21de3dee5d5827e8af718b242d75a64d2c6730e8b53d6599811fa38dd7e
7
- data.tar.gz: eab566c54b3d4896d1d910920d7c5729c449edfda45356b98836452a08a061e85057d9c608fc42a0d7b0ad2a15e020eaf524c4721496367d2bbc9b17330b1f2a
6
+ metadata.gz: 233c667b3a00ef3b226e10840e09f8af9b2c76dad9c4c0a12aec99bc68802848af521bfc5e8a527fe5a8dd22bf048cc3c0b4f2541928b5fd223c4e91e98008dc
7
+ data.tar.gz: a6a9b867ae3f72859a59d9a09ba499c8d4a4049dacbd3c20654e5d5edf6e0bcbfe97ae5ceae6df338a5d56ebd7de319ee02aa4f3cabd8ec480cefda7de92a356
@@ -22,6 +22,10 @@ module Texstyles
22
22
  else
23
23
  {}
24
24
  end
25
+ @default_packages = @meta['default_packages'] || {}
26
+ @all_rule = @default_packages['*']
27
+ @all_compatible = (@all_rule == true)
28
+ @none_compatible = (@all_rule == false)
25
29
  end
26
30
 
27
31
  def render_latex
@@ -36,5 +40,9 @@ module Texstyles
36
40
  @meta['category']
37
41
  end
38
42
 
43
+ def package_compatible?(package_name)
44
+ @all_compatible || (!@none_compatible && (@default_packages[package_name] != false))
45
+ end
46
+
39
47
  end
40
48
  end
data/meta/acs.yml CHANGED
@@ -1,6 +1,10 @@
1
1
  ---
2
2
  name: American Chemical Society (ACS)
3
3
  category: bio
4
- citation_style:
4
+ citation_style: achemso
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ natbib: true
9
+ hyperref: true
10
+ babel: false
data/meta/aj_preprint.yml CHANGED
@@ -4,4 +4,8 @@ category: physics
4
4
  subcategory: The Astronomical Journal (AJ)
5
5
  citation_style: aj
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/apa_doc.yml CHANGED
@@ -3,4 +3,8 @@ name: APA Style
3
3
  category: generic
4
4
  citation_style: apacite
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
@@ -3,4 +3,8 @@ name: Authorea Double-spaced, Numbered Lines
3
3
  category: generic
4
4
  citation_style: apacite
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ natbib: false
10
+ hyperref: false
@@ -3,4 +3,8 @@ name: Authorea Double-spaced
3
3
  category: generic
4
4
  citation_style: apacite
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ natbib: false
10
+ hyperref: false
@@ -3,4 +3,8 @@ name: Authorea Numbered Lines
3
3
  category: generic
4
4
  citation_style: apacite
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ natbib: false
10
+ hyperref: false
data/meta/authorea.yml CHANGED
@@ -3,4 +3,8 @@ name: Authorea
3
3
  category: generic
4
4
  citation_style: apacite
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ natbib: false
10
+ hyperref: false
@@ -3,4 +3,8 @@ name: Biogeosciences
3
3
  category: geo
4
4
  citation_style: copernicus
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ natbib: true
9
+ hyperref: true
10
+ babel: false
data/meta/cogsci.yml CHANGED
@@ -3,4 +3,8 @@ name: Cognitive Science Society (CogSci)
3
3
  category: computers
4
4
  citation_style: apacite
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/meta/dfgproposal.yml CHANGED
@@ -1,6 +1,10 @@
1
1
  ---
2
2
  name: DFG
3
3
  category: grants
4
- citation_style:
4
+ citation_style:
5
5
  default_packages:
6
- "*": true
6
+ latexml: true
7
+ ams: false
8
+ babel: false
9
+ hyperref: false
10
+ natbib: false
data/meta/egu.yml CHANGED
@@ -3,4 +3,8 @@ name: European Geosciences Union (EGU)
3
3
  category: geo
4
4
  citation_style: copernicus
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ natbib: true
9
+ hyperref: true
10
+ babel: false
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: Elsevier
5
5
  citation_style: elsarticle-num
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: Elsevier
5
5
  citation_style: elsarticle-num
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: Elsevier
5
5
  citation_style: elsarticle-num
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/gji.yml CHANGED
@@ -3,4 +3,8 @@ name: Geophysical Journal International (GJI)
3
3
  category: physics
4
4
  citation_style: gji
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/meta/hess.yml CHANGED
@@ -3,4 +3,8 @@ name: Hydrology and Earth System Sciences
3
3
  category: geo
4
4
  citation_style: copernicus
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ natbib: true
9
+ hyperref: true
10
+ babel: false
@@ -4,4 +4,8 @@ category: computers
4
4
  subcategory: IEEE Transactions
5
5
  citation_style: IEEEtran
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
@@ -4,4 +4,8 @@ category: computers
4
4
  subcategory: IEEE Transactions
5
5
  citation_style: IEEEtran
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
@@ -4,4 +4,8 @@ category: computers
4
4
  subcategory: IEEE Transactions
5
5
  citation_style: IEEEtran
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/imsart_aas.yml CHANGED
@@ -4,4 +4,8 @@ category: other
4
4
  subcategory: Institute of Mathematical Statistics (IMS)
5
5
  citation_style: imsart-number
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/imsart_as.yml CHANGED
@@ -4,4 +4,8 @@ category: other
4
4
  subcategory: Institute of Mathematical Statistics (IMS)
5
5
  citation_style: imsart-number
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/jacow.yml CHANGED
@@ -3,4 +3,8 @@ name: Joint Accelerator Conferences (JACoW)
3
3
  category: physics
4
4
  citation_style: plain
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/meta/lncs.yml CHANGED
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: Springer
5
5
  citation_style: splncs03
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/nasa.yml CHANGED
@@ -3,4 +3,8 @@ name: NASA
3
3
  category: grants
4
4
  citation_style: abbrv
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/meta/plos.yml CHANGED
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: PLoS
5
5
  citation_style: plos2009
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/plos2015.yml CHANGED
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: PLoS
5
5
  citation_style: plos2015
6
6
  default_packages:
7
- "*": true
7
+ latexml: true
8
+ babel: true
9
+ ams: false
10
+ natbib: false
11
+ hyperref: false
data/meta/rsc.yml CHANGED
@@ -3,4 +3,8 @@ name: The Royal Society of Chemistry (RSC)
3
3
  category: bio
4
4
  citation_style: rsc
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/meta/sciadvances.yml CHANGED
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: Science
5
5
  citation_style: ScienceAdvances
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/science.yml CHANGED
@@ -4,4 +4,8 @@ category: generic
4
4
  subcategory: Science
5
5
  citation_style: Science
6
6
  default_packages:
7
- "*": true
7
+ ams: true
8
+ latexml: true
9
+ babel: true
10
+ hyperref: true
11
+ natbib: false
data/meta/trb.yml CHANGED
@@ -3,4 +3,8 @@ name: Transportation Research Board conference - TRB
3
3
  category: other
4
4
  citation_style: trb
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/meta/uwollongong.yml CHANGED
@@ -3,4 +3,8 @@ name: U. Wollongong (Australia)
3
3
  category: thesis
4
4
  citation_style: agsm
5
5
  default_packages:
6
- "*": true
6
+ ams: true
7
+ latexml: true
8
+ babel: true
9
+ hyperref: true
10
+ natbib: false
data/texstyles.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "texstyles"
4
- spec.version = "0.0.3"
4
+ spec.version = "0.0.4"
5
5
 
6
6
  spec.authors = ["Deyan Ginev"]
7
7
  spec.email = ["deyan@authorea.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texstyles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deyan Ginev