asciidoctor-latex 1.5.0.12.dev → 1.5.0.13.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/CHANGELOG.adoc +7 -0
- data/README.adoc +12 -1
- data/data/extras.css +1 -0
- data/lib/asciidoctor/latex/converter.rb +7 -14
- data/lib/asciidoctor/latex/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7c33b4b39dc5b806aac50530b427d38ec119e96e
|
|
4
|
+
data.tar.gz: 215fda9235b015ee9e669e52da08ab9ae979dac2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c142cf3cd226fa8d8155cafb43885c3fc0407c6c84ec0a9015ee1c874e975481ccb1460a3312b74b2aca1b217ae8c9c0014c53c2180a07e0cbec4a9e422bd93
|
|
7
|
+
data.tar.gz: ecbe78ceda7b42c84b8ea2ffc867473f44262c5b2ea539211b2b83b0123f815bdf939f028935fdcaebe25de4a00f73d6e4091987f00785cadc95f63ee7f430ea
|
data/CHANGELOG.adoc
CHANGED
|
@@ -22,6 +22,13 @@ for cross-referencing, e.g.,
|
|
|
22
22
|
`[env.equation#hohoho]`, then it is numbered.
|
|
23
23
|
////
|
|
24
24
|
|
|
25
|
+
1.5.0.12.dev:: (1) Make 'latex' the default dialect: no ``-a dialect=blahblah` switch is needed.
|
|
26
|
+
(2) Add file data/print.css for better print output.
|
|
27
|
+
(3) Add documentnation on how to use data/print.css.
|
|
28
|
+
(4)NOTE: solution in previous line is awkward. One should be able to access
|
|
29
|
+
the css file without copying it form data/ (or useing a long file path)
|
|
30
|
+
|
|
31
|
+
|
|
25
32
|
|
|
26
33
|
1.5.0.12.dev:: Fix issue #44 in which the file
|
|
27
34
|
macros.tex is ignored in the latex dialect
|
data/README.adoc
CHANGED
|
@@ -112,16 +112,27 @@ of the output format -- HTML or tex.
|
|
|
112
112
|
|
|
113
113
|
=== Switches
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
.Tex header
|
|
116
|
+
To generate a tex file with a minimal header, do:
|
|
116
117
|
|
|
117
118
|
$ asciidoctor-latex -a header=no foo.adoc
|
|
118
119
|
|
|
120
|
+
.Print style
|
|
121
|
+
An alternate css file, `data/print.css` is provided
|
|
122
|
+
for printing. It features wider margins and a smaller
|
|
123
|
+
type size. Copy it to the root of your document
|
|
124
|
+
folder and use the commeand `asciidoctor-latex -a stylesheet=print.css`
|
|
125
|
+
or more generally `asciidoctor-latex -a stylesheet=path_to/print.css`.
|
|
126
|
+
|
|
127
|
+
|
|
119
128
|
{adlp}'s default form at is `:latexmath`.
|
|
120
129
|
To use `:stem`, put the text `:stem:`
|
|
121
130
|
in your file. To turn the switch
|
|
122
131
|
on and set it to `latexmath`, say
|
|
123
132
|
instead of `stem:latexmth`.
|
|
124
133
|
|
|
134
|
+
|
|
135
|
+
|
|
125
136
|
== Document format
|
|
126
137
|
|
|
127
138
|
Asciidoctor supports two closely-related
|
data/data/extras.css
CHANGED
|
@@ -481,18 +481,15 @@ module Asciidoctor::LaTeX
|
|
|
481
481
|
# asciidoc-manuscript, and asciidoc-latex
|
|
482
482
|
Asciidoctor::Extensions.register do
|
|
483
483
|
|
|
484
|
-
|
|
484
|
+
dialect = document.options['dialect'] || document.attributes['dialect'] || 'latex'
|
|
485
485
|
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
if ['asciidoc', 'manuscript'].include? document.attributes['dialect']
|
|
486
|
+
if ['asciidoc', 'manuscript'].include? dialect
|
|
489
487
|
|
|
490
488
|
preprocessor DollarPreprocessor if document.basebackend? 'tex'
|
|
491
489
|
|
|
492
490
|
end
|
|
493
491
|
|
|
494
|
-
if ['latex', 'manuscript'].include?
|
|
495
|
-
|
|
492
|
+
if ['latex', 'manuscript'].include? dialect
|
|
496
493
|
preprocessor ClickStyleInsert if document.attributes['css_extras'] == 'include'
|
|
497
494
|
preprocessor MacroPreprocessor
|
|
498
495
|
|
|
@@ -505,26 +502,22 @@ module Asciidoctor::LaTeX
|
|
|
505
502
|
|
|
506
503
|
postprocessor InjectHTML unless document.attributes['inject_javascript'] == 'no'
|
|
507
504
|
postprocessor EntToUni if document.basebackend? 'tex' unless document.attributes['unicode'] == 'no'
|
|
508
|
-
end
|
|
509
|
-
|
|
510
|
-
if ['latex'].include? document.attributes['dialect']
|
|
511
505
|
|
|
512
506
|
docinfo_processor CSSDocinfoProcessor
|
|
507
|
+
end
|
|
513
508
|
|
|
509
|
+
if ['latex'].include? dialect
|
|
514
510
|
preprocessor TeXPreprocessor unless document.attributes['preprocess'] == 'no'
|
|
515
|
-
# preprocessor MacroInsert if (File.exist? 'macros.tex' and document.basebackend? 'html' and document.attributes['include_macros'] == 'yes')
|
|
516
511
|
preprocessor MacroInsert if (File.exist? 'macros.tex')
|
|
517
512
|
|
|
518
513
|
inline_macro ChemInlineMacro
|
|
519
|
-
inline_macro GlossInlineMacro
|
|
520
|
-
inline_macro IndexTermInlineMacro
|
|
521
514
|
|
|
522
515
|
postprocessor InjectHTML unless document.attributes['inject_javascript'] == 'no'
|
|
523
516
|
postprocessor Chem if document.basebackend? 'html'
|
|
517
|
+
postprocessor HTMLPostprocessor if document.basebackend? 'html'
|
|
518
|
+
postprocessor TexPostprocessor if document.basebackend? 'tex'
|
|
524
519
|
end
|
|
525
520
|
|
|
526
|
-
postprocessor HTMLPostprocessor if document.basebackend? 'html'
|
|
527
|
-
postprocessor TexPostprocessor if document.basebackend? 'tex'
|
|
528
521
|
end
|
|
529
522
|
|
|
530
523
|
Asciidoctor::Extensions.register :latex do
|
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.13.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-06-
|
|
13
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: asciidoctor
|
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
319
319
|
version: 1.3.1
|
|
320
320
|
requirements: []
|
|
321
321
|
rubyforge_project:
|
|
322
|
-
rubygems_version: 2.
|
|
322
|
+
rubygems_version: 2.6.2
|
|
323
323
|
signing_key:
|
|
324
324
|
specification_version: 4
|
|
325
325
|
summary: Converts AsciiDoc documents to LaTeX, provides LaTeX extensions to Asciidoc
|