-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New project layout. Optimize mobi. Switch calibre for kindlegen.
- Loading branch information
1 parent
35e1f82
commit 6bda183
Showing
15 changed files
with
189 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
default : index.html ebooks/New-Introductory-Lectures-On-Psycho-Analysis.mobi | ||
|
||
index.html : New-Introductory-Lectures-On-Psycho-Analysis.md styles/index.css styles/html.css template.t | ||
pandoc \ | ||
-s \ | ||
--section-divs \ | ||
-o index.html \ | ||
-c styles/index.css \ | ||
-c styles/html.css \ | ||
--template template.t \ | ||
New-Introductory-Lectures-On-Psycho-Analysis.md | ||
|
||
styles/ebook.css : styles/index.css styles/epub.css | ||
cat styles/index.css > styles/ebook.css && cat styles/epub.css >> styles/ebook.css | ||
|
||
ebooks/New-Introductory-Lectures-On-Psycho-Analysis.epub : New-Introductory-Lectures-On-Psycho-Analysis.md styles/index.css styles/ebook.css template.t cover.png | ||
pandoc \ | ||
-s \ | ||
--section-divs \ | ||
--toc-depth=1 \ | ||
--epub-cover-image cover.png \ | ||
-o ebooks/New-Introductory-Lectures-On-Psycho-Analysis.epub \ | ||
-c styles/ebook.css \ | ||
--epub-embed-font 'fonts/*' \ | ||
--template template.t \ | ||
-t epub3 \ | ||
New-Introductory-Lectures-On-Psycho-Analysis.md | ||
|
||
ebooks/New-Introductory-Lectures-On-Psycho-Analysis.mobi : ebooks/New-Introductory-Lectures-On-Psycho-Analysis.epub | ||
kindlegen ebooks/New-Introductory-Lectures-On-Psycho-Analysis.epub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
@charset "UTF-8"; | ||
|
||
@font-face | ||
{ font-family: libertine; | ||
src: url(../fonts/LinLibertine_R.woff); } | ||
|
||
@font-face | ||
{ font-family: libertine; | ||
font-style: italic; | ||
src: url(../fonts/LinLibertine_RI.woff); } | ||
|
||
@font-face | ||
{ font-family: libertine; | ||
font-weight: bold; | ||
src: url(../fonts/LinLibertine_RB.woff); } | ||
|
||
@font-face | ||
{ font-family: libertine; | ||
font-weight: bold; | ||
font-style: italic; | ||
src: url(../fonts/LinLibertine_RBI.woff); } | ||
|
||
html | ||
{ font-size: 0.7rem; } | ||
|
||
body | ||
{ padding: 1rem; | ||
font-family: libertine, serif; } | ||
|
||
@media (min-width: 34rem) | ||
{ html | ||
{ font-size: 1rem; } | ||
|
||
body | ||
{ width: 34rem; | ||
margin: 0 auto; } } | ||
|
||
h1 | ||
{ font-weight: 400; | ||
margin-top: 3rem; | ||
margin-bottom: 1.5rem; | ||
font-size: 3rem; | ||
line-height: 1; | ||
text-align: center; | ||
text-transform: uppercase; } | ||
|
||
h2, p.author, p.publisher | ||
{ font-weight: 400; | ||
margin-top: 1.5rem; | ||
margin-bottom: 1rem; | ||
font-size: 1.5rem; | ||
line-height: 1; | ||
text-align: center; | ||
text-transform: uppercase; | ||
text-indent: 0; } | ||
|
||
p.company, p.copyright, p.printed, p.digitised | ||
{ font-weight: 600; | ||
margin-top: 1rem; | ||
margin-bottom: 0.5rem; | ||
font-size: 1rem; | ||
line-height: 1; | ||
text-align: center; | ||
text-transform: uppercase; | ||
text-indent: 0; } | ||
|
||
p | ||
{ font-size: 1.2rem; | ||
line-height: 1.4rem; | ||
margin-bottom: 0; | ||
margin-top: 0; | ||
text-align: justify; | ||
text-indent: 1rem; } | ||
|
||
blockquote | ||
{ margin: 3rem 0; | ||
padding-left: 3rem; | ||
padding-right: 3rem; | ||
line-height: 1.4rem; | ||
font-size: 1.2rem; } | ||
|
||
blockquote footer | ||
{ text-align: right; } | ||
|
||
ol, ul | ||
{ padding-left: 1rem; | ||
text-align: left; } | ||
|
||
ul | ||
{ list-style: none; } | ||
|
||
li | ||
{ margin: 1rem 0; } | ||
|
||
a:link, a:visited | ||
{ color: inherit; } | ||
|
||
a:link | ||
{ text-decoration: none; } | ||
|
||
img | ||
{ margin: 2rem auto; | ||
display: block; | ||
width: 24rem; } | ||
|
||
p.sig | ||
{ text-align: right; | ||
text-transform: uppercase; | ||
font-size: 1.5rem; } | ||
|
||
span.smallcaps | ||
{ font-weight: 600; } | ||
|
||
span.normal | ||
{ text-transform: none; } | ||
|
||
section p:first-of-type, p.date | ||
{ text-indent: 0; } | ||
|
||
section#new-introductory-lectures-on-psycho-analysis > h1:first-of-type | ||
{ display: none; } | ||
|
||
.footnote-ref | ||
{ font-size: small; | ||
vertical-align: text-top; } | ||
|
||
sup | ||
{ line-height: 0; } | ||
.initial p:first-letter | ||
{ margin: -2rem 0.5rem -2rem 0; } | ||
|
||
.initial-up | ||
{ margin: -1.4rem 0; } | ||
|
||
.footnote-ref | ||
{ font-size: 0.7rem; | ||
vertical-align: text-top; | ||
line-height: 0.7rem; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.initial p:first-letter | ||
{ margin: -2rem 0.5rem -2rem 0; } | ||
|
||
.initial-up | ||
{ margin: -1.4rem 0; } | ||
|
||
.footnote-ref | ||
{ font-size: 0.7rem; | ||
vertical-align: text-top; | ||
line-height: 0.7rem; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
section.level1 | ||
{ margin-bottom: 20rem; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters