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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db96834040ac3bd9acb4826824a72c1ee0cafeda
4
- data.tar.gz: 93b633ccf454a98f6845a890468b05d25f143ddc
3
+ metadata.gz: 4f54ad1364ee8f9fdae042829d8b92dfdb61eb8c
4
+ data.tar.gz: 5da0bb1f53db9fbef476f533c56fe7bad09ccec6
5
5
  SHA512:
6
- metadata.gz: 27e77b54bf3071cc41423b89f312f4dfd6d72ee3fb6588212492883b3abe72edd6bf08f10c17ca366936fbc6508aafabcbdcfbdc727b14f984a347aeb44ef0c5
7
- data.tar.gz: 636c51b8a2f5f664d2d283fc507e31d9af704863152f595faca31e80debd3f27bc7b01fa5cb2b1ae7cf3fe201692f48f989dbe41a54f60fa875c540e0d5c3300
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.3.dev, is at
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
- docinfo_processor CSSDocinfoProcessor
475
- preprocessor TeXPreprocessor unless document.attributes['preprocess'] == 'no'
476
- preprocessor MacroPreprocessor
477
- preprocessor MacroInsert if (File.exist? 'macros.tex' and document.basebackend? 'html' and document.attributes['include_macros'] == 'yes')
478
- block EnvironmentBlock
479
- block EnvironmentBlock2
480
- block ClickBlock
481
- inline_macro ChemInlineMacro
482
- inline_macro GlossInlineMacro
483
- inline_macro IndexTermInlineMacro
484
- preprocessor ClickStyleInsert if document.attributes['css_extras'] == 'include'
485
- postprocessor InjectHTML unless document.attributes['inject_javascript'] == 'no'
486
- postprocessor EntToUni if document.basebackend? 'tex' unless document.attributes['unicode'] == 'no'
487
- postprocessor Chem if document.basebackend? 'html'
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
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module LaTeX
3
- VERSION = '1.5.0.8b.dev'
3
+ VERSION = '1.5.0.9.dev'
4
4
  end
5
5
  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.8b.dev
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-24 00:00:00.000000000 Z
13
+ date: 2016-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: asciidoctor