asciidoctor-latex 1.5.0.4.dev → 1.5.0.5.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/Rakefile +2 -2
- data/lib/asciidoctor/latex/core_ext/utility.rb +12 -0
- data/lib/asciidoctor/latex/node_processors.rb +21 -7
- data/lib/asciidoctor/latex/version.rb +1 -1
- data/test/examples/html/env.html +18 -18
- data/test/examples/tex/block_outline.tex +18 -18
- data/test/examples/tex/block_preamble.tex +2 -2
- data/test/examples/tex/block_sidebar.tex +5 -3
- data/test/examples/tex/block_table.tex +6 -6
- data/test/examples/tex/block_toc.tex +10 -20
- data/test/examples/tex/document.tex +2 -2
- data/test/examples/tex/env.tex +7 -6
- data/test/examples/tex/env2.tex +8 -8
- data/test/examples/tex/env_joke.tex +3 -3
- data/test/examples/tex/env_plain.tex +2 -2
- data/test/examples/tex/eq.tex +1 -1
- data/test/examples/tex/hypertarget.tex +2 -2
- data/test/examples/tex/inline_anchor.tex +2 -3
- data/test/examples/tex/inline_quoted.tex +4 -4
- data/test/examples/tex/macro_underscore.tex +1 -2
- data/test/examples/tex/section.tex +28 -28
- data/test/examples/tex/sections.tex +12 -12
- data/test/examples/tex/zero.tex +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: 8d4fc9e76501be76318bb76330552809a9762259
|
4
|
+
data.tar.gz: c138214154d878373b4817aa85e53918dea6d9b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0714cbb028d1d543fe8a76bc657587a718bd7b727757edf6d84f88707873969eb3ec237562438de297ce9277b20d37781e7c4aaa7b13b2c83ac3fa70d084672
|
7
|
+
data.tar.gz: 2af02dec287fddbc318d623543072af25404835542f2aa1c626311ab4678ceeebf07b91f0a9e6e049b92a59c490db4cdbe3dfd1f4338b817b30051eb7fb28fbc
|
data/Rakefile
CHANGED
@@ -38,13 +38,13 @@ begin
|
|
38
38
|
task :default => :test
|
39
39
|
|
40
40
|
namespace :generate do
|
41
|
-
|
41
|
+
|
42
42
|
DocTest::GeneratorTask.new(:latex) do |t|
|
43
43
|
t.converter_opts[:backend_name] = :latex
|
44
44
|
t.output_suite = DocTest::Latex::ExamplesSuite.new(examples_path: 'test/examples/tex')
|
45
45
|
t.examples_path.unshift 'test/examples/adoc' # extra input examples
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
DocTest::GeneratorTask.new(:html) do |t|
|
49
49
|
t.converter_opts[:backend_name] = :html
|
50
50
|
t.output_suite = DocTest::HTML::ExamplesSuite.new(examples_path: 'test/examples/html')
|
@@ -66,8 +66,18 @@ module TexUtilities
|
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
+
# normalize the name because it is an id
|
70
|
+
# and so frequently contains underscores
|
69
71
|
def self.hypertarget(name, text)
|
70
|
-
|
72
|
+
if text
|
73
|
+
# text = text.rstrip.chomp
|
74
|
+
end
|
75
|
+
if name
|
76
|
+
"\\hypertarget\{#{name.tex_normalize}\}\{#{text}\}"
|
77
|
+
else
|
78
|
+
"\\hypertarget\{'NO-ID'\}\{#{text}\}"
|
79
|
+
# FIXME: why do we need this branch?
|
80
|
+
end
|
71
81
|
end
|
72
82
|
|
73
83
|
|
@@ -679,7 +689,7 @@ module Asciidoctor
|
|
679
689
|
attr = self.attributes
|
680
690
|
id = attr['id']
|
681
691
|
if id
|
682
|
-
content = "\\hypertarget\{#{id}\}\{#{self.content}\}"
|
692
|
+
content = "\\hypertarget\{#{id}\}\{#{self.content.rstrip}\}"
|
683
693
|
else
|
684
694
|
content = self.content
|
685
695
|
end
|
@@ -719,7 +729,7 @@ module Asciidoctor
|
|
719
729
|
end
|
720
730
|
|
721
731
|
def inline_quoted_process
|
722
|
-
warn "THIS IS: inline_quoted_process: #{self.type}" if $VERBOSE
|
732
|
+
# warn "THIS IS: inline_quoted_process: #{self.type}" if $VERBOSE
|
723
733
|
case self.type
|
724
734
|
when :strong
|
725
735
|
"\\textbf\{#{self.text}\}"
|
@@ -729,7 +739,7 @@ module Asciidoctor
|
|
729
739
|
output = Asciidoctor.convert( self.text, backend: 'html')
|
730
740
|
output
|
731
741
|
when :monospaced
|
732
|
-
"\\
|
742
|
+
"\\texttt\{#{self.text}\}"
|
733
743
|
when :superscript
|
734
744
|
"$\{\}^{#{self.text}}$"
|
735
745
|
when :subscript
|
@@ -753,8 +763,12 @@ module Asciidoctor
|
|
753
763
|
else
|
754
764
|
# warn "This is inline_quoted_process. I don't understand role = #{role}" if $VERBOSE
|
755
765
|
end
|
766
|
+
when :literal
|
767
|
+
"\\texttt\{#{self.text}\}"
|
768
|
+
when :verse
|
769
|
+
"\\texttt\{#{self.text}\}"
|
756
770
|
else
|
757
|
-
"\\unknown\\{#{self.text}\\}"
|
771
|
+
"\\unknown:#{self.type}\\{#{self.text}\\}"
|
758
772
|
end
|
759
773
|
end
|
760
774
|
|
@@ -780,7 +794,7 @@ module Asciidoctor
|
|
780
794
|
when :ref
|
781
795
|
$tex.macro 'label', self.text.gsub(/\[(.*?)\]/, "\\1")
|
782
796
|
when :xref
|
783
|
-
$tex.macro 'hyperlink', refid, reftext
|
797
|
+
$tex.macro 'hyperlink', refid.tex_normalize, reftext
|
784
798
|
else
|
785
799
|
# warn "!!".magenta if $VERBOSE
|
786
800
|
end
|
@@ -831,7 +845,7 @@ module Asciidoctor
|
|
831
845
|
|
832
846
|
module LaTeX
|
833
847
|
# TeXPostProcess cleans up undesired transformations
|
834
|
-
# inside the TeX
|
848
|
+
# inside the TeX environment. Strings
|
835
849
|
# &p;, >, < are mapped back to
|
836
850
|
# &, >, < and \\ is conserved.
|
837
851
|
module TeXPostProcess
|
data/test/examples/html/env.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="openblock theorem">
|
3
3
|
<div class="title">Theorem 1.</div>
|
4
4
|
<div class="content">
|
5
|
-
<div
|
5
|
+
<div class="click_oblique">There exist infinitely many prime numbers.</div>
|
6
6
|
</div>
|
7
7
|
</div>
|
8
8
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<div class="openblock theorem">
|
11
11
|
<div class="title">Theorem</div>
|
12
12
|
<div class="content">
|
13
|
-
<div
|
13
|
+
<div class="click_oblique">There exist infinitely many prime numbers.</div>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
<div class="openblock theorem">
|
19
19
|
<div class="title">Theorem 1: Euclid</div>
|
20
20
|
<div class="content">
|
21
|
-
<div
|
21
|
+
<div class="click_oblique">There exist infinitely many prime numbers.</div>
|
22
22
|
</div>
|
23
23
|
</div>
|
24
24
|
|
@@ -26,16 +26,16 @@
|
|
26
26
|
<div class="openblock theorem">
|
27
27
|
<div class="title">Theorem: Euclid</div>
|
28
28
|
<div class="content">
|
29
|
-
<div
|
29
|
+
<div class="click_oblique">There exist infinitely many prime numbers.</div>
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<!-- .env_equation -->
|
34
34
|
<div class="openblock equation">
|
35
35
|
<div class="content">
|
36
|
-
<table class="
|
37
|
-
<tr
|
38
|
-
<td
|
36
|
+
<table class="equation_table_style">
|
37
|
+
<tr class="equation_row_style">
|
38
|
+
<td class="equation_content_style">\[ a^{p-1} \equiv 1\ \text{mod}\ p \]</td>
|
39
39
|
</tr>
|
40
40
|
</table>
|
41
41
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
<div class="openblock click">
|
46
46
|
<div class="title">Comment</div>
|
47
47
|
<div class="content">
|
48
|
-
<div
|
48
|
+
<div class="click_oblique">It is sometimes useful to "hide" a comment …</div>
|
49
49
|
</div>
|
50
50
|
</div>
|
51
51
|
|
@@ -75,9 +75,9 @@
|
|
75
75
|
<!-- .env_equation_no_number -->
|
76
76
|
<div class="openblock equation">
|
77
77
|
<div class="content">
|
78
|
-
<table class="
|
79
|
-
<tr
|
80
|
-
<td
|
78
|
+
<table class="equation_table_style">
|
79
|
+
<tr class="equation_row_style">
|
80
|
+
<td class="equation_content_style">\[ a^{p-1} \equiv 1\ \text{mod}\ p \]</td>
|
81
81
|
</tr>
|
82
82
|
</table>
|
83
83
|
</div>
|
@@ -86,9 +86,9 @@
|
|
86
86
|
<!-- .env_equationalign -->
|
87
87
|
<div class="openblock equationalign">
|
88
88
|
<div class="content">
|
89
|
-
<table class="
|
90
|
-
<tr
|
91
|
-
<td
|
89
|
+
<table class="equation_table_style">
|
90
|
+
<tr class="equation_row_style">
|
91
|
+
<td class="equation_content_style">\[\begin{split} a &= b + c \\ c &= d + e \\ a &= b + d + e \end{split}\]</td>
|
92
92
|
</tr>
|
93
93
|
</table>
|
94
94
|
</div>
|
@@ -137,10 +137,10 @@
|
|
137
137
|
</div>
|
138
138
|
<div class="openblock chem" id="reaction-smelt">
|
139
139
|
<div class="content">
|
140
|
-
<table class="
|
141
|
-
<tr class="
|
142
|
-
<td
|
143
|
-
<td
|
140
|
+
<table class="equation_table_style">
|
141
|
+
<tr class="equation_row_style">
|
142
|
+
<td class="equation_content_style">\[\ce{2Fe2O3 + 3C → 4Fe + 3CO2}\]</td>
|
143
|
+
<td class="equation_number_style">(1)</td>
|
144
144
|
</tr>
|
145
145
|
</table>
|
146
146
|
</div>
|
@@ -1,25 +1,25 @@
|
|
1
1
|
%== .basic ==%
|
2
|
-
\hypertarget{
|
3
|
-
\hypertarget{
|
4
|
-
\hypertarget{
|
5
|
-
\hypertarget{
|
6
|
-
\hypertarget{
|
2
|
+
\hypertarget{x-section-1}{\section*{Section 1}}
|
3
|
+
\hypertarget{x-section-2}{\section*{Section 2}}
|
4
|
+
\hypertarget{x-section-2.1}{\subsection*{Section 2.1}}
|
5
|
+
\hypertarget{x-section-2.1.1}{\subsubsection*{Section 2.1.1}}
|
6
|
+
\hypertarget{x-section-3}{\section*{Section 3}}
|
7
7
|
|
8
8
|
%== .toclevels ==%
|
9
|
-
\hypertarget{
|
10
|
-
\hypertarget{
|
11
|
-
\hypertarget{
|
12
|
-
\hypertarget{
|
9
|
+
\hypertarget{x-section-1}{\section*{Section 1}}
|
10
|
+
\hypertarget{x-section-1.1}{\subsection*{Section 1.1}}
|
11
|
+
\hypertarget{x-section-1.1.1}{\subsubsection*{Section 1.1.1}}
|
12
|
+
\hypertarget{x-section-2}{\section*{Section 2}}
|
13
13
|
|
14
14
|
%== .numbered ==%
|
15
|
-
\hypertarget{
|
16
|
-
\hypertarget{
|
17
|
-
\hypertarget{
|
18
|
-
\hypertarget{
|
19
|
-
\hypertarget{
|
15
|
+
\hypertarget{x-section-1}{\section{Section 1}}
|
16
|
+
\hypertarget{x-unnumbered-section}{\section*{Unnumbered Section}}
|
17
|
+
\hypertarget{x-section-2}{\section{Section 2}}
|
18
|
+
\hypertarget{x-section-2.1}{\subsection{Section 2.1}}
|
19
|
+
\hypertarget{x-section-3}{\section{Section 3}}
|
20
20
|
|
21
21
|
%== .sectnumlevels ==%
|
22
|
-
\hypertarget{
|
23
|
-
\hypertarget{
|
24
|
-
\hypertarget{
|
25
|
-
\hypertarget{
|
22
|
+
\hypertarget{x-section-1}{\section{Section 1}}
|
23
|
+
\hypertarget{x-section-1.1}{\subsection{Section 1.1}}
|
24
|
+
\hypertarget{x-section-1.1.1}{\subsubsection{Section 1.1.1}}
|
25
|
+
\hypertarget{x-section-2}{\section{Section 2}}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
This journey begins on a bleary Monday morning.
|
4
4
|
Our intrepid team is in desperate need of double shot mochas, but the milk expired eight days ago.
|
5
5
|
\end{preamble}
|
6
|
-
\hypertarget{
|
6
|
+
\hypertarget{x-cavern-glow}{\section*{Cavern Glow}}
|
7
7
|
The river rages through the cavern, rattling its content.
|
8
8
|
|
9
9
|
%== .toc_placement_preamble ==%
|
@@ -11,5 +11,5 @@ The river rages through the cavern, rattling its content.
|
|
11
11
|
This journey begins on a bleary Monday morning.
|
12
12
|
Our intrepid team is in desperate need of double shot mochas, but the milk expired eight days ago.
|
13
13
|
\end{preamble}
|
14
|
-
\hypertarget{
|
14
|
+
\hypertarget{x-cavern-glow}{\section*{Cavern Glow}}
|
15
15
|
The river rages through the cavern, rattling its content.
|
@@ -7,7 +7,10 @@ for producing professional documents like DocBook and LaTeX.
|
|
7
7
|
|
8
8
|
%== .with_title ==%
|
9
9
|
\begin{sidebar}
|
10
|
-
\bf
|
10
|
+
\begin{bf}
|
11
|
+
AsciiDoc history
|
12
|
+
\end{bf}
|
13
|
+
\\AsciiDoc was first released in Nov 2002 by Stuart Rackham.
|
11
14
|
It was designed from the start to be a shorthand syntax
|
12
15
|
for producing professional documents like DocBook and LaTeX.
|
13
16
|
\end{sidebar}
|
@@ -16,6 +19,5 @@ for producing professional documents like DocBook and LaTeX.
|
|
16
19
|
\begin{sidebar}
|
17
20
|
\hypertarget{origin}{AsciiDoc was first released in Nov 2002 by Stuart Rackham.
|
18
21
|
It was designed from the start to be a shorthand syntax
|
19
|
-
for producing professional documents like DocBook and LaTeX.
|
20
|
-
}
|
22
|
+
for producing professional documents like DocBook and LaTeX.}
|
21
23
|
\end{sidebar}
|
@@ -122,7 +122,7 @@ Cell in column 1, row 1 & Cell in column 2, row 1 & Cell in column 3, row 1 \\
|
|
122
122
|
\begin{center}
|
123
123
|
\begin{tabular}{|c|c|c|c|c|c|c|}
|
124
124
|
\hline
|
125
|
-
\ & \emph{Emphasized text} & Styled like a header & \
|
125
|
+
\ & \emph{Emphasized text} & Styled like a header & \texttt{Literal block} & \texttt{Monospaced text} & \textbf{Strong text} & \texttt{Verse block} \\
|
126
126
|
\hline
|
127
127
|
\end{tabular}
|
128
128
|
\end{center}
|
@@ -174,15 +174,15 @@ This content spans three columns (3{plus}) and is centered horizontally ({caret}
|
|
174
174
|
\begin{center}
|
175
175
|
\begin{tabular}{|c|c|}
|
176
176
|
\hline
|
177
|
-
{
|
178
|
-
} & {
|
177
|
+
\texttt{This content is duplicated across two columns.
|
178
|
+
} & \texttt{This content is duplicated across two columns.
|
179
179
|
} \\
|
180
180
|
\textbf{This cell spans 3 rows. The content is centered horizontally, aligned to the bottom of the cell, and strong.} & \emph{This content is emphasized.} \\
|
181
|
-
\
|
182
|
-
\
|
181
|
+
\texttt{This content is aligned to the top of the cell and literal.} \\
|
182
|
+
\texttt{This cell contains a verse
|
183
183
|
that may one day expound on the
|
184
184
|
wonders of tables in an
|
185
|
-
epic sonnet
|
185
|
+
epic sonnet.} \\
|
186
186
|
\hline
|
187
187
|
\end{tabular}
|
188
188
|
\end{center}
|
@@ -1,27 +1,17 @@
|
|
1
1
|
%== .basic ==%
|
2
|
-
\section*{Introduction}
|
3
|
-
\hypertarget{
|
4
|
-
\
|
5
|
-
\hypertarget{_the_ravages_of_writing}{\subsection*{A Recipe for Potion}}
|
6
|
-
\subsection*{A Recipe for Potion}
|
7
|
-
\hypertarget{_a_recipe_for_potion}{}
|
2
|
+
\hypertarget{x-introduction}{\section*{Introduction}}
|
3
|
+
\hypertarget{x-the-ravages-of-writing}{\section*{The Ravages of Writing}}
|
4
|
+
\hypertarget{x-a-recipe-for-potion}{\subsection*{A Recipe for Potion}}
|
8
5
|
|
9
6
|
%== .with_title ==%
|
10
|
-
\section*{Introduction}
|
11
|
-
\hypertarget{
|
12
|
-
\section*{The Ravages of Writing}
|
13
|
-
\hypertarget{_the_ravages_of_writing}{}
|
7
|
+
\hypertarget{x-introduction}{\section*{Introduction}}
|
8
|
+
\hypertarget{x-the-ravages-of-writing}{\section*{The Ravages of Writing}}
|
14
9
|
|
15
10
|
%== .with_levels ==%
|
16
|
-
\section*{Introduction}
|
17
|
-
\hypertarget{
|
18
|
-
\
|
19
|
-
\hypertarget{_the_ravages_of_writing}{\subsection*{A Recipe for Potion}}
|
20
|
-
\subsection*{A Recipe for Potion}
|
21
|
-
\hypertarget{_a_recipe_for_potion}{}
|
11
|
+
\hypertarget{x-introduction}{\section*{Introduction}}
|
12
|
+
\hypertarget{x-the-ravages-of-writing}{\section*{The Ravages of Writing}}
|
13
|
+
\hypertarget{x-a-recipe-for-potion}{\subsection*{A Recipe for Potion}}
|
22
14
|
|
23
15
|
%== .with_id_and_role ==%
|
24
|
-
\section*{Introduction}
|
25
|
-
\hypertarget{
|
26
|
-
\section*{The Ravages of Writing}
|
27
|
-
\hypertarget{_the_ravages_of_writing}{}
|
16
|
+
\hypertarget{x-introduction}{\section*{Introduction}}
|
17
|
+
\hypertarget{x-the-ravages-of-writing}{\section*{The Ravages of Writing}}
|
@@ -19,7 +19,7 @@ A bold statement.\footnote{Opinions are my own.}
|
|
19
19
|
Another outrageous statement.\footnote{Opinions are my own.}
|
20
20
|
|
21
21
|
%== .toc ==%
|
22
|
-
\hypertarget{
|
22
|
+
\hypertarget{x-cavern-glow}{\section*{Cavern Glow}}
|
23
23
|
|
24
24
|
%== .toc_title ==%
|
25
|
-
\hypertarget{
|
25
|
+
\hypertarget{x-cavern-glow}{\section*{Cavern Glow}}
|
data/test/examples/tex/env.tex
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
%== .env ==%
|
2
2
|
\begin{theorem}
|
3
|
-
|
3
|
+
The equation $a^2 + b^2 = c^2$
|
4
4
|
has infinitely many non-proportional
|
5
|
-
integer solutions.
|
5
|
+
integer solutions.
|
6
6
|
\end{theorem}
|
7
7
|
|
8
8
|
%== .env_display ==%
|
9
9
|
\begin{theorem}
|
10
|
-
\
|
10
|
+
\[
|
11
11
|
e^{2\pi\sqrt{-1}} = 1
|
12
|
-
\]
|
12
|
+
\]
|
13
13
|
\end{theorem}
|
14
14
|
|
15
15
|
%== .env_display_with_title ==%
|
16
16
|
\begin{theorem}
|
17
|
-
{\rm (Euler) }
|
17
|
+
{\rm (Euler) }
|
18
|
+
\[
|
18
19
|
e^{2\pi\sqrt{-1}} = 1
|
19
|
-
\]
|
20
|
+
\]
|
20
21
|
\end{theorem}
|
data/test/examples/tex/env2.tex
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
%== .env ==%
|
2
2
|
\begin{joke}
|
3
|
-
|
3
|
+
An engineer, a mathematician, and a philosopher met
|
4
4
|
at a bar for a drink. After a few beers, talk
|
5
5
|
turned to the question of how best to understand
|
6
|
-
the world … (to be continued)
|
6
|
+
the world … (to be continued)
|
7
7
|
\end{joke}
|
8
8
|
|
9
9
|
%== .auto-numbered ==%
|
10
10
|
\begin{objection}
|
11
|
-
|
11
|
+
Your honor, my client could not have committed the
|
12
12
|
crime of which he is accused because he was
|
13
13
|
confined to the state penitentary at the time
|
14
|
-
that it occurred. If it please the court, …
|
14
|
+
that it occurred. If it please the court, …
|
15
15
|
\end{objection}
|
16
16
|
\begin{objection}
|
17
|
-
{\rm (Inadmissible testimony) }
|
17
|
+
{\rm (Inadmissible testimony) }Your honor, that testimony cannot be
|
18
18
|
heard in this courtroom because it
|
19
19
|
was obtained under duress and without
|
20
|
-
informing my client of his rights.
|
20
|
+
informing my client of his rights.
|
21
21
|
\end{objection}
|
22
22
|
\begin{objection}
|
23
|
-
{\rm (Improper procedure) }
|
23
|
+
{\rm (Improper procedure) }Your honor, the physical evidence
|
24
24
|
was not secured and was handled sloppily.
|
25
25
|
We cannot be sure tha the items which
|
26
26
|
the prosecution wishes to present here
|
27
27
|
have any association with my client
|
28
|
-
whatsoever.
|
28
|
+
whatsoever.
|
29
29
|
\end{objection}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
%== .joke ==%
|
2
2
|
\begin{joke}
|
3
|
-
|
4
|
-
and a doctor …
|
3
|
+
Three men, a mathematician, a lawyer,
|
4
|
+
and a doctor …
|
5
5
|
\end{joke}
|
6
6
|
\begin{joke}
|
7
|
-
\rm
|
7
|
+
{\rm Three men, a mathematician, a lawyer,
|
8
8
|
and a doctor …}
|
9
9
|
\end{joke}
|
data/test/examples/tex/eq.tex
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
%== .sections ==%
|
2
|
-
\hypertarget{
|
2
|
+
\hypertarget{x-section-aa}{\section*{Section AA}}
|
3
3
|
But I must explain to you how all this mistaken
|
4
4
|
idea of denouncing pleasure and praising pain
|
5
5
|
was born and I will give you a complete account
|
@@ -22,4 +22,4 @@ to find fault with a man who chooses to
|
|
22
22
|
enjoy a pleasure that has no
|
23
23
|
annoying consequences, or one who avoids
|
24
24
|
a pain that produces no resultant pleasure?
|
25
|
-
I refer you to \hyperlink{
|
25
|
+
I refer you to \hyperlink{x-section-aa}{Section AA}.
|
@@ -17,9 +17,8 @@ The section \hyperlink{page-break}{} describes how to add a page break.
|
|
17
17
|
The section \hyperlink{page-break}{} describes how to add a page break.
|
18
18
|
|
19
19
|
%== .xref_resolved_text ==%
|
20
|
-
Refer to \hyperlink{
|
21
|
-
\section*{Section A}
|
22
|
-
\hypertarget{_section_a}{}
|
20
|
+
Refer to \hyperlink{x-section-a}{Section A}.
|
21
|
+
\hypertarget{x-section-a}{\section*{Section A}}
|
23
22
|
|
24
23
|
%== .bibref ==%
|
25
24
|
Andy Hunt & Dave Thomas. The Pragmatic Programmer
|
@@ -13,10 +13,10 @@
|
|
13
13
|
\textbf{chunky bacon}
|
14
14
|
|
15
15
|
%== .monospaced ==%
|
16
|
-
{
|
16
|
+
\texttt{hello world!}
|
17
17
|
|
18
18
|
%== .monospaced_with_role ==%
|
19
|
-
{
|
19
|
+
\texttt{hello world!}
|
20
20
|
|
21
21
|
%== .superscript ==%
|
22
22
|
${}^{super}$chunky bacon
|
@@ -46,7 +46,7 @@ ${}_{sub}$chunky bacon
|
|
46
46
|
`chunky bacon'
|
47
47
|
|
48
48
|
%== .latexmath ==%
|
49
|
-
C = \alpha + \beta Y^{\gamma} + \epsilon
|
49
|
+
$C = \alpha + \beta Y^{\gamma} + \epsilon$
|
50
50
|
|
51
51
|
%== .latexmath2 ==%
|
52
52
|
$C = \alpha + \beta Y^{\gamma} + \epsilon$
|
@@ -55,7 +55,7 @@ $C = \alpha + \beta Y^{\gamma} + \epsilon$
|
|
55
55
|
\emph{chunky bacon}
|
56
56
|
|
57
57
|
%== .mixed_monospace_bold_italic ==%
|
58
|
-
{\
|
58
|
+
\texttt{\textbf{\emph{monospace bold italic phrase}}} and le\texttt{\textbf{\emph{tt}}}ers
|
59
59
|
|
60
60
|
%== .asciimath ==%
|
61
61
|
<div class="paragraph">
|
@@ -1,6 +1,5 @@
|
|
1
1
|
%== .macro_underscore ==%
|
2
|
-
\subsection*{Underscore use bug}
|
3
|
-
\hypertarget{_underscore_use_bug}{\begin{quotation}}
|
2
|
+
\hypertarget{x-underscore-use-bug}{\subsection*{Underscore use bug}}
|
4
3
|
\begin{quotation}
|
5
4
|
This is a quote which uses a MACRO_NAME to trigger a bug
|
6
5
|
\end{quotation}
|
@@ -1,51 +1,51 @@
|
|
1
1
|
%== .level1 ==%
|
2
|
-
\hypertarget{
|
2
|
+
\hypertarget{x-section-level-1}{\section*{Section Level 1}}
|
3
3
|
|
4
4
|
%== .level2 ==%
|
5
|
-
\hypertarget{
|
5
|
+
\hypertarget{x-section-level-2}{\subsection*{Section Level 2}}
|
6
6
|
|
7
7
|
%== .level3 ==%
|
8
|
-
\hypertarget{
|
8
|
+
\hypertarget{x-section-level-3}{\subsubsection*{Section Level 3}}
|
9
9
|
|
10
10
|
%== .level4 ==%
|
11
|
-
\hypertarget{
|
11
|
+
\hypertarget{x-section-level-4}{\paragraph*{Section Level 4}}
|
12
12
|
|
13
13
|
%== .level5 ==%
|
14
|
-
\hypertarget{
|
14
|
+
\hypertarget{x-section-level-5}{\*{Section Level 5}}
|
15
15
|
|
16
16
|
%== .max_nesting ==%
|
17
|
-
\hypertarget{
|
18
|
-
\hypertarget{
|
19
|
-
\hypertarget{
|
20
|
-
\hypertarget{
|
21
|
-
\hypertarget{
|
22
|
-
\hypertarget{
|
17
|
+
\hypertarget{x-section-level-1}{\section*{Section Level 1}}
|
18
|
+
\hypertarget{x-section-level-2}{\subsection*{Section Level 2}}
|
19
|
+
\hypertarget{x-section-level-3}{\subsubsection*{Section Level 3}}
|
20
|
+
\hypertarget{x-section-level-4}{\paragraph*{Section Level 4}}
|
21
|
+
\hypertarget{x-section-level-5}{\*{Section Level 5}}
|
22
|
+
\hypertarget{x-section-level-2}{\subsection*{Section Level 2}}
|
23
23
|
|
24
24
|
%== .with_custom_id ==%
|
25
|
-
\hypertarget{
|
25
|
+
\hypertarget{x-section-title}{\section*{Section Title}}
|
26
26
|
|
27
27
|
%== .with_roles ==%
|
28
|
-
\hypertarget{
|
28
|
+
\hypertarget{x-section-title}{\section*{Section Title}}
|
29
29
|
|
30
30
|
%== .sectanchors ==%
|
31
|
-
\hypertarget{
|
31
|
+
\hypertarget{x-title-with-anchor}{\section*{Title with anchor}}
|
32
32
|
|
33
33
|
%== .sectlinks ==%
|
34
|
-
\hypertarget{
|
34
|
+
\hypertarget{x-linked-title}{\section*{Linked title}}
|
35
35
|
|
36
36
|
%== .numbered ==%
|
37
|
-
\hypertarget{
|
38
|
-
\hypertarget{
|
39
|
-
\hypertarget{
|
40
|
-
\hypertarget{
|
41
|
-
\hypertarget{
|
42
|
-
\hypertarget{
|
43
|
-
\hypertarget{
|
37
|
+
\hypertarget{x-introduction-to-asciidoctor}{\section{Introduction to Asciidoctor}}
|
38
|
+
\hypertarget{x-quick-starts}{\section{Quick Starts}}
|
39
|
+
\hypertarget{x-usage}{\subsection{Usage}}
|
40
|
+
\hypertarget{x-using-the-command-line-interface}{\subsubsection{Using the Command Line Interface}}
|
41
|
+
\hypertarget{x-processing-your-content}{\paragraph{Processing Your Content}}
|
42
|
+
\hypertarget{x-syntax}{\subsection{Syntax}}
|
43
|
+
\hypertarget{x-terms-and-concepts}{\section{Terms and Concepts}}
|
44
44
|
|
45
45
|
%== .numbered_sectnumlevels_1 ==%
|
46
|
-
\hypertarget{
|
47
|
-
\hypertarget{
|
48
|
-
\hypertarget{
|
49
|
-
\hypertarget{
|
50
|
-
\hypertarget{
|
51
|
-
\hypertarget{
|
46
|
+
\hypertarget{x-introduction-to-asciidoctor}{\section{Introduction to Asciidoctor}}
|
47
|
+
\hypertarget{x-quick-starts}{\section{Quick Starts}}
|
48
|
+
\hypertarget{x-usage}{\subsection{Usage}}
|
49
|
+
\hypertarget{x-using-the-command-line-interface}{\subsubsection{Using the Command Line Interface}}
|
50
|
+
\hypertarget{x-syntax}{\subsection{Syntax}}
|
51
|
+
\hypertarget{x-terms-and-concepts}{\section{Terms and Concepts}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
%== .sections ==%
|
2
|
-
\hypertarget{
|
3
|
-
\hypertarget{
|
4
|
-
\hypertarget{
|
5
|
-
\hypertarget{
|
6
|
-
\hypertarget{
|
7
|
-
\hypertarget{
|
8
|
-
\hypertarget{
|
9
|
-
\hypertarget{
|
10
|
-
\hypertarget{
|
11
|
-
\hypertarget{
|
12
|
-
\hypertarget{
|
13
|
-
\hypertarget{
|
2
|
+
\hypertarget{x-section}{\section*{Section}}
|
3
|
+
\hypertarget{x-going-down-farther — subsection}{\subsection*{Going down farther — subsection}}
|
4
|
+
\hypertarget{x-and-farther-still-…}{\subsubsection*{And farther still …}}
|
5
|
+
\hypertarget{x-yikes!-we-have-hit-bottom!!}{\paragraph*{Yikes! We have hit bottom!!}}
|
6
|
+
\hypertarget{x-section}{\section{Section}}
|
7
|
+
\hypertarget{x-going-down-farther — subsection}{\subsection{Going down farther — subsection}}
|
8
|
+
\hypertarget{x-and-farther-still-…}{\subsubsection{And farther still …}}
|
9
|
+
\hypertarget{x-yikes!-we-have-hit-bottom!!}{\paragraph{Yikes! We have hit bottom!!}}
|
10
|
+
\hypertarget{x-section}{\section*{Section}}
|
11
|
+
\hypertarget{x-going-down-farther — subsection}{\subsection*{Going down farther — subsection}}
|
12
|
+
\hypertarget{x-and-farther-still-…}{\subsubsection*{And farther still …}}
|
13
|
+
\hypertarget{x-yikes!-we-have-hit-bottom!!}{\paragraph*{Yikes! We have hit bottom!!}}
|
data/test/examples/tex/zero.tex
CHANGED
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.5.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: 2015-07-
|
13
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: asciidoctor
|