avm-eac_latex_base0 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avm/eac_latex_base0/executables.rb +1 -1
- data/lib/avm/eac_latex_base0/sources/build/copy_files.rb +1 -1
- data/lib/avm/eac_latex_base0/sources/build/file/chapter_index.rb +1 -1
- data/lib/avm/eac_latex_base0/sources/build.rb +3 -3
- data/lib/avm/eac_latex_base0/version.rb +1 -1
- data/template/avm/eac_latex_base0/instances/deploy/index.html.template +9 -0
- data/template/avm/eac_latex_base0/sources/build/commons/all.tex +5 -0
- data/template/avm/eac_latex_base0/sources/build/commons/ebook.tex +11 -0
- data/template/avm/eac_latex_base0/sources/build/commons/images.tex +11 -0
- data/template/avm/eac_latex_base0/sources/build/commons/links.tex +2 -0
- data/template/avm/eac_latex_base0/sources/build/commons/portuguese.tex +8 -0
- data/template/avm/eac_latex_base0/sources/build/commons/source_code/java.tex +15 -0
- data/template/avm/eac_latex_base0/sources/build/commons/source_code.tex +21 -0
- data/template/avm/eac_latex_base0/sources/build/commons/utils.tex +6 -0
- metadata +32 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a8da6d4422313395c8b2acba7b34bcd3dc6d7667f706679e88c1d4516d2d2e
|
4
|
+
data.tar.gz: 175a3718c5166c92f61016280d2009e32da2fb3cf142fb06be614c6cbb11f273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 040230dcf515b963e6dc446cacdc4c0b7900a8589256e8153ff2433cb8695e1c1eac756ced2281edcf9e4a62420cb683b2830657e58b3dd631d6afd17e5b02fb
|
7
|
+
data.tar.gz: 60a5fd25c855aca81a9bbffe81e5543007658edcd29179caa120f7569aae607ec471cb713a261473941c7a7e4173090f4062de6e96c7e41f290d1bd9e6d53d03
|
@@ -15,7 +15,7 @@ module Avm
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def target_subpath
|
18
|
-
::Avm::EacLatexBase0::Sources::Build.chapter_filename(
|
18
|
+
::Avm::EacLatexBase0::Sources::Build.chapter_filename( # rubocop:disable Style/StringConcatenation
|
19
19
|
File.basename(File.dirname(subpath))
|
20
20
|
) + '.tex'
|
21
21
|
end
|
@@ -57,14 +57,14 @@ module Avm
|
|
57
57
|
compile_command.execute!.each_line do |line|
|
58
58
|
if line.include?('No file')
|
59
59
|
raise 'Command returned without error, but there is at least one "No file" line in' \
|
60
|
-
|
60
|
+
"log: #{line}"
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
65
|
def compile_command
|
66
66
|
::Avm::EacLatexBase0::Executables.latex.command(*compile_command_args)
|
67
|
-
|
67
|
+
.chdir(source_temp_dir)
|
68
68
|
end
|
69
69
|
|
70
70
|
def compile_command_args
|
@@ -106,7 +106,7 @@ module Avm
|
|
106
106
|
end
|
107
107
|
|
108
108
|
def output_file
|
109
|
-
|
109
|
+
options[:output_file] || project.default_output_file
|
110
110
|
end
|
111
111
|
|
112
112
|
def open_output
|
@@ -0,0 +1,11 @@
|
|
1
|
+
\documentclass[a4paper,twoside,final,12pt,openany]{memoir}
|
2
|
+
\input{commons/all}
|
3
|
+
\setlength{\parindent}{0em}
|
4
|
+
\setlength{\parskip}{1em}
|
5
|
+
\setlrmarginsandblock{1cm}{1cm}{*}
|
6
|
+
\setulmarginsandblock{2cm}{2cm}{*}
|
7
|
+
\checkandfixthelayout
|
8
|
+
|
9
|
+
\newcommand{\chapref}[1] {
|
10
|
+
Cap. \ref{chap:#1} - \nameref{chap:#1}
|
11
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
\usepackage[utf8]{inputenc}
|
2
|
+
\usepackage[portuguese]{babel}
|
3
|
+
\usepackage{listings}
|
4
|
+
\lstset{
|
5
|
+
inputencoding=utf8,
|
6
|
+
extendedchars=true,
|
7
|
+
literate={á}{{\'a}}1 {à}{{\`a}}1 {ã}{{\~a}}1 {â}{{\^a}}1 {é}{{\'e}}1 {ê}{{\^e}}1 {ë}{{\"e}}1 {í}{{\'i}}1 {ç}{{\c{c}}}1 {Ç}{{\c{C}}}1 {õ}{{\~o}}1 {Õ}{{\~O}}1 {ó}{{\'o}}1 {ô}{{\^o}}1 {ú}{{\'u}}1
|
8
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
\lstloadlanguages{Java}
|
2
|
+
\newcommand{\java}[1] {
|
3
|
+
\lstinline[language=Java]{#1}
|
4
|
+
}
|
5
|
+
\newcommand{\javafile}[1] {
|
6
|
+
\begin{minipage}{\linewidth}
|
7
|
+
\lstinputlisting[language=Java,caption=$#1$]{#1}
|
8
|
+
\end{minipage}
|
9
|
+
}
|
10
|
+
\lstnewenvironment{javaenv} {
|
11
|
+
\lstset{language=Java}
|
12
|
+
\minipage\linewidth
|
13
|
+
} {
|
14
|
+
\endminipage
|
15
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
\usepackage[dvipsnames]{xcolor}
|
2
|
+
\usepackage{listings}
|
3
|
+
\usepackage{courier}
|
4
|
+
\usepackage[T1]{fontenc}
|
5
|
+
\usepackage{textcomp}
|
6
|
+
\definecolor{code_background}{rgb}{0.95,0.95,0.95}
|
7
|
+
\lstset{
|
8
|
+
backgroundcolor=\color{code_background},
|
9
|
+
breakatwhitespace=false,
|
10
|
+
breaklines=true,
|
11
|
+
basicstyle=\ttfamily\color{black},
|
12
|
+
commentstyle = \ttfamily\color{gray},
|
13
|
+
keywordstyle=\ttfamily\color{blue},
|
14
|
+
stringstyle=\color{orange},
|
15
|
+
showstringspaces=false,
|
16
|
+
frame=single,
|
17
|
+
basicstyle=\ttfamily\tiny,
|
18
|
+
columns=flexible,
|
19
|
+
upquote=true,
|
20
|
+
}
|
21
|
+
\input{commons/source_code/java}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avm-eac_latex_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm
|
@@ -16,62 +16,68 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.84'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.84.2
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
29
|
+
version: '0.84'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.84.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: avm-eac_webapp_base0
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
39
|
+
version: '0.18'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.18.3
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
39
48
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
49
|
+
version: '0.18'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.18.3
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: eac_ruby_utils
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - "~>"
|
46
58
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
59
|
+
version: '0.121'
|
48
60
|
type: :runtime
|
49
61
|
prerelease: false
|
50
62
|
version_requirements: !ruby/object:Gem::Requirement
|
51
63
|
requirements:
|
52
64
|
- - "~>"
|
53
65
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
66
|
+
version: '0.121'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: eac_ruby_gem_support
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
60
72
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.5.1
|
73
|
+
version: '0.10'
|
65
74
|
type: :development
|
66
75
|
prerelease: false
|
67
76
|
version_requirements: !ruby/object:Gem::Requirement
|
68
77
|
requirements:
|
69
78
|
- - "~>"
|
70
79
|
- !ruby/object:Gem::Version
|
71
|
-
version: '0.
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.5.1
|
80
|
+
version: '0.10'
|
75
81
|
description:
|
76
82
|
email:
|
77
83
|
executables: []
|
@@ -99,6 +105,15 @@ files:
|
|
99
105
|
- lib/avm/eac_latex_base0/sources/runners/build_single.rb
|
100
106
|
- lib/avm/eac_latex_base0/sources/runners/info.rb
|
101
107
|
- lib/avm/eac_latex_base0/version.rb
|
108
|
+
- template/avm/eac_latex_base0/instances/deploy/index.html.template
|
109
|
+
- template/avm/eac_latex_base0/sources/build/commons/all.tex
|
110
|
+
- template/avm/eac_latex_base0/sources/build/commons/ebook.tex
|
111
|
+
- template/avm/eac_latex_base0/sources/build/commons/images.tex
|
112
|
+
- template/avm/eac_latex_base0/sources/build/commons/links.tex
|
113
|
+
- template/avm/eac_latex_base0/sources/build/commons/portuguese.tex
|
114
|
+
- template/avm/eac_latex_base0/sources/build/commons/source_code.tex
|
115
|
+
- template/avm/eac_latex_base0/sources/build/commons/source_code/java.tex
|
116
|
+
- template/avm/eac_latex_base0/sources/build/commons/utils.tex
|
102
117
|
homepage:
|
103
118
|
licenses: []
|
104
119
|
metadata: {}
|
@@ -110,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
125
|
requirements:
|
111
126
|
- - ">="
|
112
127
|
- !ruby/object:Gem::Version
|
113
|
-
version: '
|
128
|
+
version: '2.7'
|
114
129
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
130
|
requirements:
|
116
131
|
- - ">="
|