softcover 0.9.17 → 0.9.18
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 531f889f5bf63c6fc0c12b8cdb08c24ef92bb36e
|
|
4
|
+
data.tar.gz: dc18ec5efb0c1676a79011c13db4ace245bd22a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 140e2871521c5451ba12c29003aef212d3178c77a8d0a0300ab29a9c0db74f4d6c26b28beef554216aa55957af97b3d8c691f7747c9273a0d180b35afd564442
|
|
7
|
+
data.tar.gz: f0e06518ea8ff6ec2dcf9130ebb2ebaafb8e2ca4586f61ae6202ce49bedbaa8ab478856f256bcb0f035e2643da7413190c18028bc7bdc86d471f6631f9a76a52
|
|
@@ -67,12 +67,14 @@ module Softcover
|
|
|
67
67
|
when :node
|
|
68
68
|
"NodeJS (http://nodejs.org/)"
|
|
69
69
|
when :phantomjs
|
|
70
|
-
"PhantomJS (http://phantomjs.org/)"
|
|
70
|
+
message = "PhantomJS (http://phantomjs.org/)\n"
|
|
71
|
+
message += " ∟ Put bin/phantomjs somewhere on your path,"
|
|
72
|
+
message += " e.g., in /usr/local/bin"
|
|
71
73
|
when :kindlegen
|
|
72
74
|
url = 'http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211'
|
|
73
75
|
message = "KindleGen (#{url})\n"
|
|
74
|
-
message += " ∟ Put the kindlegen executable on your path,
|
|
75
|
-
message += "e.g., in /usr/local/bin"
|
|
76
|
+
message += " ∟ Put the kindlegen executable on your path,"
|
|
77
|
+
message += " e.g., in /usr/local/bin"
|
|
76
78
|
when :calibre
|
|
77
79
|
url = 'http://calibre-ebook.com/'
|
|
78
80
|
message = "Calibre (#{url})\n"
|
|
@@ -13,8 +13,16 @@ generated_polytex/
|
|
|
13
13
|
# Generated HTML files
|
|
14
14
|
html/*.html
|
|
15
15
|
|
|
16
|
-
# Generated EPUB
|
|
17
|
-
epub/
|
|
16
|
+
# Generated EPUB files
|
|
17
|
+
epub/OEBPS/*.html
|
|
18
|
+
epub/OEBPS/*.opf
|
|
19
|
+
epub/OEBPS/*.ncx
|
|
20
|
+
epub/OEBPS/images
|
|
21
|
+
epub/OEBPS/styles/*
|
|
22
|
+
epub/mimetype
|
|
23
|
+
epub/META-INF/*
|
|
24
|
+
# Keep EPUB CSS customizations
|
|
25
|
+
!epub/OEBPS/styles/custom_epub.css
|
|
18
26
|
|
|
19
27
|
# Generated ebooks
|
|
20
28
|
ebooks/
|
|
@@ -70,8 +70,6 @@
|
|
|
70
70
|
{metacode}{Verbatim}{fontsize=\relsize{-2.5},fontseries=b}
|
|
71
71
|
% Use a nice font in code environments.
|
|
72
72
|
\usepackage[scaled=0.92]{helvet}
|
|
73
|
-
% Fix quotes in code environments
|
|
74
|
-
\usepackage{latex_styles/upquote}
|
|
75
73
|
|
|
76
74
|
% Filesystem paths
|
|
77
75
|
\newcommand{\filepath}[1]{\textit{\texttt{\small #1}}}
|
|
@@ -128,7 +126,8 @@
|
|
|
128
126
|
|
|
129
127
|
% Additional commands
|
|
130
128
|
\newcommand{\heading}[1]{\textbf{#1}}
|
|
131
|
-
\newcommand{\
|
|
129
|
+
\newcommand{\kodesize}{\smaller[0.75]}
|
|
130
|
+
\newcommand{\kode}[1]{\textcolor{darkgreen}{\textbf{\texttt{\kodesize #1}}}}
|
|
132
131
|
|
|
133
132
|
% Subtitle command
|
|
134
133
|
\usepackage{titling}
|
|
@@ -149,6 +148,19 @@
|
|
|
149
148
|
|
|
150
149
|
\usepackage{latex_styles/language_customization}
|
|
151
150
|
|
|
151
|
+
% Fix quotes in code environments.
|
|
152
|
+
% Provides "upquote.sty" functionality compatible with the latest Pygments.
|
|
153
|
+
\RequirePackage{textcomp}
|
|
154
|
+
\begingroup
|
|
155
|
+
\catcode`'=\active
|
|
156
|
+
\catcode``=\active
|
|
157
|
+
\g@addto@macro\@noligs
|
|
158
|
+
{\let`\textasciigrave
|
|
159
|
+
\let'\textquotesingle
|
|
160
|
+
\let\PYZsq\textquotesingle}
|
|
161
|
+
\endgroup
|
|
162
|
+
\endinput
|
|
163
|
+
|
|
152
164
|
% Add custom commands.
|
|
153
165
|
\usepackage{latex_styles/custom}
|
|
154
166
|
\usepackage{latex_styles/custom_pdf}
|
data/lib/softcover/version.rb
CHANGED
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.9.
|
|
4
|
+
version: 0.9.18
|
|
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: 2014-05-
|
|
12
|
+
date: 2014-05-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: polytexnic
|
|
@@ -1003,7 +1003,6 @@ files:
|
|
|
1003
1003
|
- lib/softcover/template/latex_styles/framed.sty
|
|
1004
1004
|
- lib/softcover/template/latex_styles/language_customization.sty
|
|
1005
1005
|
- lib/softcover/template/latex_styles/softcover.sty
|
|
1006
|
-
- lib/softcover/template/latex_styles/upquote.sty
|
|
1007
1006
|
- lib/softcover/template/media/screencasts/.gitkeep
|
|
1008
1007
|
- lib/softcover/uploader.rb
|
|
1009
1008
|
- lib/softcover/utils.rb
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
|
|
2
|
-
\ProvidesPackage{upquote}[2003/08/11 v1.1 Covington's upright-quote
|
|
3
|
-
modification to verbatim and verb]
|
|
4
|
-
|
|
5
|
-
%% Copyright 2000 Michael A. Covington.
|
|
6
|
-
%% Copyright 2003 Michael A. Covington, Frank Mittelbach.
|
|
7
|
-
%%
|
|
8
|
-
%% It may be distributed and/or modified under the
|
|
9
|
-
%% conditions of the LaTeX Project Public License, either version 1.2
|
|
10
|
-
%% of this license or (at your option) any later version.
|
|
11
|
-
%% The latest version of this license is in
|
|
12
|
-
%% http://www.latex-project.org/lppl.txt
|
|
13
|
-
%% and version 1.2 or later is part of all distributions of LaTeX
|
|
14
|
-
%% version 1999/12/01 or later.
|
|
15
|
-
%%
|
|
16
|
-
|
|
17
|
-
% Problem: Computer Modern Typewriter is the best font for program listings,
|
|
18
|
-
% *but* it prints ` ' as bent opening and closing single quotes.
|
|
19
|
-
% Other fonts, and most programming languages, print ` as a grave
|
|
20
|
-
% accent and ' upright; ' is used both to open and to close quoted
|
|
21
|
-
% strings.
|
|
22
|
-
|
|
23
|
-
% See also M. Covington, "Computer Languages in Type," Journal of
|
|
24
|
-
% Scholarly Publishing 26.1:34-41 (1994).
|
|
25
|
-
|
|
26
|
-
% Solution: This package switches the typewriter font to Computer Modern
|
|
27
|
-
% Typewriter (regardless of other fonts in use, so long as this
|
|
28
|
-
% package is called afterward) and modifies the behavior of
|
|
29
|
-
% verbatim, verbatim*, verb, and verb* to print ` ' the desired way.
|
|
30
|
-
% It does not affect \tt, \texttt, etc.
|
|
31
|
-
|
|
32
|
-
% Author: Michael A. Covington
|
|
33
|
-
% Artificial Intelligence Center
|
|
34
|
-
% The University of Georgia
|
|
35
|
-
% http://www.ai.uga.edu/~mc
|
|
36
|
-
%
|
|
37
|
-
% and
|
|
38
|
-
%
|
|
39
|
-
% Covington Innovations (Consulting and Typesetting)
|
|
40
|
-
% http://www.CovingtonInnovations.com
|
|
41
|
-
|
|
42
|
-
% The modification is done by adding instructions to \@noligs,
|
|
43
|
-
% which is called by verbatim and verb in order to turn the
|
|
44
|
-
% characters ` < > , ' - into active characters that merely
|
|
45
|
-
% print themselves rather than activating ligatures.
|
|
46
|
-
%
|
|
47
|
-
% What is added is code to redefine ` as grave and ' as upright single quote.
|
|
48
|
-
%
|
|
49
|
-
|
|
50
|
-
% Bug fix, 2000/12/11: previously, '0 (or ' and any digit) would print as a
|
|
51
|
-
% nonexistent character. (The reason: \char13 or \char18 was combining with
|
|
52
|
-
% the digit to make \char130, etc.) Fixed by adding curly brackets.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
%% Rewritten by FMi 2003/06/19
|
|
57
|
-
%
|
|
58
|
-
%
|
|
59
|
-
% Use textcomp official chars so that change works in various
|
|
60
|
-
% encodings
|
|
61
|
-
%
|
|
62
|
-
% Extend \@noligs (this also works with the latest listings package
|
|
63
|
-
% that recognizes that the package was loaded)
|
|
64
|
-
|
|
65
|
-
\RequirePackage{textcomp}
|
|
66
|
-
|
|
67
|
-
\begingroup
|
|
68
|
-
\catcode`'=\active
|
|
69
|
-
\catcode``=\active
|
|
70
|
-
\g@addto@macro\@noligs
|
|
71
|
-
{\let`\textasciigrave
|
|
72
|
-
\let'\textquotesingle}
|
|
73
|
-
\endgroup
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
\endinput
|