asciidoctor-latex 1.5.0.4.dev → 1.5.0.5.dev

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
  SHA1:
3
- metadata.gz: d51781787fb4ce93cafe708a12a80d3a26db7b86
4
- data.tar.gz: 0f0b9a48470782cfbb05fc421207a5d79b8eaa48
3
+ metadata.gz: 8d4fc9e76501be76318bb76330552809a9762259
4
+ data.tar.gz: c138214154d878373b4817aa85e53918dea6d9b2
5
5
  SHA512:
6
- metadata.gz: 0ad9f78f602230774a2934a2d00bc3a2b3eb350e14a8489c9e1e52fcfc7866585c61b8aeb9331f88a81893fc8a7ee8967c7c853b7da0455b771834f557567193
7
- data.tar.gz: 111b1c88a8c0a4102eed34d7a61ad9d2fd26517c0223e61bc5f1213bdba52b41417194da7c037abc20c679e6ad36e10a5be63beb1ee166cd64f9f47f3d032c01
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
- =begin
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
- =end
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')
@@ -52,4 +52,16 @@ class String
52
52
  end
53
53
 
54
54
 
55
+ # map '_' to '-' and prefix by 'x' if the
56
+ # leading character is '-'
57
+ def tex_normalize
58
+ str = self.gsub('_', '-')
59
+ if str[0] == '-'
60
+ 'x'+str
61
+ else
62
+ str
63
+ end
64
+ end
65
+
66
+
55
67
  end
@@ -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
- "\\hypertarget\{#{name}\}\{#{text}\}"
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
- "\\textt\{#{self.text}\}"
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 enveronment. Strings
848
+ # inside the TeX environment. Strings
835
849
  # &ampp;, >, < are mapped back to
836
850
  # &, >, < and \\ is conserved.
837
851
  module TeXPostProcess
@@ -1,5 +1,5 @@
1
1
  module Asciidoctor
2
2
  module LaTeX
3
- VERSION = '1.5.0.4.dev'
3
+ VERSION = '1.5.0.5.dev'
4
4
  end
5
5
  end
@@ -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 style="font-size: 1.05em; font-style: oblique; line-height: 1.5em; margin-bottom: 1.5em;">There exist infinitely many prime numbers.</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 style="font-size: 1.05em; font-style: oblique; line-height: 1.5em; margin-bottom: 1.5em;">There exist infinitely many prime numbers.</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 style="font-size: 1.05em; font-style: oblique; line-height: 1.5em; margin-bottom: 1.5em;">There exist infinitely many prime numbers.</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 style="font-size: 1.05em; font-style: oblique; line-height: 1.5em; margin-bottom: 1.5em;">There exist infinitely many prime numbers.</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="zero" style="border: 0; border-collapse: collapse; width: 100%;">
37
- <tr style="border: 0; border-collapse: collapse; font-size: 12pt;">
38
- <td style="width: 100%;">\[ a^{p-1} \equiv 1\ \text{mod}\ p \]</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 style="font-size: 1.05em; font-style: oblique; line-height: 1.5em; margin-bottom: 1.5em;">It is sometimes useful to "hide" a comment …​</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="zero" style="border: 0; border-collapse: collapse; width: 100%;">
79
- <tr style="border: 0; border-collapse: collapse; font-size: 12pt;">
80
- <td style="width: 100%;">\[ a^{p-1} \equiv 1\ \text{mod}\ p \]</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="zero" style="border: 0; border-collapse: collapse; width: 100%;">
90
- <tr style="border: 0; border-collapse: collapse; font-size: 12pt;">
91
- <td style="width: 100%;">\[\begin{split} a &amp;= b + c \\ c &amp;= d + e \\ a &amp;= b + d + e \end{split}\]</td>
89
+ <table class="equation_table_style">
90
+ <tr class="equation_row_style">
91
+ <td class="equation_content_style">\[\begin{split} a &amp;= b + c \\ c &amp;= d + e \\ a &amp;= 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="zero" style="border: 0; border-collapse: collapse; width: 100%;">
141
- <tr class="zero" style="border: 0; border-collapse: collapse; font-size: 10pt;">
142
- <td style="width: 100%;">\[\ce{2Fe2O3 + 3C → 4Fe + 3CO2}\]</td>
143
- <td style="text-align: right;">(1)</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{_section_1}{\section*{Section 1}}
3
- \hypertarget{_section_2}{\section*{Section 2}}
4
- \hypertarget{_section_2.1}{\subsection*{Section 2.1}}
5
- \hypertarget{_section_2.1.1}{\subsubsection*{Section 2.1.1}}
6
- \hypertarget{_section_3}{\section*{Section 3}}
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{_section_1}{\section*{Section 1}}
10
- \hypertarget{_section_1.1}{\subsection*{Section 1.1}}
11
- \hypertarget{_section_1.1.1}{\subsubsection*{Section 1.1.1}}
12
- \hypertarget{_section_2}{\section*{Section 2}}
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{_section_1}{\section{Section 1}}
16
- \hypertarget{_unnumbered_section}{\section*{Unnumbered Section}}
17
- \hypertarget{_section_2}{\section{Section 2}}
18
- \hypertarget{_section_2.1}{\subsection{Section 2.1}}
19
- \hypertarget{_section_3}{\section{Section 3}}
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{_section_1}{\section{Section 1}}
23
- \hypertarget{_section_1.1}{\subsection{Section 1.1}}
24
- \hypertarget{_section_1.1.1}{\subsubsection{Section 1.1.1}}
25
- \hypertarget{_section_2}{\section{Section 2}}
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{_cavern_glow}{\section*{Cavern Glow}}
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{_cavern_glow}{\section*{Cavern Glow}}
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{AsciiDoc history}\\AsciiDoc was first released in Nov 2002 by Stuart Rackham.
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 & \unknown\{Literal block\} & {\tt Monospaced text} & \textbf{Strong text} & \unknown\{Verse block\} \\
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
- {\tt This content is duplicated across two columns.
178
- } & {\tt This content is duplicated across two columns.
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
- \unknown\{This content is aligned to the top of the cell and literal.\} \\
182
- \unknown\{This cell contains a verse
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{_introduction}{}
4
- \section*{The Ravages of Writing}
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{_introduction}{}
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{_introduction}{}
18
- \section*{The Ravages of Writing}
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{_introduction}{}
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{_cavern_glow}{\section*{Cavern Glow}}
22
+ \hypertarget{x-cavern-glow}{\section*{Cavern Glow}}
23
23
 
24
24
  %== .toc_title ==%
25
- \hypertarget{_cavern_glow}{\section*{Cavern Glow}}
25
+ \hypertarget{x-cavern-glow}{\section*{Cavern Glow}}
@@ -1,20 +1,21 @@
1
1
  %== .env ==%
2
2
  \begin{theorem}
3
- \hypertarget{}{The equation $a^2 + b^2 = c^2$
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
- \hypertarget{}{\[
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) }\hypertarget{}{\[
17
+ {\rm (Euler) }
18
+ \[
18
19
  e^{2\pi\sqrt{-1}} = 1
19
- \]}
20
+ \]
20
21
  \end{theorem}
@@ -1,29 +1,29 @@
1
1
  %== .env ==%
2
2
  \begin{joke}
3
- \hypertarget{}{An engineer, a mathematician, and a philosopher met
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
- \hypertarget{}{Your honor, my client could not have committed the
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) }\hypertarget{}{Your honor, that testimony cannot be
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) }\hypertarget{}{Your honor, the physical evidence
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
- \hypertarget{}{Three men, a mathematician, a lawyer,
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{Three men, a mathematician, a lawyer,
7
+ {\rm Three men, a mathematician, a lawyer,
8
8
  and a doctor …​}
9
9
  \end{joke}
@@ -1,7 +1,7 @@
1
1
  %== .env_plain ==%
2
2
  \begin{remark}
3
- \hypertarget{}{This is a normal remark.}
3
+ This is a normal remark.
4
4
  \end{remark}
5
5
  \begin{remark}
6
- \rm{This is a plain remark.}
6
+ {\rm This is a plain remark.}
7
7
  \end{remark}
@@ -14,5 +14,5 @@ Ain’t that great!
14
14
  \label{hoho}\hypertarget{hoho}{\sum_{k=1}^\infty \frac{1}{n^2}}
15
15
  \end{equation}
16
16
  \begin{equation}
17
- \hypertarget{}{\sum_{k=1}^\infty \frac{1}{n^3}}
17
+ \hypertarget{'NO-ID'}{\sum_{k=1}^\infty \frac{1}{n^3}}
18
18
  \end{equation}
@@ -1,5 +1,5 @@
1
1
  %== .sections ==%
2
- \hypertarget{_section_aa}{\section*{Section AA}}
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{_section_aa}{Section AA}.
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{_section_a}{Section A}.
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
- {\tt hello world!}
16
+ \texttt{hello world!}
17
17
 
18
18
  %== .monospaced_with_role ==%
19
- {\tt hello world!}
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
- {\tt \textbf{\emph{monospace bold italic phrase}}} and le{\tt \textbf{\emph{tt}}}ers
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{_section_level_1}{\section*{Section Level 1}}
2
+ \hypertarget{x-section-level-1}{\section*{Section Level 1}}
3
3
 
4
4
  %== .level2 ==%
5
- \hypertarget{_section_level_2}{\subsection*{Section Level 2}}
5
+ \hypertarget{x-section-level-2}{\subsection*{Section Level 2}}
6
6
 
7
7
  %== .level3 ==%
8
- \hypertarget{_section_level_3}{\subsubsection*{Section Level 3}}
8
+ \hypertarget{x-section-level-3}{\subsubsection*{Section Level 3}}
9
9
 
10
10
  %== .level4 ==%
11
- \hypertarget{_section_level_4}{\paragraph*{Section Level 4}}
11
+ \hypertarget{x-section-level-4}{\paragraph*{Section Level 4}}
12
12
 
13
13
  %== .level5 ==%
14
- \hypertarget{_section_level_5}{\*{Section Level 5}}
14
+ \hypertarget{x-section-level-5}{\*{Section Level 5}}
15
15
 
16
16
  %== .max_nesting ==%
17
- \hypertarget{_section_level_1}{\section*{Section Level 1}}
18
- \hypertarget{_section_level_2}{\subsection*{Section Level 2}}
19
- \hypertarget{_section_level_3}{\subsubsection*{Section Level 3}}
20
- \hypertarget{_section_level_4}{\paragraph*{Section Level 4}}
21
- \hypertarget{_section_level_5}{\*{Section Level 5}}
22
- \hypertarget{_section_level_2}{\subsection*{Section Level 2}}
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{_section_title}{\section*{Section Title}}
25
+ \hypertarget{x-section-title}{\section*{Section Title}}
26
26
 
27
27
  %== .with_roles ==%
28
- \hypertarget{_section_title}{\section*{Section Title}}
28
+ \hypertarget{x-section-title}{\section*{Section Title}}
29
29
 
30
30
  %== .sectanchors ==%
31
- \hypertarget{_title_with_anchor}{\section*{Title with anchor}}
31
+ \hypertarget{x-title-with-anchor}{\section*{Title with anchor}}
32
32
 
33
33
  %== .sectlinks ==%
34
- \hypertarget{_linked_title}{\section*{Linked title}}
34
+ \hypertarget{x-linked-title}{\section*{Linked title}}
35
35
 
36
36
  %== .numbered ==%
37
- \hypertarget{_introduction_to_asciidoctor}{\section{Introduction to Asciidoctor}}
38
- \hypertarget{_quick_starts}{\section{Quick Starts}}
39
- \hypertarget{_usage}{\subsection{Usage}}
40
- \hypertarget{_using_the_command_line_interface}{\subsubsection{Using the Command Line Interface}}
41
- \hypertarget{_processing_your_content}{\paragraph{Processing Your Content}}
42
- \hypertarget{_syntax}{\subsection{Syntax}}
43
- \hypertarget{_terms_and_concepts}{\section{Terms and Concepts}}
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{_introduction_to_asciidoctor}{\section{Introduction to Asciidoctor}}
47
- \hypertarget{_quick_starts}{\section{Quick Starts}}
48
- \hypertarget{_usage}{\subsection{Usage}}
49
- \hypertarget{_using_the_command_line_interface}{\subsubsection{Using the Command Line Interface}}
50
- \hypertarget{_syntax}{\subsection{Syntax}}
51
- \hypertarget{_terms_and_concepts}{\section{Terms and Concepts}}
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{_section}{\section*{Section}}
3
- \hypertarget{_going_down_farther — subsection}{\subsection*{Going down farther — subsection}}
4
- \hypertarget{_and_farther_still_…​}{\subsubsection*{And farther still …​}}
5
- \hypertarget{_yikes!_we_have_hit_bottom!!}{\paragraph*{Yikes! We have hit bottom!!}}
6
- \hypertarget{_section}{\section{Section}}
7
- \hypertarget{_going_down_farther — subsection}{\subsection{Going down farther — subsection}}
8
- \hypertarget{_and_farther_still_…​}{\subsubsection{And farther still …​}}
9
- \hypertarget{_yikes!_we_have_hit_bottom!!}{\paragraph{Yikes! We have hit bottom!!}}
10
- \hypertarget{_section}{\section*{Section}}
11
- \hypertarget{_going_down_farther — subsection}{\subsection*{Going down farther — subsection}}
12
- \hypertarget{_and_farther_still_…​}{\subsubsection*{And farther still …​}}
13
- \hypertarget{_yikes!_we_have_hit_bottom!!}{\paragraph*{Yikes! We have hit bottom!!}}
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!!}}
@@ -1,3 +1,3 @@
1
1
  %== .zero ==%
2
- \hypertarget{_zero}{\section*{Zero}}
2
+ \hypertarget{x-zero}{\section*{Zero}}
3
3
  This is a test.
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.dev
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-21 00:00:00.000000000 Z
13
+ date: 2015-07-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: asciidoctor