asciidoctor-latex 1.5.0.8b.dev → 1.5.0.9.dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +17 -1
- data/lib/asciidoctor/latex/converter.rb +40 -16
- data/lib/asciidoctor/latex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4f54ad1364ee8f9fdae042829d8b92dfdb61eb8c
|
|
4
|
+
data.tar.gz: 5da0bb1f53db9fbef476f533c56fe7bad09ccec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 91a5b3d9c3a331f5f1db186f89aa60d91f7e591637507c90373a90d0da6701237dd648f259b2e48c8c48d1a2d048524a43cfc8015e64dee8117f6953a64bf4bc
|
|
7
|
+
data.tar.gz: 877c99c880818a3e04918bf03e4f2dca87e2e19164e600602a02700ca44124476483f964904b43d444a13f80daafde838df268eae5cdd00e245ba90e5eaf37ba
|
data/README.adoc
CHANGED
|
@@ -52,10 +52,26 @@ Asciidoctor-LaTeX is developed by James Carlson, Jakub Jirutka, and Dan Allen.
|
|
|
52
52
|
|
|
53
53
|
=== From Rubygems
|
|
54
54
|
|
|
55
|
-
The development release, currenty 1.5.0.
|
|
55
|
+
The development release, currenty 1.5.0.9.dev, is at
|
|
56
56
|
https://rubygems.org/gems/asciidoctor-latex[RubyGems.org]
|
|
57
57
|
Beta alert!
|
|
58
58
|
|
|
59
|
+
NOTE: Version 1.5.0.7 is "stable". Version 1.5.0.9 introduces
|
|
60
|
+
new syntax with switches for three 'dialects' See below.
|
|
61
|
+
|
|
62
|
+
# Invoke asciidoctor-latex by
|
|
63
|
+
#
|
|
64
|
+
# asciidoctor-latex foo.adoc
|
|
65
|
+
# asciidoctor-latex -a dialect=manuscript foo.adoc
|
|
66
|
+
# asciidoctor-latex -a dialect=latex foo.adoc
|
|
67
|
+
#
|
|
68
|
+
# These are source file options for dialects of asciidoc:
|
|
69
|
+
#
|
|
70
|
+
# asciidoc
|
|
71
|
+
# asciidoc-manuscript
|
|
72
|
+
# asciidoc-latex
|
|
73
|
+
#
|
|
74
|
+
|
|
59
75
|
=== From GitHub
|
|
60
76
|
|
|
61
77
|
If you would like to install a development version from the repository, use:
|
|
@@ -469,27 +469,51 @@ module Asciidoctor::LaTeX
|
|
|
469
469
|
|
|
470
470
|
register_for 'latex'
|
|
471
471
|
|
|
472
|
-
|
|
472
|
+
# Note: invoke asciidoctor-latex by
|
|
473
|
+
#
|
|
474
|
+
# asciidoctor-latex foo.adoc
|
|
475
|
+
# asciidoctor-latex -a dialect=manuscript foo.adoc
|
|
476
|
+
# asciidoctor-latex -a dialect=latex foo.adoc
|
|
477
|
+
#
|
|
478
|
+
# These are source file options: for plain asciidoc,
|
|
479
|
+
# asciidoc-manuscript, and asciidoc-latex
|
|
473
480
|
Asciidoctor::Extensions.register do
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
481
|
+
|
|
482
|
+
# puts "options: #{document.options}"
|
|
483
|
+
|
|
484
|
+
if ['latex', 'manuscript'].include? document.attributes['dialect']
|
|
485
|
+
preprocessor ClickStyleInsert if document.attributes['css_extras'] == 'include'
|
|
486
|
+
preprocessor MacroPreprocessor
|
|
487
|
+
|
|
488
|
+
block EnvironmentBlock
|
|
489
|
+
block EnvironmentBlock2
|
|
490
|
+
block ClickBlock
|
|
491
|
+
|
|
492
|
+
inline_macro GlossInlineMacro
|
|
493
|
+
inline_macro IndexTermInlineMacro
|
|
494
|
+
|
|
495
|
+
postprocessor InjectHTML unless document.attributes['inject_javascript'] == 'no'
|
|
496
|
+
postprocessor EntToUni if document.basebackend? 'tex' unless document.attributes['unicode'] == 'no'
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
if ['latex'].include? document.attributes['dialect']
|
|
500
|
+
docinfo_processor CSSDocinfoProcessor
|
|
501
|
+
|
|
502
|
+
preprocessor TeXPreprocessor unless document.attributes['preprocess'] == 'no'
|
|
503
|
+
preprocessor MacroInsert if (File.exist? 'macros.tex' and document.basebackend? 'html' and document.attributes['include_macros'] == 'yes')
|
|
504
|
+
|
|
505
|
+
inline_macro ChemInlineMacro
|
|
506
|
+
inline_macro GlossInlineMacro
|
|
507
|
+
inline_macro IndexTermInlineMacro
|
|
508
|
+
|
|
509
|
+
postprocessor InjectHTML unless document.attributes['inject_javascript'] == 'no'
|
|
510
|
+
postprocessor Chem if document.basebackend? 'html'
|
|
511
|
+
end
|
|
512
|
+
|
|
488
513
|
postprocessor HTMLPostprocessor if document.basebackend? 'html'
|
|
489
514
|
postprocessor TexPostprocessor if document.basebackend? 'tex'
|
|
490
515
|
end
|
|
491
516
|
|
|
492
|
-
|
|
493
517
|
Asciidoctor::Extensions.register :latex do
|
|
494
518
|
# EnvironmentBlock
|
|
495
519
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asciidoctor-latex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.0.
|
|
4
|
+
version: 1.5.0.9.dev
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Carlson
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-05-
|
|
13
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: asciidoctor
|