asciidoctor-latex 1.5.0.dev
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.adoc +22 -0
- data/README.adoc +213 -0
- data/Rakefile +55 -0
- data/bin/asciidoctor-latex +22 -0
- data/data/asciidoc_tex_macros.tex +42 -0
- data/data/preamble_article.tex +45 -0
- data/data/preamble_book.tex +44 -0
- data/lib/asciidoctor-latex.rb +1 -0
- data/lib/asciidoctor/latex.rb +8 -0
- data/lib/asciidoctor/latex/chem.rb +24 -0
- data/lib/asciidoctor/latex/click_block.rb +121 -0
- data/lib/asciidoctor/latex/converter.rb +358 -0
- data/lib/asciidoctor/latex/core_ext/colored_string.rb +35 -0
- data/lib/asciidoctor/latex/dollar.rb +28 -0
- data/lib/asciidoctor/latex/ent_to_uni.rb +17 -0
- data/lib/asciidoctor/latex/environment_block.rb +190 -0
- data/lib/asciidoctor/latex/inject_html.rb +49 -0
- data/lib/asciidoctor/latex/inline_macros.rb +20 -0
- data/lib/asciidoctor/latex/macro_insert.rb +49 -0
- data/lib/asciidoctor/latex/node_processors.rb +695 -0
- data/lib/asciidoctor/latex/prepend_processor.rb +36 -0
- data/lib/asciidoctor/latex/preprocess.rb +37 -0
- data/lib/asciidoctor/latex/tex_block.rb +108 -0
- data/lib/asciidoctor/latex/tex_postprocessor.rb +44 -0
- data/lib/asciidoctor/latex/tex_preprocessor.rb +65 -0
- data/lib/asciidoctor/latex/version.rb +5 -0
- data/manual.adoc +285 -0
- data/rake/cacert.pem +3894 -0
- data/rake/jdk_helper.rb +105 -0
- data/rake/tar-licence +19 -0
- data/rake/tar.rb +38 -0
- data/rspec/README.adoc +45 -0
- data/rspec/a.rb +79 -0
- data/rspec/b.rb +111 -0
- data/rspec/c.rb +121 -0
- data/rspec/data/tex1 +65 -0
- data/rspec/data/tex2 +5 -0
- data/rspec/data/tex2.expect +5 -0
- data/rspec/transform.rb +36 -0
- data/spec/README.adoc +45 -0
- data/spec/a.rb +79 -0
- data/spec/b.rb +111 -0
- data/spec/c.rb +121 -0
- data/spec/data/foo +1 -0
- data/spec/data/lorem +1 -0
- data/spec/data/tex1 +65 -0
- data/spec/data/tex2 +5 -0
- data/spec/data/tex2.expect +5 -0
- data/spec/transform.rb +36 -0
- data/test/examples/adoc/env.adoc +16 -0
- data/test/examples/adoc/eq.adoc +12 -0
- data/test/examples/adoc/zero.adoc +3 -0
- data/test/examples/asciidoc-html/block_open.adoc +17 -0
- data/test/examples/tex/env.tex +132 -0
- data/test/examples/tex/eq.tex +132 -0
- data/test/examples/tex/zero.tex +121 -0
- data/test/html_test.rb +8 -0
- data/test/latex_test.rb +8 -0
- data/test/test_helper.rb +4 -0
- data/test_jc/admonition.adoc +4 -0
- data/test_jc/click.adoc +7 -0
- data/test_jc/env.adoc +31 -0
- data/test_jc/example.adoc +17 -0
- data/test_jc/floating_title.adoc +15 -0
- data/test_jc/image.adoc +84 -0
- 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 +9 -0
- data/test_jc/lists.adoc +20 -0
- data/test_jc/math.adoc +10 -0
- data/test_jc/preamble.adoc +14 -0
- data/test_jc/section-numbered.adoc +9 -0
- data/test_jc/section.adoc +7 -0
- data/test_jc/sidebar.adoc +61 -0
- data/test_jc/verse.adoc +15 -0
- data/try-out/README.adoc +348 -0
- data/try-out/click.adoc +108 -0
- data/try-out/code.adoc +122 -0
- data/try-out/env.adoc +139 -0
- data/try-out/eq-latex.adoc +37 -0
- data/try-out/eq-stem.adoc +41 -0
- data/try-out/eqno-latex.adoc +120 -0
- data/try-out/math_article.adoc +138 -0
- data/try-out/pyth-stem.adoc +52 -0
- data/try-out/theorem-latex.adoc +50 -0
- data/try-out/xref-equations.adoc +28 -0
- metadata +210 -0
data/spec/data/foo
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
foo.bar
|
data/spec/data/lorem
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean suscipit, justo quis cursus rhoncus, ex felis ornare ipsum, et auctor mi ligula id nibh. Mauris varius id ante in imperdiet. Vestibulum feugiat ante eros, et imperdiet dolor dapibus finibus. Integer vel egestas enim. Donec sed aliquet ligula. Quisque ut eros lacus. Cras in auctor risus.
|
data/spec/data/tex1
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
==== The tautological and Hopf bundles
|
2
|
+
|
3
|
+
Projective space may also be viewed as the quotient under
|
4
|
+
a group action. Consider a space $Y$ and a group $G$. An
|
5
|
+
action of $G$ on $Y$ is a map $G\times Y \map Y$,
|
6
|
+
written $(g,y) \mapsto g.y$, that satisfies $e.y = y$ for all
|
7
|
+
$y$, where $e$ is the neutral element, and $g.(h.y) = (gh).y$
|
8
|
+
for all $g,h \in G$, $y \in Y$. The _orbit_ of point $y \in Y$
|
9
|
+
under the action of $G$ is the set $G.y = \sett{g.y}{ g \in G}$.
|
10
|
+
The quotient of $Y$ by $G$, written $Y/G$, is the set of orbits.
|
11
|
+
Note that $Y/G$ is just the set of equivalence classes of elements
|
12
|
+
of $Y$ under the relation $y' \sim y$ if there is an element $g \in G$
|
13
|
+
such that $y' = g.y$.
|
14
|
+
|
15
|
+
Returning to the construction of projective space,
|
16
|
+
the map
|
17
|
+
$(\lambda, Z) \mapsto \lambda Z$
|
18
|
+
defines an
|
19
|
+
action of the group $\CC^*$ on
|
20
|
+
$\CC^{n+1} - \set{0}$, and
|
21
|
+
\[
|
22
|
+
\CP^n = (\CC^{n+1} - \set{0})\big/\CC^*
|
23
|
+
\]
|
24
|
+
is the quotient. If $p: \CC^{n+1} - \set{0} \map \CP^n$
|
25
|
+
is the projection map, then the set
|
26
|
+
\[
|
27
|
+
p^{-1}([Z]) = \set{ Z \in [Z]} \cong \CC^*,
|
28
|
+
\]
|
29
|
+
the so-called
|
30
|
+
_fiber_ of $p$ at $[Z]$ can be identified with $\CC^*$.
|
31
|
+
This leads to the important diagram
|
32
|
+
\[
|
33
|
+
\CC^* \map \CC^{n+1} - \set{0} \mapright{p} \CP^n,
|
34
|
+
\]
|
35
|
+
which defines a $\CC^*$ bundle over $\CP^n$ called the
|
36
|
+
_tautological bundle_.
|
37
|
+
It plays a key role in the theory of projective varieties.
|
38
|
+
|
39
|
+
FIG
|
40
|
+
|
41
|
+
Consider now the unit sphere
|
42
|
+
\[
|
43
|
+
S^{2n+1} = \sett{ Z \in \CC^{n+1} } { ||Z|| = 1 }.
|
44
|
+
\]
|
45
|
+
It is stable under the action of unit circle subgroup
|
46
|
+
\[
|
47
|
+
U = \sett{ \lambda \in \CC}{ |\lambda| = 1 }.
|
48
|
+
\]
|
49
|
+
The natural map
|
50
|
+
\[
|
51
|
+
S^{2n+1} \map \CC^{n+1} - \set{0}
|
52
|
+
\]
|
53
|
+
restricts ot a map of quotient spaces
|
54
|
+
\[
|
55
|
+
S^{2n+1}/U \map (\CC^{n+1} - \set{0})/\CC^*,
|
56
|
+
\]
|
57
|
+
and it is easy to see that this map is an isomorphism.
|
58
|
+
This gives a second presentation of projective space
|
59
|
+
as the quotient of a sphere, and it leads to the famous
|
60
|
+
_Hopf fibration_,
|
61
|
+
\[
|
62
|
+
S^1 \map S^{2n+1} \mapright{h} \CP^n.
|
63
|
+
\]
|
64
|
+
The Hopf map is, by the way, the generator of the homotopy
|
65
|
+
group $\pi_3(S^2)$.
|
data/spec/data/tex2
ADDED
data/spec/transform.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# TEX_DOLLAR_SUB = '\1latexmath:[\2]\3'
|
2
|
+
|
3
|
+
module Transform
|
4
|
+
|
5
|
+
# Map $...$ to stem:[...]
|
6
|
+
# Map $...$ to \( ... \)
|
7
|
+
|
8
|
+
|
9
|
+
TEX_DOLLAR_RX = /(^|\s|\()\$(.*?)\$($|\s|\)|,|\.)/
|
10
|
+
TEX_DOLLAR_SUB = '\1\\\(\2\\\)\3'
|
11
|
+
TEX_DOLLAR_SUB2 = '\1latexmath:[\2]\3'
|
12
|
+
|
13
|
+
$fixmath = lambda { |x| x.gsub TEX_DOLLAR_RX, TEX_DOLLAR_SUB }
|
14
|
+
$fixmath2 = lambda { |x| x.gsub TEX_DOLLAR_RX, TEX_DOLLAR_SUB2 }
|
15
|
+
|
16
|
+
$identity = lambda { |x| x }
|
17
|
+
|
18
|
+
def self.read_string in_file
|
19
|
+
return File.open(in_file, 'r') { |f| f.read }
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.map_string str, transformer
|
23
|
+
return transformer.call str
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.map_file in_file, out_file, transform_string
|
27
|
+
|
28
|
+
input = File.open(in_file, 'r') { |f| f.read }
|
29
|
+
output = transform_string.call(input)
|
30
|
+
File.open(out_file, 'w' ) { |f| f.write output }
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
== Env test
|
2
|
+
|
3
|
+
[env.theorem]
|
4
|
+
--
|
5
|
+
The equation $a^2 + b^2 = c^2$
|
6
|
+
has infinitely many non-proportional
|
7
|
+
integer solutions.
|
8
|
+
--
|
9
|
+
|
10
|
+
[env.theorem]
|
11
|
+
--
|
12
|
+
The equation $a^n + b^n = c^n$,
|
13
|
+
for $n > 2$, has only trivial
|
14
|
+
integer solutions, where one of
|
15
|
+
the variables is zero.
|
16
|
+
--
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// .env_theorem
|
2
|
+
[env.theorem]
|
3
|
+
--
|
4
|
+
There exist infinitely many prime numbers.
|
5
|
+
--
|
6
|
+
|
7
|
+
// .env_equation
|
8
|
+
[env.equation]
|
9
|
+
--
|
10
|
+
a^{p-1} \equiv 1\ \text{mod}\ p
|
11
|
+
--
|
12
|
+
|
13
|
+
// .click_comment
|
14
|
+
[click.comment]
|
15
|
+
--
|
16
|
+
It is sometimes useful to "hide" a comment ...
|
17
|
+
--
|
@@ -0,0 +1,132 @@
|
|
1
|
+
%% Preamble %%
|
2
|
+
%% A minimal LaTeX preamble
|
3
|
+
|
4
|
+
\documentclass[11pt]{amsart}
|
5
|
+
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
|
6
|
+
\geometry{letterpaper} % ... or a4paper or a5paper or ...
|
7
|
+
%\geometry{landscape} % Activate for for rotated page geometry
|
8
|
+
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
|
9
|
+
\usepackage{graphicx}
|
10
|
+
\usepackage{amssymb}
|
11
|
+
\usepackage{epstopdf}
|
12
|
+
\usepackage{hyperref}
|
13
|
+
\usepackage{color}
|
14
|
+
|
15
|
+
% \usepackage{fontspec}
|
16
|
+
\usepackage{polyglossia}
|
17
|
+
\setmainlanguage{en}
|
18
|
+
|
19
|
+
|
20
|
+
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
%% Asciidoc TeX Macros %%
|
30
|
+
|
31
|
+
% Needed for Asciidoc
|
32
|
+
|
33
|
+
\newcommand{\admonition}[2]{\textbf{#1}: {#2}}
|
34
|
+
\newcommand{\rolered}[1]{ \textcolor{red}{#1} }
|
35
|
+
|
36
|
+
\newtheorem{theorem}{Theorem}
|
37
|
+
\newtheorem{remark}{Remark}
|
38
|
+
\newtheorem{corollary}{Corollary}
|
39
|
+
\newtheorem{problem}{Problem}
|
40
|
+
\newtheorem{definition}{Definition}
|
41
|
+
\newtheorem{example}{Example}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
%% User Macros %%
|
47
|
+
%% Macro definitions
|
48
|
+
%% J. Carlson
|
49
|
+
%% 9/26/2014
|
50
|
+
|
51
|
+
|
52
|
+
%% Blackboard Bold
|
53
|
+
\def\AA{\mathbb{A}}
|
54
|
+
\def\BB{\mathbb{B}}
|
55
|
+
\def\CC{\mathbb{C}}
|
56
|
+
\def\DD{\mathbb{D}}
|
57
|
+
\def\EE{\mathbb{E}}
|
58
|
+
\def\FF{\mathbb{F}}
|
59
|
+
\def\NN{\mathbb{N}}
|
60
|
+
\def\OO\mathbb{{O}}
|
61
|
+
\def\PP{\mathbb{P}}
|
62
|
+
\def\QQ{\mathbb{Q}}
|
63
|
+
\def\RR{\mathbb{R}}
|
64
|
+
\def\ZZ{\mathbb{Z}}
|
65
|
+
\def\ffp{\mathfrak{p}}
|
66
|
+
\def\bold#1{\bf #1}
|
67
|
+
|
68
|
+
%% Mathcal
|
69
|
+
\def\EEE{\mathcal{E}}
|
70
|
+
\def\PPP{\mathcal{P}}
|
71
|
+
\def\UUU{\mathcal{U}}
|
72
|
+
\def\CCC{\mathcal{C}}
|
73
|
+
|
74
|
+
%% Arrows, sets, etc.
|
75
|
+
\newcommand{\commadots}{, \ldots, }
|
76
|
+
\newcommand{\set}[1]{ \{\,#1\, \} }
|
77
|
+
\newcommand{\sett}[2]{ \{\,#1\, \mid\, #2\, \} }
|
78
|
+
\newcommand{\Set}[1]{ \Big\{\,#1\, \Big\} }
|
79
|
+
\newcommand{\Sett}[2]{ \Big\{\,#1\, \Big\vert\; #2\, \Big\} }
|
80
|
+
\newcommand{\mapright}[1]{\ \smash{
|
81
|
+
\mathop{\longrightarrow}\limits^{#1}}\ }
|
82
|
+
\newcommand{\vars}[2]{{#1}_1\commadots{#1}_{#2}}
|
83
|
+
\newcommand{\map}{\longrightarrow}
|
84
|
+
|
85
|
+
%% Math operators
|
86
|
+
\def\rank{\mathop{rank}}
|
87
|
+
\def\dim{\mathop{dim}}
|
88
|
+
\def\height{\mathop{height}}
|
89
|
+
|
90
|
+
\def\ord{\mathop{ord}\nolimits}
|
91
|
+
\def\CP{\CC\PP}
|
92
|
+
|
93
|
+
%% Document appearance
|
94
|
+
\parskip8pt
|
95
|
+
\parindent0pt
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
\input newEnvironments.tex
|
101
|
+
%% Front Matter %%
|
102
|
+
|
103
|
+
\title{Env test}
|
104
|
+
\author{}
|
105
|
+
\date{}
|
106
|
+
|
107
|
+
|
108
|
+
%% Begin Document %%
|
109
|
+
|
110
|
+
\begin{document}
|
111
|
+
\maketitle
|
112
|
+
%% Begin Document Text %%
|
113
|
+
\section{Env test}
|
114
|
+
|
115
|
+
\begin{theorem}
|
116
|
+
The equation \(a^2 + b^2 = c^2\)
|
117
|
+
has infinitely many non-proportional
|
118
|
+
integer solutions.
|
119
|
+
\end{theorem}
|
120
|
+
|
121
|
+
\begin{theorem}
|
122
|
+
The equation \(a^n + b^n = c^n\),
|
123
|
+
for $\(n > 2\), has only trivial
|
124
|
+
integer solutions, where one of
|
125
|
+
the variables is zero.
|
126
|
+
\end{theorem}
|
127
|
+
|
128
|
+
Dummy
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
\end{document}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
%% Preamble %%
|
2
|
+
%% A minimal LaTeX preamble
|
3
|
+
|
4
|
+
\documentclass[11pt]{amsart}
|
5
|
+
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
|
6
|
+
\geometry{letterpaper} % ... or a4paper or a5paper or ...
|
7
|
+
%\geometry{landscape} % Activate for for rotated page geometry
|
8
|
+
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
|
9
|
+
\usepackage{graphicx}
|
10
|
+
\usepackage{amssymb}
|
11
|
+
\usepackage{epstopdf}
|
12
|
+
\usepackage{hyperref}
|
13
|
+
\usepackage{color}
|
14
|
+
|
15
|
+
% \usepackage{fontspec}
|
16
|
+
\usepackage{polyglossia}
|
17
|
+
\setmainlanguage{en}
|
18
|
+
|
19
|
+
|
20
|
+
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
%% Asciidoc TeX Macros %%
|
30
|
+
|
31
|
+
% Needed for Asciidoc
|
32
|
+
|
33
|
+
\newcommand{\admonition}[2]{\textbf{#1}: {#2}}
|
34
|
+
\newcommand{\rolered}[1]{ \textcolor{red}{#1} }
|
35
|
+
|
36
|
+
\newtheorem{theorem}{Theorem}
|
37
|
+
\newtheorem{remark}{Remark}
|
38
|
+
\newtheorem{corollary}{Corollary}
|
39
|
+
\newtheorem{problem}{Problem}
|
40
|
+
\newtheorem{definition}{Definition}
|
41
|
+
\newtheorem{example}{Example}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
%% User Macros %%
|
47
|
+
%% Macro definitions
|
48
|
+
%% J. Carlson
|
49
|
+
%% 9/26/2014
|
50
|
+
|
51
|
+
|
52
|
+
%% Blackboard Bold
|
53
|
+
\def\AA{\mathbb{A}}
|
54
|
+
\def\BB{\mathbb{B}}
|
55
|
+
\def\CC{\mathbb{C}}
|
56
|
+
\def\DD{\mathbb{D}}
|
57
|
+
\def\EE{\mathbb{E}}
|
58
|
+
\def\FF{\mathbb{F}}
|
59
|
+
\def\NN{\mathbb{N}}
|
60
|
+
\def\OO\mathbb{{O}}
|
61
|
+
\def\PP{\mathbb{P}}
|
62
|
+
\def\QQ{\mathbb{Q}}
|
63
|
+
\def\RR{\mathbb{R}}
|
64
|
+
\def\ZZ{\mathbb{Z}}
|
65
|
+
\def\ffp{\mathfrak{p}}
|
66
|
+
\def\bold#1{\bf #1}
|
67
|
+
|
68
|
+
%% Mathcal
|
69
|
+
\def\EEE{\mathcal{E}}
|
70
|
+
\def\PPP{\mathcal{P}}
|
71
|
+
\def\UUU{\mathcal{U}}
|
72
|
+
\def\CCC{\mathcal{C}}
|
73
|
+
|
74
|
+
%% Arrows, sets, etc.
|
75
|
+
\newcommand{\commadots}{, \ldots, }
|
76
|
+
\newcommand{\set}[1]{ \{\,#1\, \} }
|
77
|
+
\newcommand{\sett}[2]{ \{\,#1\, \mid\, #2\, \} }
|
78
|
+
\newcommand{\Set}[1]{ \Big\{\,#1\, \Big\} }
|
79
|
+
\newcommand{\Sett}[2]{ \Big\{\,#1\, \Big\vert\; #2\, \Big\} }
|
80
|
+
\newcommand{\mapright}[1]{\ \smash{
|
81
|
+
\mathop{\longrightarrow}\limits^{#1}}\ }
|
82
|
+
\newcommand{\vars}[2]{{#1}_1\commadots{#1}_{#2}}
|
83
|
+
\newcommand{\map}{\longrightarrow}
|
84
|
+
|
85
|
+
%% Math operators
|
86
|
+
\def\rank{\mathop{rank}}
|
87
|
+
\def\dim{\mathop{dim}}
|
88
|
+
\def\height{\mathop{height}}
|
89
|
+
|
90
|
+
\def\ord{\mathop{ord}\nolimits}
|
91
|
+
\def\CP{\CC\PP}
|
92
|
+
|
93
|
+
%% Document appearance
|
94
|
+
\parskip8pt
|
95
|
+
\parindent0pt
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
\input newEnvironments.tex
|
101
|
+
%% Front Matter %%
|
102
|
+
|
103
|
+
\title{Equation test}
|
104
|
+
\author{}
|
105
|
+
\date{}
|
106
|
+
|
107
|
+
|
108
|
+
%% Begin Document %%
|
109
|
+
|
110
|
+
\begin{document}
|
111
|
+
\maketitle
|
112
|
+
%% Begin Document Text %%
|
113
|
+
\section{Equation test}
|
114
|
+
|
115
|
+
The Pythagorean theorem, \(a^2 + b^2 = c^2\),
|
116
|
+
relates the hypotenuse to the altitude
|
117
|
+
and base of a right triangle.
|
118
|
+
|
119
|
+
|
120
|
+
Euler’s formula states that
|
121
|
+
\[
|
122
|
+
e^{2\pi \sqrt{-1}} = 1
|
123
|
+
\]
|
124
|
+
|
125
|
+
|
126
|
+
Ain’t that great!
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
\end{document}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
%% Preamble %%
|
2
|
+
%% A minimal LaTeX preamble
|
3
|
+
|
4
|
+
\documentclass[11pt]{amsart}
|
5
|
+
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
|
6
|
+
\geometry{letterpaper} % ... or a4paper or a5paper or ...
|
7
|
+
%\geometry{landscape} % Activate for for rotated page geometry
|
8
|
+
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
|
9
|
+
\usepackage{graphicx}
|
10
|
+
\usepackage{amssymb}
|
11
|
+
\usepackage{epstopdf}
|
12
|
+
\usepackage{hyperref}
|
13
|
+
\usepackage{color}
|
14
|
+
|
15
|
+
% \usepackage{fontspec}
|
16
|
+
\usepackage{polyglossia}
|
17
|
+
\setmainlanguage{en}
|
18
|
+
|
19
|
+
|
20
|
+
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
%% Asciidoc TeX Macros %%
|
30
|
+
|
31
|
+
% Needed for Asciidoc
|
32
|
+
|
33
|
+
\newcommand{\admonition}[2]{\textbf{#1}: {#2}}
|
34
|
+
\newcommand{\rolered}[1]{ \textcolor{red}{#1} }
|
35
|
+
|
36
|
+
\newtheorem{theorem}{Theorem}
|
37
|
+
\newtheorem{remark}{Remark}
|
38
|
+
\newtheorem{corollary}{Corollary}
|
39
|
+
\newtheorem{problem}{Problem}
|
40
|
+
\newtheorem{definition}{Definition}
|
41
|
+
\newtheorem{example}{Example}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
%% User Macros %%
|
47
|
+
%% Macro definitions
|
48
|
+
%% J. Carlson
|
49
|
+
%% 9/26/2014
|
50
|
+
|
51
|
+
|
52
|
+
%% Blackboard Bold
|
53
|
+
\def\AA{\mathbb{A}}
|
54
|
+
\def\BB{\mathbb{B}}
|
55
|
+
\def\CC{\mathbb{C}}
|
56
|
+
\def\DD{\mathbb{D}}
|
57
|
+
\def\EE{\mathbb{E}}
|
58
|
+
\def\FF{\mathbb{F}}
|
59
|
+
\def\NN{\mathbb{N}}
|
60
|
+
\def\OO\mathbb{{O}}
|
61
|
+
\def\PP{\mathbb{P}}
|
62
|
+
\def\QQ{\mathbb{Q}}
|
63
|
+
\def\RR{\mathbb{R}}
|
64
|
+
\def\ZZ{\mathbb{Z}}
|
65
|
+
\def\ffp{\mathfrak{p}}
|
66
|
+
\def\bold#1{\bf #1}
|
67
|
+
|
68
|
+
%% Mathcal
|
69
|
+
\def\EEE{\mathcal{E}}
|
70
|
+
\def\PPP{\mathcal{P}}
|
71
|
+
\def\UUU{\mathcal{U}}
|
72
|
+
\def\CCC{\mathcal{C}}
|
73
|
+
|
74
|
+
%% Arrows, sets, etc.
|
75
|
+
\newcommand{\commadots}{, \ldots, }
|
76
|
+
\newcommand{\set}[1]{ \{\,#1\, \} }
|
77
|
+
\newcommand{\sett}[2]{ \{\,#1\, \mid\, #2\, \} }
|
78
|
+
\newcommand{\Set}[1]{ \Big\{\,#1\, \Big\} }
|
79
|
+
\newcommand{\Sett}[2]{ \Big\{\,#1\, \Big\vert\; #2\, \Big\} }
|
80
|
+
\newcommand{\mapright}[1]{\ \smash{
|
81
|
+
\mathop{\longrightarrow}\limits^{#1}}\ }
|
82
|
+
\newcommand{\vars}[2]{{#1}_1\commadots{#1}_{#2}}
|
83
|
+
\newcommand{\map}{\longrightarrow}
|
84
|
+
|
85
|
+
%% Math operators
|
86
|
+
\def\rank{\mathop{rank}}
|
87
|
+
\def\dim{\mathop{dim}}
|
88
|
+
\def\height{\mathop{height}}
|
89
|
+
|
90
|
+
\def\ord{\mathop{ord}\nolimits}
|
91
|
+
\def\CP{\CC\PP}
|
92
|
+
|
93
|
+
%% Document appearance
|
94
|
+
\parskip8pt
|
95
|
+
\parindent0pt
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
\input newEnvironments.tex
|
101
|
+
%% Front Matter %%
|
102
|
+
|
103
|
+
\title{Zero}
|
104
|
+
\author{}
|
105
|
+
\date{}
|
106
|
+
|
107
|
+
|
108
|
+
%% Begin Document %%
|
109
|
+
|
110
|
+
\begin{document}
|
111
|
+
\maketitle
|
112
|
+
%% Begin Document Text %%
|
113
|
+
\section{Zero}
|
114
|
+
|
115
|
+
This is a test.
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
\end{document}
|