softcover 1.10.0 → 1.10.2

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: c38394c82dcaf6fdad6ef0b02168cba853b661c262217b1d822fa725d3c77dbc
4
- data.tar.gz: 5c0fd7fbec4e582bfcd5f2737ce8aa927defb6158968e67de59b38ab5aee3e32
3
+ metadata.gz: fc7e7166724ae2545181d3bf10c17d257d6bdd1e8116a51fe736ad489e46dd81
4
+ data.tar.gz: 01bf5edefca08ae80ae6bf958fd7035e2902f9f64f476e46b8af389ad72fc566
5
5
  SHA512:
6
- metadata.gz: 92ff5ae3cd49c6809295481d26e32fb4b80da3dd9e529b85294986874baabaaddb69645e0ae8cd8551a75f98fbecfeaa7cecc9627024c38a5c4c921e7a308520
7
- data.tar.gz: 50a4b9f61f45afb6c285a54c48f716f324f3ffe61306f37fb37cd11bd7770c28e5a5031348e566c72ea977a8009d2e585ad7d528ff5997468973cb4a4bbcaccb
6
+ metadata.gz: d2d10dfe7c1603d8ff3a441c76db4522f8d756469e5817ca80890ef33a219385772f6c58044bc93974e2a9a02c2d24e7766b8a20b9033aa61eb7e2eee67b9937
7
+ data.tar.gz: e0dab2a16b0d9e79b6ab9d83bbee29675be7e6b217a1ecfd199d045f5993a4282c5c4e659e18f19feab85dcdc8bb85e13ca129da2e8bf01fd50ef2f38fe79d8d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- softcover (1.10.0)
4
+ softcover (1.10.2)
5
5
  activesupport (= 4.2.11.3)
6
6
  async_sinatra (= 1.1.0)
7
7
  coffee-script (= 2.4.1)
@@ -57,7 +57,7 @@ GEM
57
57
  domain_name (0.5.20190701)
58
58
  unf (>= 0.0.5, < 1.0.0)
59
59
  eventmachine (1.2.7)
60
- execjs (2.8.1)
60
+ execjs (2.9.0)
61
61
  ffi (1.15.5)
62
62
  hashdiff (1.0.1)
63
63
  http-accept (1.7.0)
@@ -76,14 +76,14 @@ GEM
76
76
  mime-types (3.5.1)
77
77
  mime-types-data (~> 3.2015)
78
78
  mime-types-data (3.2023.0808)
79
- minitest (5.19.0)
79
+ minitest (5.20.0)
80
80
  msgpack (1.2.10)
81
81
  netrc (0.11.0)
82
82
  nokogiri (1.15.2-arm64-darwin)
83
83
  racc (~> 1.4)
84
84
  nokogiri (1.15.2-x86_64-darwin)
85
85
  racc (~> 1.4)
86
- polytexnic (1.10.0)
86
+ polytexnic (1.10.2)
87
87
  json (= 2.3.1)
88
88
  kramdown (= 2.4.0)
89
89
  msgpack (= 1.2.10)
@@ -144,7 +144,7 @@ GEM
144
144
  rack (~> 1.0)
145
145
  thor (1.2.2)
146
146
  thread_safe (0.3.6)
147
- tilt (2.2.0)
147
+ tilt (2.3.0)
148
148
  tins (1.32.1)
149
149
  sync
150
150
  tzinfo (1.2.11)
@@ -518,10 +518,8 @@ body #book {
518
518
  padding-bottom: 0.5em;
519
519
  padding-top: 0.5em;
520
520
  }
521
- .proof p:first-child:before {
522
- content: "Proof. ";
523
- font-style: italic;
524
- margin-right: 0.2em;
521
+ .proof em.proof_label {
522
+ margin-right: 0.3em;
525
523
  }
526
524
  .proof p:last-child:after {
527
525
  /* U+220E ∎ END OF PROOF */
@@ -217,10 +217,26 @@
217
217
  {Times New Roman}
218
218
  \setmonofont{Courier}
219
219
 
220
- % Restore the default "theorem" theorem style.
220
+ \theoremstyle{plain}
221
+ \newtheorem{theorem}{Theorem}[section]
222
+ \newtheorem{lemma}[theorem]{Lemma}
223
+ \newtheorem{corollary}[theorem]{Corollary}
224
+ \newtheorem{proposition}[theorem]{Proposition}
225
+ \newtheorem{conjecture}[theorem]{Conjecture}
226
+ \theoremstyle{definition}
227
+ \newtheorem{definition}[theorem]{Definition}
228
+ \newtheorem{problem}[theorem]{Problem}
229
+ \newtheorem{example}[theorem]{Example}
230
+ \newtheorem{exercise}[theorem]{Exercise}
231
+ \theoremstyle{remark}
232
+ \newtheorem{axiom}[theorem]{Axiom}
233
+ \newtheorem{remark}[theorem]{Remark}
234
+ \newtheorem{claim}[theorem]{Claim}
235
+
236
+ % Restore the default "plain" theorem style.
221
237
  % This can still be overriden in custom style files
222
238
  % or in the main file.
223
- \theoremstyle{theorem}
239
+ \theoremstyle{plain}
224
240
 
225
241
  % Include custom commands.
226
242
  \usepackage{latex_styles/custom}
@@ -518,10 +518,8 @@ body #book {
518
518
  padding-bottom: 0.5em;
519
519
  padding-top: 0.5em;
520
520
  }
521
- .proof p:first-child:before {
522
- content: "Proof. ";
523
- font-style: italic;
524
- margin-right: 0.2em;
521
+ .proof em.proof_label {
522
+ margin-right: 0.3em;
525
523
  }
526
524
  .proof p:last-child:after {
527
525
  /* U+220E ∎ END OF PROOF */
@@ -233,7 +233,7 @@
233
233
  \newtheorem{remark}[theorem]{Remark}
234
234
  \newtheorem{claim}[theorem]{Claim}
235
235
 
236
- % Restore the default "theorem" theorem style.
236
+ % Restore the default "plain" theorem style.
237
237
  % This can still be overriden in custom style files
238
238
  % or in the main file.
239
239
  \theoremstyle{plain}
@@ -149,9 +149,11 @@ module Softcover
149
149
 
150
150
  # Copies the style file to ensure it's always fresh.
151
151
  def copy_polytexnic_sty(options)
152
+ opts = options.dup
153
+ opts[:article] = true if article?
152
154
  softcover_sty = File.join(Softcover::Directories::STYLES,
153
155
  'softcover.sty')
154
- source_sty = File.join(Softcover::Utils.template_dir(options),
156
+ source_sty = File.join(Softcover::Utils.template_dir(opts),
155
157
  softcover_sty)
156
158
  FileUtils.cp source_sty, softcover_sty
157
159
  end
@@ -1,3 +1,3 @@
1
1
  module Softcover
2
- VERSION = "1.10.0"
2
+ VERSION = "1.10.2"
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: 1.10.0
4
+ version: 1.10.2
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: 2023-09-06 00:00:00.000000000 Z
12
+ date: 2023-09-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: polytexnic