texstyles 0.0.2 → 0.0.3
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 +7 -7
- data/meta/a0poster-landscape.yml +7 -0
- data/meta/a0poster-portrait.yml +7 -0
- data/meta/aa.yml +7 -0
- data/meta/aa_onecolumn.yml +7 -0
- data/meta/aa_twocolumn.yml +7 -0
- data/meta/aaai.yml +6 -0
- data/meta/abnt.yml +6 -0
- data/meta/acl.yml +6 -0
- data/meta/acm.yml +7 -0
- data/meta/acm_large.yml +7 -0
- data/meta/acm_sig_alternate.yml +7 -0
- data/meta/acm_sig_strict.yml +7 -0
- data/meta/acs.yml +6 -0
- data/meta/agu.yml +6 -0
- data/meta/aiaa.yml +6 -0
- data/meta/aip_preprint.yml +7 -0
- data/meta/aip_reprint.yml +7 -0
- data/meta/aisb2008.yml +6 -0
- data/meta/aj_manuscript.yml +7 -0
- data/meta/aj_preprint.yml +7 -0
- data/meta/ajps.yml +6 -0
- data/meta/alma.yml +6 -0
- data/meta/ams_one.yml +7 -0
- data/meta/ams_two.yml +7 -0
- data/meta/apa_doc.yml +6 -0
- data/meta/apj_emulate.yml +7 -0
- data/meta/apj_manuscript.yml +7 -0
- data/meta/aps.yml +7 -0
- data/meta/aps_preprint.yml +7 -0
- data/meta/article.yml +6 -0
- data/meta/asp.yml +6 -0
- data/meta/authorea-double-numbered.yml +6 -0
- data/meta/authorea-double.yml +6 -0
- data/meta/authorea-numbered.yml +6 -0
- data/meta/authorea.yml +6 -0
- data/meta/biogeosciences.yml +6 -0
- data/meta/bioinformatics.yml +6 -0
- data/meta/bmc.yml +6 -0
- data/meta/book.yml +6 -0
- data/meta/cernatsnote.yml +7 -0
- data/meta/cernyrep.yml +7 -0
- data/meta/chandra.yml +6 -0
- data/meta/cogsci.yml +6 -0
- data/meta/cornell.yml +6 -0
- data/meta/cv.yml +6 -0
- data/meta/development.yml +6 -0
- data/meta/dfgproposal.yml +6 -0
- data/meta/dod.yml +6 -0
- data/meta/doe.yml +6 -0
- data/meta/econf.yml +6 -0
- data/meta/egu.yml +6 -0
- data/meta/elsevier.yml +7 -0
- data/meta/elsevier_review.yml +7 -0
- data/meta/elsevier_softwarex.yml +7 -0
- data/meta/elsevier_twocolumn.yml +7 -0
- data/meta/empty.yml +6 -0
- data/meta/epjc.yml +6 -0
- data/meta/f1000.yml +6 -0
- data/meta/frontiersENG.yml +7 -0
- data/meta/frontiersFPHY.yml +7 -0
- data/meta/frontiersMED.yml +7 -0
- data/meta/frontiersSCNS.yml +7 -0
- data/meta/g3.yml +6 -0
- data/meta/geophysics.yml +6 -0
- data/meta/gji.yml +6 -0
- data/meta/hess.yml +6 -0
- data/meta/hst.yml +6 -0
- data/meta/iclr.yml +6 -0
- data/meta/ieee_bare_conf.yml +7 -0
- data/meta/ieee_bare_jrnl.yml +7 -0
- data/meta/ieee_bare_jrnl_compsoc.yml +7 -0
- data/meta/ifac.yml +6 -0
- data/meta/ijcai.yml +6 -0
- data/meta/imsart_aas.yml +7 -0
- data/meta/imsart_as.yml +7 -0
- data/meta/iop.yml +6 -0
- data/meta/iram_proposal.yml +6 -0
- data/meta/jacow.yml +6 -0
- data/meta/jfm.yml +6 -0
- data/meta/jhep.yml +6 -0
- data/meta/jinst.yml +6 -0
- data/meta/jrss.yml +6 -0
- data/meta/jxb.yml +6 -0
- data/meta/lncs.yml +7 -0
- data/meta/mdpi.yml +6 -0
- data/meta/mit.yml +6 -0
- data/meta/mnras.yml +6 -0
- data/meta/nasa.yml +6 -0
- data/meta/nature.yml +7 -0
- data/meta/nature_scirep.yml +7 -0
- data/meta/nih.yml +6 -0
- data/meta/nime.yml +6 -0
- data/meta/nips.yml +6 -0
- data/meta/nsf.yml +6 -0
- data/meta/osaexpress.yml +7 -0
- data/meta/osaletters.yml +7 -0
- data/meta/peerj.yml +6 -0
- data/meta/plos.yml +7 -0
- data/meta/plos2015.yml +7 -0
- data/meta/pnas.yml +6 -0
- data/meta/report.yml +6 -0
- data/meta/rsc.yml +6 -0
- data/meta/sciadvances.yml +7 -0
- data/meta/science.yml +7 -0
- data/meta/sigchi.yml +7 -0
- data/meta/sigplan.yml +7 -0
- data/meta/spie.yml +6 -0
- data/meta/spieman.yml +6 -0
- data/meta/springer.yml +7 -0
- data/meta/springer_twocolumn.yml +7 -0
- data/meta/svmono.yml +7 -0
- data/meta/trb.yml +6 -0
- data/meta/tufte-handout.yml +6 -0
- data/meta/uchicago.yml +6 -0
- data/meta/ucriverside.yml +6 -0
- data/meta/uiowa.yml +6 -0
- data/meta/umich.yml +6 -0
- data/meta/uvic.yml +6 -0
- data/meta/uwollongong.yml +6 -0
- data/texstyles.gemspec +1 -1
- metadata +120 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34a8a62f109191e51725aaa9d1614de06b2752ae
|
4
|
+
data.tar.gz: d48583a7168c5c76abcd4a3fc17b3f24204fb755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 295193214804eb73dbed0683f13430f0c8f6c43f89b650d3598338951d28162e65bfc21de3dee5d5827e8af718b242d75a64d2c6730e8b53d6599811fa38dd7e
|
7
|
+
data.tar.gz: eab566c54b3d4896d1d910920d7c5729c449edfda45356b98836452a08a061e85057d9c608fc42a0d7b0ad2a15e020eaf524c4721496367d2bbc9b17330b1f2a
|
data/lib/texstyles/style.rb
CHANGED
@@ -5,7 +5,7 @@ module Texstyles
|
|
5
5
|
class Style
|
6
6
|
attr_accessor :symbol
|
7
7
|
|
8
|
-
def initialize(symbol
|
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
|
-
|
19
|
-
|
20
|
-
@
|
21
|
-
YAML.load_file(
|
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
|
-
@
|
32
|
+
@meta['name']
|
33
33
|
end
|
34
34
|
|
35
35
|
def category
|
36
|
-
@
|
36
|
+
@meta['category']
|
37
37
|
end
|
38
38
|
|
39
39
|
end
|
data/meta/aa.yml
ADDED
data/meta/aaai.yml
ADDED
data/meta/abnt.yml
ADDED
data/meta/acl.yml
ADDED
data/meta/acm.yml
ADDED
data/meta/acm_large.yml
ADDED
data/meta/acs.yml
ADDED
data/meta/agu.yml
ADDED
data/meta/aiaa.yml
ADDED
data/meta/aisb2008.yml
ADDED
data/meta/ajps.yml
ADDED
data/meta/alma.yml
ADDED
data/meta/ams_one.yml
ADDED
data/meta/ams_two.yml
ADDED
data/meta/apa_doc.yml
ADDED
data/meta/aps.yml
ADDED
data/meta/article.yml
ADDED
data/meta/asp.yml
ADDED
data/meta/authorea.yml
ADDED
data/meta/bmc.yml
ADDED
data/meta/book.yml
ADDED
data/meta/cernyrep.yml
ADDED
data/meta/chandra.yml
ADDED
data/meta/cogsci.yml
ADDED
data/meta/cornell.yml
ADDED
data/meta/cv.yml
ADDED