asciidoctor-latex 1.5.0.3.dev → 1.5.0.4.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 +28 -5
- data/README.adoc +48 -23
- data/Rakefile +2 -1
- data/data/asciidoc_tex_macros.tex +86 -3
- data/data/extras.css +73 -1
- data/data/preamble_article.tex +15 -6
- data/data/preamble_book.tex +25 -9
- data/examples/README.adoc +341 -9
- data/examples/README.html +915 -0
- data/examples/math_article.adoc +46 -46
- data/examples/xref-equations.adoc +1 -2
- data/lib/asciidoctor-latex/click.css +2 -0
- data/lib/asciidoctor-latex/click.js +6 -0
- data/lib/asciidoctor-latex/jquery.js +4 -0
- data/lib/asciidoctor-latex/preamble_processor.rb +18 -0
- data/lib/asciidoctor/latex/click_block.rb +7 -4
- data/lib/asciidoctor/latex/converter.rb +75 -29
- data/lib/asciidoctor/latex/core_ext/utility.rb +55 -0
- data/lib/asciidoctor/latex/css.rb +50 -0
- data/lib/asciidoctor/latex/environment_block.rb +13 -6
- data/lib/asciidoctor/latex/inject_html.rb +2 -1
- data/lib/asciidoctor/latex/node_processors.rb +329 -152
- data/lib/asciidoctor/latex/prepend_processor.rb +1 -0
- data/lib/asciidoctor/latex/tex_postprocessor.rb +8 -3
- data/lib/asciidoctor/latex/tex_preprocessor.rb +31 -9
- data/lib/asciidoctor/latex/version.rb +1 -1
- data/test/examples/adoc/ampersand.adoc +2 -0
- data/test/examples/adoc/block_olist.adoc +58 -0
- data/test/examples/adoc/block_ulist.adoc +42 -0
- data/test/examples/adoc/box.adoc +35 -1
- data/test/examples/adoc/chem.adoc +8 -0
- data/test/examples/adoc/click_plain.adoc +24 -0
- data/test/examples/adoc/dlist.adoc +15 -0
- data/test/examples/adoc/env2.adoc +57 -0
- data/test/examples/adoc/env_joke.adoc +12 -0
- data/test/examples/adoc/env_plain.adoc +10 -0
- data/test/examples/adoc/eq-latex.adoc +39 -0
- data/test/examples/adoc/eq.adoc +18 -0
- data/test/examples/adoc/eq.tex +28 -0
- data/test/examples/adoc/eqalign.adoc +19 -6
- data/test/examples/adoc/eqalign.tex +25 -0
- data/test/examples/adoc/eqno-latex.adoc +120 -0
- data/test/examples/adoc/extras.adoc +14 -0
- data/test/examples/adoc/hypertarget.adoc +29 -0
- data/test/examples/adoc/image.adoc +7 -0
- data/test/examples/adoc/newEnvironments.tex +0 -0
- data/test/examples/adoc/table.adoc +6 -0
- data/test/examples/adoc/table.tex +10 -0
- data/test/examples/adoc/tex_pathologies.adoc +30 -0
- data/test/examples/html/env.html +147 -0
- data/test/examples/html/equations.html +14 -0
- data/test/examples/tex/ampersand.tex +2 -0
- data/test/examples/tex/block_admonition.tex +20 -0
- data/test/examples/tex/block_audio.tex +7 -0
- data/test/examples/tex/block_colist.tex +23 -0
- data/test/examples/tex/block_dlist.tex +117 -0
- data/test/examples/tex/block_example.tex +20 -0
- data/test/examples/tex/block_floating_title.tex +20 -0
- data/test/examples/tex/block_image.tex +46 -0
- data/test/examples/tex/block_listing.tex +59 -0
- data/test/examples/tex/block_literal.tex +28 -0
- data/test/examples/tex/block_olist.tex +119 -0
- data/test/examples/tex/block_open.tex +22 -0
- data/test/examples/tex/block_outline.tex +25 -0
- data/test/examples/tex/block_page_break.tex +4 -0
- data/test/examples/tex/block_paragraph.tex +13 -0
- data/test/examples/tex/block_pass.tex +3 -0
- data/test/examples/tex/block_preamble.tex +15 -0
- data/test/examples/tex/block_quote.tex +51 -0
- data/test/examples/tex/block_sidebar.tex +21 -0
- data/test/examples/tex/block_stem.tex +19 -0
- data/test/examples/tex/block_table.tex +188 -0
- data/test/examples/tex/block_thematic_break.tex +1 -0
- data/test/examples/tex/block_toc.tex +27 -0
- data/test/examples/tex/block_ulist.tex +96 -0
- data/test/examples/tex/block_verse.tex +39 -0
- data/test/examples/tex/block_video.tex +15 -0
- data/test/examples/tex/box.tex +25 -0
- data/test/examples/tex/chem.tex +7 -0
- data/test/examples/tex/click_plain.tex +25 -0
- data/test/examples/tex/dlist.tex +17 -0
- data/test/examples/tex/document.tex +25 -0
- data/test/examples/tex/embedded.tex +7 -0
- data/test/examples/tex/env.tex +7 -7
- data/test/examples/tex/env2.tex +29 -0
- data/test/examples/tex/env_joke.tex +9 -0
- data/test/examples/tex/env_plain.tex +7 -0
- data/test/examples/tex/eq-latex.tex +49 -0
- data/test/examples/tex/eq.tex +9 -0
- data/test/examples/tex/eqalign.tex +23 -0
- data/test/examples/tex/eqno-latex.tex +237 -0
- data/test/examples/tex/exponent1.tex +2 -0
- data/test/examples/tex/exponent2.tex +4 -0
- data/test/examples/tex/extras.tex +13 -0
- data/test/examples/tex/hypertarget.tex +25 -0
- data/test/examples/tex/image.tex +4 -0
- data/test/examples/tex/inline_anchor.tex +25 -0
- data/test/examples/tex/inline_break.tex +7 -0
- data/test/examples/tex/inline_button.tex +1 -0
- data/test/examples/tex/inline_callout.tex +4 -0
- data/test/examples/tex/inline_footnote.tex +9 -0
- data/test/examples/tex/inline_image.tex +25 -0
- data/test/examples/tex/inline_kbd.tex +3 -0
- data/test/examples/tex/inline_menu.tex +5 -0
- data/test/examples/tex/inline_quoted.tex +63 -0
- data/test/examples/tex/line_break.tex +4 -0
- data/test/examples/tex/listing.tex +10 -0
- data/test/examples/tex/literal.tex +42 -0
- data/test/examples/tex/macro_underscore.tex +6 -0
- data/test/examples/tex/math.tex +8 -0
- data/test/examples/tex/open_block.tex +10 -0
- data/test/examples/tex/page_break.tex +4 -0
- data/test/examples/tex/pass.tex +3 -0
- data/test/examples/tex/section.tex +51 -0
- data/test/examples/tex/sections.tex +13 -0
- data/test/examples/tex/table.tex +10 -0
- data/test/examples/tex/tex_pathologies.tex +26 -0
- data/test/examples/tex/zero.tex +1 -1
- metadata +188 -26
- data/examples/box.adoc +0 -16
- data/examples/chem.adoc +0 -17
- data/examples/eq-alignment.adoc +0 -5
- data/examples/eq-block.adoc +0 -60
- data/test/examples/adoc/admonition.adoc +0 -11
- data/test_jc/admonition.adoc +0 -4
- data/test_jc/click.adoc +0 -7
- data/test_jc/env.adoc +0 -31
- data/test_jc/example.adoc +0 -17
- data/test_jc/floating_title.adoc +0 -15
- data/test_jc/image.adoc +0 -84
- data/test_jc/images/frog.jpg +0 -0
- data/test_jc/images/red_frog.jpeg +0 -0
- data/test_jc/images/yellow_frog.jpeg +0 -0
- data/test_jc/listing.adoc +0 -9
- data/test_jc/lists.adoc +0 -20
- data/test_jc/math.adoc +0 -10
- data/test_jc/preamble.adoc +0 -14
- data/test_jc/section-numbered.adoc +0 -9
- data/test_jc/section.adoc +0 -7
- data/test_jc/sidebar.adoc +0 -61
- data/test_jc/verse.adoc +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d51781787fb4ce93cafe708a12a80d3a26db7b86
|
4
|
+
data.tar.gz: 0f0b9a48470782cfbb05fc421207a5d79b8eaa48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad9f78f602230774a2934a2d00bc3a2b3eb350e14a8489c9e1e52fcfc7866585c61b8aeb9331f88a81893fc8a7ee8967c7c853b7da0455b771834f557567193
|
7
|
+
data.tar.gz: 111b1c88a8c0a4102eed34d7a61ad9d2fd26517c0223e61bc5f1213bdba52b41417194da7c037abc20c679e6ad36e10a5be63beb1ee166cd64f9f47f3d032c01
|
data/CHANGELOG.adoc
CHANGED
@@ -1,17 +1,40 @@
|
|
1
1
|
== Change Log
|
2
2
|
|
3
|
-
NOTE:
|
3
|
+
NOTE: Released on RubyGems.org, plan to
|
4
|
+
release on GitHub in a few days to bring
|
5
|
+
into sync.
|
6
|
+
|
7
|
+
Next release::
|
8
|
+
. Introduce option as in [env.remark%plain]
|
9
|
+
to use normal (non-italic) text in the body
|
10
|
+
of the environment.
|
11
|
+
. Equations and equation
|
12
|
+
alignments are now *not* numbered by default.
|
13
|
+
To number an equation, do this:
|
14
|
+
`[eq.equation%numbered]`. For equation
|
15
|
+
alignments, do
|
16
|
+
`[eq.equationalign%numbered]`. Better for
|
17
|
+
better style!
|
18
|
+
. Moreover, if an equation
|
19
|
+
or equation alignment environment is labeled
|
20
|
+
for cross-referencing, e.g.,
|
21
|
+
`[env.equation#hohoho]`, then it is numbered.
|
22
|
+
|
4
23
|
|
5
24
|
1.5.0.3dev::
|
6
|
-
|
7
|
-
|
25
|
+
Double exponents in display math are
|
26
|
+
now handled properly, and the source display math
|
27
|
+
expression is passed unchanged to the rendered .tex.
|
8
28
|
(We replace \[ by +\[ in the preprocessor when it occurs
|
9
|
-
at the beginnng of a line and likewise for the other bracket).
|
29
|
+
at the beginnng of a line and likewise for the other bracket).
|
10
30
|
|
11
31
|
|
12
32
|
1.5.0.2dev::
|
13
33
|
Map \( .. \) back to $ ... $ in the postprocessor when converting to LaTeX.
|
14
34
|
Thus $ .. $ in the source is passed unchanged to the rendered .tex.
|
15
35
|
|
16
|
-
1.5.
|
36
|
+
1.5.0.1dev::
|
37
|
+
New environment: [env.box]
|
38
|
+
|
39
|
+
1.5.0dev::
|
17
40
|
Initial release
|
data/README.adoc
CHANGED
@@ -6,6 +6,8 @@ James Carlson
|
|
6
6
|
:toc2:
|
7
7
|
:stem:
|
8
8
|
|
9
|
+
NOTE: CHANGELOG.adoc has been added to this repo.
|
10
|
+
|
9
11
|
== Purpose
|
10
12
|
|
11
13
|
:adl: Asciidoc-LaTeX
|
@@ -14,7 +16,10 @@ James Carlson
|
|
14
16
|
:adp: http://asciidoctor.org[Asciidoctor]
|
15
17
|
:adoc: http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/[Asciidoc]
|
16
18
|
:adlm: http://www.noteshare.io/section/asciidoctor-latex-manual-intro[Asciidoctor-LaTeX Manual]
|
19
|
+
////
|
17
20
|
:tex: https://www.sharelatex.com/[LaTeX]
|
21
|
+
////
|
22
|
+
:tex: LaTeX
|
18
23
|
:article: http://noteshare.io/book/transcendental-numbers-and-periods[article]
|
19
24
|
:ns: http://www.noteshare.io[Noteshare.io]
|
20
25
|
|
@@ -29,25 +34,27 @@ features are covered by this release.]
|
|
29
34
|
|
30
35
|
Below, we descibe the main
|
31
36
|
features of {adl}. However, since
|
32
|
-
|
37
|
+
it will not render in GitHub, you
|
33
38
|
are encouraged to view this write-up:
|
34
39
|
https://vschool.s3.amazonaws.com/manuscripts/372.html[Asciidoc-LaTeX].
|
35
|
-
For more information on using , please consult the
|
40
|
+
For more information on using {adl}, please consult the
|
36
41
|
http://www.noteshare.io/book/asciidoctor-latex-manual[Asciidoctor-LaTeX manual].
|
37
42
|
For more information on conversion of {adl}
|
38
43
|
documents to {tex}, see the file `tech-report.adoc` in
|
39
|
-
this repository
|
44
|
+
this repository or consult the
|
45
|
+
https://vschool.s3.amazonaws.com/manuscripts/389.html[online version],
|
46
|
+
which has a table of contents.
|
40
47
|
|
41
48
|
Asciidoctor-LaTeX is developed by James Carlson, Jakub Jirutka, and Dan Allen.
|
42
49
|
|
43
50
|
|
44
51
|
== Installation
|
45
52
|
|
46
|
-
===
|
53
|
+
=== From Rubygems
|
47
54
|
|
48
|
-
|
55
|
+
The development release, currenty 1.5.0.3.dev, is at
|
49
56
|
https://rubygems.org/gems/asciidoctor-latex[RubyGems.org]
|
50
|
-
|
57
|
+
Beta alert!
|
51
58
|
|
52
59
|
=== From GitHub
|
53
60
|
|
@@ -59,6 +66,40 @@ If you would like to install a development version from the repository, use:
|
|
59
66
|
$ gem install *.gem
|
60
67
|
|
61
68
|
|
69
|
+
== Commands
|
70
|
+
|
71
|
+
Asciidoc math files can be rendered
|
72
|
+
|
73
|
+
Render as HTML::
|
74
|
+
Use `$ asciidoctor-latex -b html foo.adoc` to produce `foo.html`.
|
75
|
+
With this command the Asciidoc-LaTeX syntax and extensions will be rendered.
|
76
|
+
|
77
|
+
|
78
|
+
Render as LaTeX:: Use `$ asciidoctor-latex foo.adoc`
|
79
|
+
to produce `foo.tex`.
|
80
|
+
|
81
|
+
|
82
|
+
=== Macro files
|
83
|
+
|
84
|
+
The contents of a file named `macros.tex` will
|
85
|
+
read and used by `asciidoctor-latex`
|
86
|
+
if it is in the same directory as the file
|
87
|
+
being rendered. This is the case regardless
|
88
|
+
of the output format -- HTML or tex.
|
89
|
+
|
90
|
+
|
91
|
+
=== Switches
|
92
|
+
|
93
|
+
asciidoctor-latex -a header=no foo.adoc::
|
94
|
+
Use a minimal header for the generated tex file.
|
95
|
+
|
96
|
+
|
97
|
+
{adlp}'s default form at is `:latexmath`.
|
98
|
+
To use `:stem`, put the text `:stem:`
|
99
|
+
in your file. To turn the switch
|
100
|
+
on and set it to `latexmath`, say
|
101
|
+
instead of `stem:latexmth`.
|
102
|
+
|
62
103
|
== Document format
|
63
104
|
|
64
105
|
Asciidoctor supports two closely-related
|
@@ -77,7 +118,7 @@ You will need to express dollar-denominated
|
|
77
118
|
currency using
|
78
119
|
escaped dollar signs, as
|
79
120
|
in the sentence, "He paid \$100 for that
|
80
|
-
|
121
|
+
theorem." In AsciiMath, one writes
|
81
122
|
`+++stem:[ a^2 + b^2 = c^2 ]+++`
|
82
123
|
and
|
83
124
|
----
|
@@ -191,19 +232,3 @@ clickable.
|
|
191
232
|
The default for click blocks is not to number them.
|
192
233
|
See the file `click.adoc` in the `exampless` directory
|
193
234
|
for more information.
|
194
|
-
|
195
|
-
== Commands for rendering
|
196
|
-
|
197
|
-
Asciidoc math files can be rendered
|
198
|
-
|
199
|
-
* as HTML. Use `$ asciidoctor-latex -b html foo.adoc` to produce `foo.html`.
|
200
|
-
With this command the Asciidoc-LaTeX syntax and extensions will be rendered.
|
201
|
-
* as LaTeX. Use `$ asciidoctor-latex foo.adoc`
|
202
|
-
to produce `foo.tex`.
|
203
|
-
|
204
|
-
|
205
|
-
== Switches
|
206
|
-
|
207
|
-
Switch `:stem:` processing on by puttinng the text `:stem:`
|
208
|
-
in your file. To turn the switch on and set it to `latexmath`, say
|
209
|
-
instead of `stem:latexmth`.
|
data/Rakefile
CHANGED
@@ -38,12 +38,13 @@ begin
|
|
38
38
|
task :default => :test
|
39
39
|
|
40
40
|
namespace :generate do
|
41
|
+
=begin
|
41
42
|
DocTest::GeneratorTask.new(:latex) do |t|
|
42
43
|
t.converter_opts[:backend_name] = :latex
|
43
44
|
t.output_suite = DocTest::Latex::ExamplesSuite.new(examples_path: 'test/examples/tex')
|
44
45
|
t.examples_path.unshift 'test/examples/adoc' # extra input examples
|
45
46
|
end
|
46
|
-
|
47
|
+
=end
|
47
48
|
DocTest::GeneratorTask.new(:html) do |t|
|
48
49
|
t.converter_opts[:backend_name] = :html
|
49
50
|
t.output_suite = DocTest::HTML::ExamplesSuite.new(examples_path: 'test/examples/html')
|
@@ -1,8 +1,14 @@
|
|
1
1
|
|
2
|
+
|
3
|
+
% \pagecolor{black}
|
4
|
+
%%%%%%%%%%%%
|
5
|
+
|
6
|
+
|
2
7
|
% Needed for Asciidoc
|
3
8
|
|
4
9
|
\newcommand{\admonition}[2]{\textbf{#1}: {#2}}
|
5
10
|
\newcommand{\rolered}[1]{ \textcolor{red}{#1} }
|
11
|
+
\newcommand{\roleblue}[1]{ \textcolor{blue}{#1} }
|
6
12
|
|
7
13
|
\newtheorem{theorem}{Theorem}
|
8
14
|
\newtheorem{proposition}{Proposition}
|
@@ -11,32 +17,109 @@
|
|
11
17
|
\newtheorem{definition}{Definition}
|
12
18
|
\newtheorem{conjecture}{Conjecture}
|
13
19
|
\newtheorem{problem}{Problem}
|
20
|
+
\newtheorem{exercise}{Exercise}
|
14
21
|
\newtheorem{example}{Example}
|
15
|
-
\newtheorem{remark}{Remark}
|
16
22
|
\newtheorem{note}{Note}
|
23
|
+
\newtheorem{joke}{Joke}
|
24
|
+
\newtheorem{objection}{Objection}
|
25
|
+
|
26
|
+
|
27
|
+
|
17
28
|
|
18
29
|
|
19
|
-
|
30
|
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
31
|
+
|
20
32
|
% Extended quote environment with author
|
33
|
+
|
34
|
+
\renewenvironment{quotation}
|
35
|
+
{ \leftskip 4em \begin{em} }
|
36
|
+
{\end{em}\par }
|
37
|
+
|
21
38
|
\def\signed#1{{\leavevmode\unskip\nobreak\hfil\penalty50\hskip2em
|
22
39
|
\hbox{}\nobreak\hfil\raise-3pt\hbox{(#1)}%
|
23
40
|
\parfillskip=0pt \finalhyphendemerits=0 \endgraf}}
|
24
41
|
|
42
|
+
|
25
43
|
\newsavebox\mybox
|
44
|
+
|
26
45
|
\newenvironment{aquote}[1]
|
27
46
|
{\savebox\mybox{#1}\begin{quotation}}
|
28
47
|
{\signed{\usebox\mybox}\end{quotation}}
|
29
|
-
|
48
|
+
|
49
|
+
\newenvironment{tquote}[1]
|
50
|
+
{ {\bf #1} \begin{quotation} \\ }
|
51
|
+
{ \end{quotation} }
|
52
|
+
|
53
|
+
%% BOXES: http://tex.stackexchange.com/questions/83930/what-are-the-different-kinds-of-boxes-in-latex
|
54
|
+
%% ENVIRONMENTS: https://www.sharelatex.com/learn/Environments
|
55
|
+
|
56
|
+
\newenvironment{asciidocbox}
|
57
|
+
{\leftskip6em\rightskip6em\par}
|
58
|
+
{\par}
|
59
|
+
|
60
|
+
\newenvironment{titledasciidocbox}[1]
|
61
|
+
{\leftskip6em\rightskip6em\par{\bf #1}\vskip-0.6em\par}
|
62
|
+
{\par}
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
67
|
+
|
68
|
+
%% http://texblog.org/tag/rightskip/
|
69
|
+
|
30
70
|
|
31
71
|
\newenvironment{preamble}
|
32
72
|
{}
|
33
73
|
{}
|
34
74
|
|
35
75
|
%% http://tex.stackexchange.com/questions/99809/box-or-sidebar-for-additional-text
|
76
|
+
%%
|
36
77
|
\newenvironment{sidebar}[1][r]
|
37
78
|
{\wrapfigure{#1}{0.5\textwidth}\tcolorbox}
|
38
79
|
{\endtcolorbox\endwrapfigure}
|
39
80
|
|
81
|
+
|
82
|
+
%%%%%%%%%%
|
83
|
+
|
84
|
+
\newenvironment{comment*}
|
85
|
+
{\leftskip6em\rightskip6em\par}
|
86
|
+
{\par}
|
87
|
+
|
88
|
+
\newenvironment{remark*}
|
89
|
+
{\leftskip6em\rightskip6em\par}
|
90
|
+
{\par}
|
91
|
+
|
92
|
+
|
93
|
+
%% Dummy environment for testing:
|
94
|
+
|
95
|
+
\newenvironment{foo}
|
96
|
+
{\bf Foo.\ }
|
97
|
+
{}
|
98
|
+
|
99
|
+
|
100
|
+
\newenvironment{foo*}
|
101
|
+
{\bf Foo.\ }
|
102
|
+
{}
|
103
|
+
|
104
|
+
|
105
|
+
\newenvironment{click}
|
106
|
+
{\bf Click.\ }
|
107
|
+
{}
|
108
|
+
|
109
|
+
\newenvironment{click*}
|
110
|
+
{\bf Click.\ }
|
111
|
+
{}
|
112
|
+
|
113
|
+
|
114
|
+
\newenvironment{remark}
|
115
|
+
{\bf Remark.\ }
|
116
|
+
{}
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
121
|
+
|
40
122
|
%% Style
|
123
|
+
|
41
124
|
\parindent0pt
|
42
125
|
\parskip8pt
|
data/data/extras.css
CHANGED
@@ -1,6 +1,78 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
/* CLICK BLOCK */
|
3
|
+
|
4
|
+
.click_oblique {
|
5
|
+
|
6
|
+
line-height:1.5em;
|
7
|
+
font-size:1.05em;
|
8
|
+
font-style:oblique;
|
9
|
+
margin-bottom:1.5em
|
10
|
+
}
|
11
|
+
|
12
|
+
.click_plain {
|
13
|
+
|
14
|
+
line-height:1.5em;
|
15
|
+
font-size:1.05em;
|
16
|
+
margin-bottom:1.5em;
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
/* BOX */
|
21
|
+
|
22
|
+
|
23
|
+
.openblock.box {
|
2
24
|
margin-top:1em;
|
3
25
|
margin-bottom: 1em;
|
4
26
|
margin-left:3em;
|
5
27
|
margin-right:4em;
|
28
|
+
padding: 1em;
|
29
|
+
background-color: #ddd;
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
/* CAPSULE */
|
34
|
+
|
35
|
+
|
36
|
+
.openblock.capsule.content {
|
37
|
+
margin-bottom:2em;
|
38
|
+
font-style:italic;
|
39
|
+
font-size:0.85em;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
/* Equation Style */
|
44
|
+
|
45
|
+
|
46
|
+
.equation_row_style {
|
47
|
+
|
48
|
+
border-collapse: collapse;
|
49
|
+
border:0;
|
50
|
+
font-size: 10pt;
|
51
|
+
}
|
52
|
+
|
53
|
+
.equation_table_style {
|
54
|
+
|
55
|
+
width:100%;
|
56
|
+
border-collapse:collapse;
|
57
|
+
border:0
|
58
|
+
}
|
59
|
+
|
60
|
+
.equation_number_style {
|
61
|
+
|
62
|
+
text-align:right;
|
63
|
+
}
|
64
|
+
|
65
|
+
.equation_content_style {
|
66
|
+
|
67
|
+
width:100%;
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
/* XREF */
|
73
|
+
|
74
|
+
.xref {
|
75
|
+
|
76
|
+
text-decoration:none;
|
77
|
+
|
6
78
|
}
|
data/data/preamble_article.tex
CHANGED
@@ -1,21 +1,27 @@
|
|
1
1
|
%% A minimal LaTeX preamble
|
2
|
+
%% Some packates are needed to implement
|
3
|
+
%% Asciidoc features
|
2
4
|
|
3
5
|
\documentclass[11pt]{amsart}
|
4
6
|
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
|
5
7
|
\geometry{letterpaper} % ... or a4paper or a5paper or ...
|
6
8
|
%\geometry{landscape} % Activate for for rotated page geometry
|
7
9
|
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
|
8
|
-
|
9
|
-
\graphicspath{ {images/} }
|
10
|
-
\usepackage{wrapfig}
|
10
|
+
|
11
11
|
\usepackage{tcolorbox}
|
12
12
|
\usepackage{lipsum}
|
13
|
-
|
13
|
+
|
14
14
|
\usepackage{epstopdf}
|
15
15
|
\usepackage{color}
|
16
|
-
\usepackage{
|
16
|
+
% \usepackage[usenames, dvipsnames]{color}
|
17
|
+
% \usepackage{alltt}
|
18
|
+
|
19
|
+
|
20
|
+
\usepackage{amssymb}
|
21
|
+
% \usepackage{amsmath}
|
22
|
+
\usepackage{amsthm}
|
17
23
|
\usepackage[version=3]{mhchem}
|
18
|
-
|
24
|
+
|
19
25
|
|
20
26
|
% Needed to properly typeset
|
21
27
|
% standard unicode characters:
|
@@ -40,6 +46,9 @@
|
|
40
46
|
urlcolor=cyan,
|
41
47
|
}
|
42
48
|
|
49
|
+
\usepackage{graphicx}
|
50
|
+
\usepackage{wrapfig}
|
51
|
+
\graphicspath{ {images/} }
|
43
52
|
\DeclareGraphicsExtensions{.png, .jpg, jpeg, .pdf}
|
44
53
|
|
45
54
|
%% \DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
|