jekyll-latex 1.1.0 → 1.2.0

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
  SHA256:
3
- metadata.gz: 9972783828b4c1385ce4a3bc8ff9eec92229dcb271369addfa5e5c564f377ffa
4
- data.tar.gz: 1d3134540357607e23f7b3b6994c65b01920010597a2663bd1319a9681d18505
3
+ metadata.gz: c28789c031bc7df36bad8a9a0ffcd8d28a66d60a76fdf464e4793282de8ba51c
4
+ data.tar.gz: f6fc3795dcab3f5c39d22c76a5eb4331d04452a363fb91ac0788c9bed818ffff
5
5
  SHA512:
6
- metadata.gz: 3b35ad2017574b1723b28fb7db13d94213734864ea0dff7157ccf10c964643c32e61e721a4f21f70177c4db2bbf2c1a82a7c35db29bfdc032210baa70c33bea6
7
- data.tar.gz: a3ff8b16066aa46574ca6896b7c55d9cec9c6b2e82d0a5d04c8bba161f9db7c83158ce55181bed84dc701a8aa0d03173ee6892ba7813eb9353a5536f3d9bef17
6
+ metadata.gz: 1603d4a53e4982397983d4fb2b489a8ed2d7dc15c7d2fd57cd914ea7dd36f43a9297063115637f5c17920ba73d0b07adcfb76216c287fef105059b2f9b7549c1
7
+ data.tar.gz: dc88156e65a2e913fbb6bbc2e4efb654020861f52ed94384f50aa44c9c927eeaef6bb9739ab09d710a3106b7febd7841e1266dc5c38deba512752d40e99f4880
data/Gemfile CHANGED
@@ -2,15 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in jekyll-latex.gemspec
4
4
  gemspec
5
-
6
- gem "clash", "~> 1.0"
7
-
8
- if ENV["JEKYLL_VERSION"]
9
- if ENV["JEKYLL_VERSION"].eql?("tip")
10
- gem "jekyll", github: "jekyll/jekyll", branch: ENV["JEKYLL_BRANCH"]
11
- else
12
- gem "jekyll", "~> #{ENV["JEKYLL_VERSION"]}"
13
- end
14
- else
15
- gem "jekyll", ">= 2.0"
16
- end
5
+ gem "jekyll", "~> 4"
data/README.md CHANGED
@@ -14,16 +14,22 @@ gem 'jekyll-latex'
14
14
 
15
15
  And then execute:
16
16
 
17
- $ bundle
17
+ ```
18
+ $ bundle
19
+ ```
18
20
 
19
21
  Or install it yourself as:
20
22
 
21
- $ gem install jekyll-latex
23
+ ```
24
+ $ gem install jekyll-latex
25
+ ```
22
26
 
23
27
  Lastly, add it to the plugins section of the `_config.yml` file:
24
28
 
25
- plugins:
26
- - jekyll-latex
29
+ ```
30
+ plugins:
31
+ - jekyll-latex
32
+ ```
27
33
 
28
34
  ## Usage
29
35
 
@@ -39,6 +45,60 @@ categories: jekyll update
39
45
  published: true
40
46
  ---
41
47
 
48
+ This is a \LaTeX\ file.
49
+
50
+ \emph{This} is a \LaTeX\ file.
42
51
 
43
- This is a \emph{LaTeX} file.
52
+ This \emph{is} a \LaTeX\ file.
44
53
  ```
54
+
55
+ ### Mathematics
56
+
57
+ To get mathematics to render, you should include [MathJax](https://www.mathjax.org) on your site. The simplest configuration looks like this and should be put in the `head` of your page:
58
+
59
+ ```html
60
+ <!DOCTYPE html>
61
+ <html>
62
+ .
63
+ .
64
+ .
65
+ <head>
66
+ .
67
+ .
68
+ .
69
+ <script type="text/javascript" async
70
+ src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML">
71
+ </script>
72
+ </head>
73
+ <body>
74
+ .
75
+ .
76
+ .
77
+ </body>
78
+ </html>
79
+ ```
80
+
81
+ MathJax includes many options; here’s one configuration that I like that hides the “processing” message and supports dollar-sign-style math input like `$x$` (note that this means you will have to escape out literal dollar signs with a leading backslash, as in `This costs \$20`):
82
+
83
+ ```html
84
+ <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML">
85
+ MathJax.Hub.Config({
86
+ "HTML-CSS": {
87
+ availableFonts: ["TeX"],
88
+ },
89
+ tex2jax: {
90
+ inlineMath: [['$','$'],["\\(","\\)"]]},
91
+ displayMath: [ ['$$','$$'], ['\[','\]'] ],
92
+ TeX: {
93
+ extensions: ["AMSmath.js", "AMSsymbols.js", "color.js"],
94
+ equationNumbers: {
95
+ autoNumber: "AMS"
96
+ }
97
+ },
98
+ showProcessingMessages: false,
99
+ messageStyle: "none",
100
+ imageFont: null,
101
+ "AssistiveMML": { disabled: true }
102
+ });
103
+ </script>
104
+ ```
data/jekyll-latex.gemspec CHANGED
@@ -17,9 +17,9 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_runtime_dependency "polytexnic", "~> 1.6"
20
+ spec.add_runtime_dependency "polytexnic", "~> 1.8"
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.7"
22
+ spec.add_development_dependency "bundler", "~> 2"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Latex
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2023-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: polytexnic
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.6'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.7'
33
+ version: '2'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.7'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - michael@michaelhartl.com
72
72
  executables: []
@@ -102,7 +102,7 @@ homepage: https://github.com/mhartl/jekyll-latex
102
102
  licenses:
103
103
  - MIT
104
104
  metadata: {}
105
- post_install_message:
105
+ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
@@ -117,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.0.3
121
- signing_key:
120
+ rubygems_version: 3.3.7
121
+ signing_key:
122
122
  specification_version: 4
123
123
  summary: Latex converter for Jekyll.
124
124
  test_files: