softcover 0.7.2 → 0.7.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0e79a3c86ec047f330161c816a9a79dc88a1404
4
- data.tar.gz: a8ecbcbac8f49cb65cac301baa31ac589c48ac11
3
+ metadata.gz: 6ce513334c4adcf117e5032746189b82b381d78a
4
+ data.tar.gz: 38c1806030b94ace0b42e8ae6c8043f9447ac9b3
5
5
  SHA512:
6
- metadata.gz: baa75183612376a2624f412239b13f943f4d75f607f7227c181b66d696481330ea9744673fa87d659a71bed4abe93c53343da3b1de5e97d6d71361ca9cc1bd22
7
- data.tar.gz: 9ecd20e1f236e60b207934ff967011163ea37b2c370354956a002dbd6f2b1fa73363fec6b1b75ecddfeae779c1907d7cfa41bee5561125035b9d44e5822b2572
6
+ metadata.gz: fa051925adb46e6a9bf837d3769f846c99107231e028eb5ccf5ca17b6399f4344153553e79c379a0c013c600ed81692be71e58d4d197fe6fc8bfccef4f8cc278
7
+ data.tar.gz: 93da1d391cea203e908b176951166ce6ffd2e7a9569c2618d9237297fb09d905d314666f814f6174704701cd9524fa619cac059f6bbe9b31df55ff5fb9efffa9
@@ -4,6 +4,8 @@ module Softcover
4
4
  # Returns the MathJax configuration.
5
5
  def self.config(options = {})
6
6
  chapter_number = if options[:chapter_number]
7
+ # Call .inspect.inspect to escape the chapter number
8
+ # code for interpolation.
7
9
  options[:chapter_number].inspect.inspect
8
10
  else
9
11
  '#{chapter_number}'
@@ -12,22 +12,23 @@ module Softcover
12
12
 
13
13
  sanitize_options = {
14
14
  elements: %w{div span p a ul ol li h1 h2 h3 h4
15
- pre em sup table tbody thead tr td img},
15
+ pre em sup table tbody thead tr td img code},
16
16
  remove_contents: %w{script},
17
17
  attributes: {
18
18
  'div' => %w{id class data-tralics-id data-number data-chapter},
19
- 'a' => %w{id class href},
20
- 'span'=> %w{id class style},
21
- 'ol' => %w{id class},
22
- 'ul' => %w{id class},
23
- 'li' => %w{id class},
24
- 'sup' => %w{id class},
25
- 'h1' => %w{id class},
26
- 'h2' => %w{id class},
27
- 'h3' => %w{id class},
28
- 'h4' => %w{id class},
29
- 'img' => %w{id class src alt},
30
- 'em' => %w{id class}
19
+ 'a' => %w{id class href},
20
+ 'span' => %w{id class style},
21
+ 'ol' => %w{id class},
22
+ 'ul' => %w{id class},
23
+ 'li' => %w{id class},
24
+ 'sup' => %w{id class},
25
+ 'h1' => %w{id class},
26
+ 'h2' => %w{id class},
27
+ 'h3' => %w{id class},
28
+ 'h4' => %w{id class},
29
+ 'img' => %w{id class src alt},
30
+ 'em' => %w{id class},
31
+ 'code' => %w{id class}
31
32
  },
32
33
  protocols: {
33
34
  'a' => {'href' => [:relative, 'http', 'https', 'mailto']},
@@ -193,6 +193,8 @@ body #book {
193
193
  }
194
194
 
195
195
  #book .caption {
196
+ font-size: 0.85em;
197
+ font-style: italic;
196
198
  text-align: center;
197
199
  margin-bottom: 3em;
198
200
  margin-top: 1em;
@@ -273,7 +275,7 @@ body #book {
273
275
 
274
276
  #book .footnotes {
275
277
  border-top: 1px solid black;
276
- margin-top: 1em;
278
+ margin-top: 5em;
277
279
  font-size: 90%;
278
280
  }
279
281
 
@@ -105,6 +105,9 @@
105
105
  \@setminipage}%
106
106
  }{\par\unskip\@minipagefalse\endMakeFramed}
107
107
 
108
+ % Caption styling
109
+ \usepackage[font=it]{caption}
110
+
108
111
  % Codelistings
109
112
  \newcounter{codelisting}
110
113
  \numberwithin{codelisting}{chapter}
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "0.7.2"
2
+ VERSION = "0.7.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softcover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-04 00:00:00.000000000 Z
12
+ date: 2013-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic
@@ -1029,7 +1029,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1029
1029
  version: '0'
1030
1030
  requirements: []
1031
1031
  rubyforge_project:
1032
- rubygems_version: 2.0.3
1032
+ rubygems_version: 2.0.14
1033
1033
  signing_key:
1034
1034
  specification_version: 4
1035
1035
  summary: A typesetting system for technical authors