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 +4 -4
- data/lib/texstyles/style.rb +8 -0
- data/meta/acs.yml +6 -2
- data/meta/aj_preprint.yml +5 -1
- data/meta/apa_doc.yml +5 -1
- data/meta/authorea-double-numbered.yml +5 -1
- data/meta/authorea-double.yml +5 -1
- data/meta/authorea-numbered.yml +5 -1
- data/meta/authorea.yml +5 -1
- data/meta/biogeosciences.yml +5 -1
- data/meta/cogsci.yml +5 -1
- data/meta/dfgproposal.yml +6 -2
- data/meta/egu.yml +5 -1
- data/meta/elsevier_review.yml +5 -1
- data/meta/elsevier_softwarex.yml +5 -1
- data/meta/elsevier_twocolumn.yml +5 -1
- data/meta/gji.yml +5 -1
- data/meta/hess.yml +5 -1
- data/meta/ieee_bare_conf.yml +5 -1
- data/meta/ieee_bare_jrnl.yml +5 -1
- data/meta/ieee_bare_jrnl_compsoc.yml +5 -1
- data/meta/imsart_aas.yml +5 -1
- data/meta/imsart_as.yml +5 -1
- data/meta/jacow.yml +5 -1
- data/meta/lncs.yml +5 -1
- data/meta/nasa.yml +5 -1
- data/meta/plos.yml +5 -1
- data/meta/plos2015.yml +5 -1
- data/meta/rsc.yml +5 -1
- data/meta/sciadvances.yml +5 -1
- data/meta/science.yml +5 -1
- data/meta/trb.yml +5 -1
- data/meta/uwollongong.yml +5 -1
- data/texstyles.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34d3bf8527240d16f2a1d9329dc69fc5eab74e23
|
4
|
+
data.tar.gz: a238adb5be7890918a7d68a4bee1203cde14b3ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 233c667b3a00ef3b226e10840e09f8af9b2c76dad9c4c0a12aec99bc68802848af521bfc5e8a527fe5a8dd22bf048cc3c0b4f2541928b5fd223c4e91e98008dc
|
7
|
+
data.tar.gz: a6a9b867ae3f72859a59d9a09ba499c8d4a4049dacbd3c20654e5d5edf6e0bcbfe97ae5ceae6df338a5d56ebd7de319ee02aa4f3cabd8ec480cefda7de92a356
|
data/lib/texstyles/style.rb
CHANGED
@@ -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
data/meta/aj_preprint.yml
CHANGED
data/meta/apa_doc.yml
CHANGED
data/meta/authorea-double.yml
CHANGED
data/meta/authorea-numbered.yml
CHANGED
data/meta/authorea.yml
CHANGED
data/meta/biogeosciences.yml
CHANGED
data/meta/cogsci.yml
CHANGED
data/meta/dfgproposal.yml
CHANGED
data/meta/egu.yml
CHANGED
data/meta/elsevier_review.yml
CHANGED
data/meta/elsevier_softwarex.yml
CHANGED
data/meta/elsevier_twocolumn.yml
CHANGED
data/meta/gji.yml
CHANGED
data/meta/hess.yml
CHANGED
data/meta/ieee_bare_conf.yml
CHANGED
data/meta/ieee_bare_jrnl.yml
CHANGED
data/meta/imsart_aas.yml
CHANGED
data/meta/imsart_as.yml
CHANGED
data/meta/jacow.yml
CHANGED
data/meta/lncs.yml
CHANGED
data/meta/nasa.yml
CHANGED
data/meta/plos.yml
CHANGED
data/meta/plos2015.yml
CHANGED
data/meta/rsc.yml
CHANGED
data/meta/sciadvances.yml
CHANGED
data/meta/science.yml
CHANGED
data/meta/trb.yml
CHANGED
data/meta/uwollongong.yml
CHANGED
data/texstyles.gemspec
CHANGED