limarka 19.7.3.pre.323 → 19.7.3.pre.324
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/limarka/conversor.rb +3 -7
- data/lib/limarka/trabalho.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00dcf80361f831984e3cd9bf91b627a4bb5834fc95cedc49326df86a7cf998d9
|
4
|
+
data.tar.gz: ad01e5997880d67515664193cd00121defdbb1f2fe80a1762ae84edacbcb61b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7f15adcf4e7158d7b37d358bcedf7a59b96fd762288e64460f016f8ead56355cd40e8ba3ae9d7619bb3c1d3af5cac46adfe81b5e3041714aa359f57ee9194ed
|
7
|
+
data.tar.gz: '0985e4d7d0d3a6e9daf37ec87ab0a6477f11a72bcf7a1c1b5bf9e9d0438d77747f70b33821b0aa203a2828cc4f590d82465d874a9d44f164c4ad8eabcccb7726'
|
data/lib/limarka/conversor.rb
CHANGED
@@ -90,7 +90,7 @@ module Limarka
|
|
90
90
|
"epigrafe", "resumo", "abstract", "lista_ilustracoes", "lista_tabelas",
|
91
91
|
"lista_siglas", "lista_simbolos", "sumario"].each_with_index do |secao,indice|
|
92
92
|
template = "pretextual#{indice+1}-#{secao}"
|
93
|
-
Open3.popen3("pandoc -f #{formato} \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
93
|
+
Open3.popen3("pandoc -f #{@t.formato} \"--data-dir=#{options[:templates_dir]}\" --template=#{template} -t latex --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
94
94
|
stdin.write(hash_to_yaml(t.configuracao))
|
95
95
|
stdin.write("\n")
|
96
96
|
if t.errata? and necessita_de_arquivo_de_texto.include?(secao) then
|
@@ -191,13 +191,9 @@ module Limarka
|
|
191
191
|
result
|
192
192
|
end
|
193
193
|
|
194
|
-
def formato
|
195
|
-
"markdown+raw_tex"
|
196
|
-
end
|
197
|
-
|
198
194
|
def textual(pretextual_tempfile, postextual_tempfile)
|
199
195
|
valida_yaml
|
200
|
-
Open3.popen3("pandoc -f #{formato} -t latex -s \"--data-dir=#{options[:templates_dir]}\" --template=trabalho-academico --top-level-division=chapter --include-before-body=#{pretextual_tempfile.path} --include-after-body=#{postextual_tempfile.path} #{filtros_lua} #{filtros} --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
196
|
+
Open3.popen3("pandoc -f #{@t.formato} -t latex -s \"--data-dir=#{options[:templates_dir]}\" --template=trabalho-academico --top-level-division=chapter --include-before-body=#{pretextual_tempfile.path} --include-after-body=#{postextual_tempfile.path} #{filtros_lua} #{filtros} --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
201
197
|
stdin.write(File.read(options[:templates_dir] + '/templates/configuracao-tecnica.yaml'))
|
202
198
|
stdin.write("\n")
|
203
199
|
stdin.write(hash_to_yaml(t.configuracao))
|
@@ -263,7 +259,7 @@ module Limarka
|
|
263
259
|
def secao(template, condicao_para_conteudo, conteudo_externo)
|
264
260
|
s = StringIO.new
|
265
261
|
|
266
|
-
Open3.popen3("pandoc -f #{formato} \"--data-dir=#{options[:templates_dir]}\" --template=#{template} --top-level-division=chapter -t latex --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
262
|
+
Open3.popen3("pandoc -f #{@t.formato} \"--data-dir=#{options[:templates_dir]}\" --template=#{template} --top-level-division=chapter -t latex --filter #{pandoc_abnt_path}") {|stdin, stdout, stderr, wait_thr|
|
267
263
|
stdin.write(hash_to_yaml(t.configuracao))
|
268
264
|
stdin.write("\n")
|
269
265
|
if (condicao_para_conteudo) then
|
data/lib/limarka/trabalho.rb
CHANGED
@@ -204,5 +204,18 @@ module Limarka
|
|
204
204
|
end
|
205
205
|
|
206
206
|
end
|
207
|
+
|
208
|
+
def self.formato_padrao
|
209
|
+
"markdown+raw_tex"
|
210
|
+
end
|
211
|
+
|
212
|
+
def formato
|
213
|
+
result = Trabalho.formato_padrao
|
214
|
+
unless @configuracao["formato"].nil? then
|
215
|
+
result << @configuracao["formato"]
|
216
|
+
end
|
217
|
+
result
|
218
|
+
end
|
219
|
+
|
207
220
|
end
|
208
221
|
end
|