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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34e62f93b556e317705b0af205dff9f7d1363c8f93150ea743d0e8b48d568e6e
4
- data.tar.gz: eb47b4f66448519f7a9187ca83df7392c8fecb94fc03fe7807499e107e0f834c
3
+ metadata.gz: f1a8da6d4422313395c8b2acba7b34bcd3dc6d7667f706679e88c1d4516d2d2e
4
+ data.tar.gz: 175a3718c5166c92f61016280d2009e32da2fb3cf142fb06be614c6cbb11f273
5
5
  SHA512:
6
- metadata.gz: e2e8c0ed2f0477836c708fc109761a766ec31554cb183e8add6c85e3b80fc706cc6d286d70704c204e39e759510e393d256252b693eba3e63cb46e0c2e082e26
7
- data.tar.gz: 909117f47fa1c4d96b86f0cdec922db918bfbffd3bfc7f62afdad2e88116138405a3c8b13241bbcfa5deee6b64d3cd411ec7611d9aefa6c669f86f13b17fa6e8
6
+ metadata.gz: 040230dcf515b963e6dc446cacdc4c0b7900a8589256e8153ff2433cb8695e1c1eac756ced2281edcf9e4a62420cb683b2830657e58b3dd631d6afd17e5b02fb
7
+ data.tar.gz: 60a5fd25c855aca81a9bbffe81e5543007658edcd29179caa120f7569aae607ec471cb713a261473941c7a7e4173090f4062de6e96c7e41f290d1bd9e6d53d03
@@ -12,7 +12,7 @@ module Avm
12
12
  private
13
13
 
14
14
  %w[latex].each do |program|
15
- define_method(program.underscore + '_uncached') do
15
+ define_method("#{program.underscore}_uncached") do
16
16
  ::EacRubyUtils::Envs.local.executable(program, '--version')
17
17
  end
18
18
  end
@@ -24,7 +24,7 @@ module Avm
24
24
 
25
25
  def copy_project_file(subpath)
26
26
  ::Avm::EacLatexBase0::Sources::Build::File.new(project, subpath)
27
- .build_to_dir(source_temp_dir)
27
+ .build_to_dir(source_temp_dir)
28
28
  end
29
29
 
30
30
  def copy_project_dir(subpath)
@@ -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
- "log: #{line}"
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
- .chdir(source_temp_dir)
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
- (options[:output_file] || project.default_output_file)
109
+ options[:output_file] || project.default_output_file
110
110
  end
111
111
 
112
112
  def open_output
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacLatexBase0
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
@@ -0,0 +1,9 @@
1
+ <html>
2
+ <head>
3
+ <title>%%title%%</title>
4
+ </head>
5
+ <body>
6
+ <h1>%%title%%</h1>
7
+ <a href="%%pdf_path%%">PDF</a>
8
+ </body>
9
+ </html>
@@ -0,0 +1,5 @@
1
+ \input{commons/links}
2
+ \input{commons/portuguese}
3
+ \input{commons/source_code}
4
+ \input{commons/utils}
5
+ \input{commons/images}
@@ -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,11 @@
1
+ \usepackage{graphicx}
2
+ \usepackage[font=small,labelfont=bf]{caption}
3
+
4
+ \newcommand{\inputimage}[2] {
5
+ \begin{minipage}{\linewidth}
6
+ \begin{center}
7
+ \includegraphics{#1}
8
+ \captionof{figure}{#2}
9
+ \end{center}
10
+ \end{minipage}
11
+ }
@@ -0,0 +1,2 @@
1
+ \usepackage{hyperref}
2
+ \hypersetup{colorlinks=true}
@@ -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}
@@ -0,0 +1,6 @@
1
+ \newcommand{\todo}[0] {
2
+ \textcolor{red}{\textbf{TO-DO}}
3
+ }
4
+ \newcommand{\dq}[1] {
5
+ ``#1''
6
+ }
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.1
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: 2023-04-14 00:00:00.000000000 Z
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.67'
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.67'
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.15'
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.15'
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.112'
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.112'
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.5'
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.5'
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: '0'
128
+ version: '2.7'
114
129
  required_rubygems_version: !ruby/object:Gem::Requirement
115
130
  requirements:
116
131
  - - ">="