latex_document 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +35 -0
- data/bin/latex_document +0 -1
- data/latex_document.gemspec +3 -3
- data/lib/latex_document/version.rb +1 -1
- data/templates/md/Makefile.tt +34 -53
- data/templates/md/document.md.tt +0 -9
- metadata +12 -13
- data/templates/references.bib.tt +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab7d3a1f4b1445b0a381f4d0886d532e16c79968
|
4
|
+
data.tar.gz: 2fcb43ce73ff6866c8c6475a7b45dca55f2c1abe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44f45b2a5a3f719ba95a6fc194734ae2df1aec71dba69fed1d1c3e8588c4b1e14aa1155fcb17e95262d709fff9b3f46d866fb2229f166c3c18079090cbdce2f9
|
7
|
+
data.tar.gz: 5b4fe6b8a2951126ffbda094fac33c138bae81913c9e3a887f5b69def95de87625eb588997734f9ed2c68169ae64ada0554b1cbadcbaed9c09a8f80a8480cbc5
|
data/.gitignore
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/test/tmp/
|
9
|
+
/test/version_tmp/
|
10
|
+
/tmp/
|
11
|
+
|
12
|
+
## Specific to RubyMotion:
|
13
|
+
.dat*
|
14
|
+
.repl_history
|
15
|
+
build/
|
16
|
+
|
17
|
+
## Documentation cache and generated files:
|
18
|
+
/.yardoc/
|
19
|
+
/_yardoc/
|
20
|
+
/doc/
|
21
|
+
/rdoc/
|
22
|
+
|
23
|
+
## Environment normalisation:
|
24
|
+
/.bundle/
|
25
|
+
/vendor/bundle
|
26
|
+
/lib/bundler/man/
|
27
|
+
|
28
|
+
# for a library or gem, you might want to ignore these files since the code is
|
29
|
+
# intended to run in multiple environments; otherwise, check them in:
|
30
|
+
Gemfile.lock
|
31
|
+
.ruby-version
|
32
|
+
.ruby-gemset
|
33
|
+
|
34
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
35
|
+
.rvmrc
|
data/bin/latex_document
CHANGED
data/latex_document.gemspec
CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'thor', '~> 0.
|
21
|
+
spec.add_dependency 'thor', '~> 0.20'
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~>
|
24
|
-
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
24
|
+
spec.add_development_dependency "rake", "~> 12.3"
|
25
25
|
end
|
data/templates/md/Makefile.tt
CHANGED
@@ -1,68 +1,47 @@
|
|
1
1
|
TARGET_BASE :=<%= name %>
|
2
2
|
MD_SRC :=$(TARGET_BASE).md
|
3
|
-
TEX_SRC :=$(TARGET_BASE).
|
4
|
-
GENERATED_TEX :=$(TARGET_BASE).tex
|
3
|
+
TEX_SRC :=$(TARGET_BASE).tex
|
4
|
+
GENERATED_TEX :=$(TARGET_BASE).gen.tex
|
5
|
+
GENERATED_PDF :=$(TARGET_BASE).gen.pdf
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
TEMPLATE :=template.pandoc
|
9
|
-
|
10
|
-
# Default geometry
|
11
|
-
geometry =margin=2cm
|
7
|
+
ALL_TARGETS :=$(GENERATED_PDF)
|
12
8
|
|
13
9
|
# Build Rules
|
14
10
|
#============
|
15
|
-
default:
|
11
|
+
default: all
|
16
12
|
.PHONY: default
|
17
13
|
|
18
|
-
|
19
|
-
|
14
|
+
all: $(ALL_TARGETS)
|
15
|
+
.PHONY: all
|
16
|
+
|
17
|
+
ifdef BIB
|
18
|
+
PANDOC_BIB=--biblatex --biblio=$(BIB)
|
19
|
+
else
|
20
|
+
PANDOC_BIB=
|
21
|
+
endif
|
22
|
+
|
23
|
+
ifdef TEMPLATE
|
24
|
+
PANDOC_TEMPLATE=--template=$(TEMPLATE)
|
25
|
+
else
|
26
|
+
PANDOC_TEMPLATE=
|
27
|
+
endif
|
28
|
+
|
29
|
+
%.gen.pdf: %.md $(TEMPLATE) $(BIB)
|
20
30
|
pandoc \
|
21
|
-
|
22
|
-
|
23
|
-
--biblio $(BIB) \
|
24
|
-
--variable geometry:$(geometry) \
|
25
|
-
--variable fontsize:12pt \
|
31
|
+
$(PANDOC_BIB) \
|
32
|
+
$(PANDOC_TEMPLATE) \
|
26
33
|
$(CLASSOPTION) \
|
27
34
|
-s \
|
28
35
|
$< \
|
29
36
|
-o $@
|
30
|
-
$(TEX_SRC): $(GENERATED_TEX)
|
31
|
-
mv $< $@
|
32
|
-
rm $(MD_SRC)
|
33
|
-
else
|
34
|
-
$(GENERATED_TEX): $(TEX_SRC)
|
35
|
-
cp $< $@
|
36
|
-
endif
|
37
|
-
|
38
|
-
$(TARGET_BASE).pdf: $(GENERATED_TEX)
|
39
|
-
pdflatex $(TARGET_BASE)
|
40
|
-
biber $(TARGET_BASE)
|
41
|
-
pdflatex $(TARGET_BASE)
|
42
|
-
pdflatex $(TARGET_BASE)
|
43
|
-
$(MAKE) clean-extra
|
44
|
-
|
45
|
-
quick: $(GENERATED_TEX)
|
46
|
-
pdflatex $(GENERATED_TEX)
|
47
|
-
$(MAKE) clean-extra
|
48
|
-
.PHONY: quick
|
49
|
-
|
50
|
-
pdf: $(TARGET_BASE).pdf
|
51
|
-
.PHONY: pdf
|
52
|
-
|
53
|
-
tex: $(GENERATED_TEX)
|
54
|
-
.PHONY: tex
|
55
|
-
|
56
|
-
tex-src: $(TEX_SRC)
|
57
|
-
.PHONY: tex-src
|
58
37
|
|
59
|
-
draft: CLASSOPTION =--variable classoption:draft
|
60
|
-
draft:
|
61
|
-
.PHONY: draft
|
38
|
+
%-draft: CLASSOPTION =--variable classoption:draft
|
39
|
+
%-draft: %
|
40
|
+
.PHONY: %-draft
|
62
41
|
|
63
|
-
final: CLASSOPTION =--variable classoption:final
|
64
|
-
final:
|
65
|
-
.PHONY: final
|
42
|
+
%-final: CLASSOPTION =--variable classoption:final
|
43
|
+
%-final: %
|
44
|
+
.PHONY: %-final
|
66
45
|
|
67
46
|
|
68
47
|
# Meta Rules
|
@@ -72,12 +51,14 @@ print-%:
|
|
72
51
|
.PHONY: print-%
|
73
52
|
|
74
53
|
clean-extra:
|
75
|
-
@-rm *.log *.aux *.bcf *.bbl *.blg *.dvi *.out *.run.xml *.lot *.lof *.toc
|
54
|
+
@-rm *.log *.aux *.bcf *.bbl *.blg *.dvi *.out *.run.xml *.lot *.lof *.toc 2> /dev/null || true
|
76
55
|
.PHONY: clean-extra
|
77
56
|
|
78
|
-
clean: clean-extra
|
57
|
+
clean: clean-extra
|
58
|
+
@-rm -r *.gen 2> /dev/null || true
|
59
|
+
@-rm *.gen.* 2> /dev/null || true
|
79
60
|
.PHONY: clean
|
80
61
|
|
81
62
|
clean-pdf:
|
82
|
-
@-rm *.pdf || true
|
63
|
+
@-rm *.gen.pdf 2> /dev/null || true
|
83
64
|
.PHONY: clean-pdf
|
data/templates/md/document.md.tt
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: latex_document
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Morrill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.20'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.20'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.3'
|
55
55
|
description: Latex document generator
|
56
56
|
email:
|
57
57
|
- morrill@ualberta.ca
|
@@ -60,6 +60,7 @@ executables:
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
+
- ".gitignore"
|
63
64
|
- Gemfile
|
64
65
|
- LICENSE.txt
|
65
66
|
- README.md
|
@@ -70,7 +71,6 @@ files:
|
|
70
71
|
- lib/latex_document/version.rb
|
71
72
|
- templates/md/Makefile.tt
|
72
73
|
- templates/md/document.md.tt
|
73
|
-
- templates/references.bib.tt
|
74
74
|
homepage: https://github.com/dmorrill10/latex_document
|
75
75
|
licenses:
|
76
76
|
- MIT
|
@@ -91,9 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.6.11
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Latex document generator
|
98
98
|
test_files: []
|
99
|
-
has_rdoc:
|
data/templates/references.bib.tt
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
@inproceedings{rcfr,
|
2
|
-
title = {Solving Games with Functional Regret Estimation},
|
3
|
-
author = {Kevin Waugh and Dustin Morrill and J. Andrew Bagnell and Michael Bowling},
|
4
|
-
booktitle = {{Twenty-Ninth AAAI Conference on Artificial Intelligence, January 25-29, 2015, Austin Texas, USA}},
|
5
|
-
year = {2015},
|
6
|
-
month = {January},
|
7
|
-
location = {Austin Texas, USA},
|
8
|
-
pages="2138--2145"
|
9
|
-
}
|