Skip to content

Commit a13bd83

Browse files
added post on book writing experience
1 parent 44ff672 commit a13bd83

File tree

22 files changed

+965
-62
lines changed

22 files changed

+965
-62
lines changed

100-page-python-intro-book-announcement/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ <h2 id="feedback">Feedback<a class="zola-anchor" href="#feedback" aria-label="An
252252
<a class="previous" href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;2020-favorite-fiction&#x2F;">‹ Favorite fictional books I read this year</a>
253253

254254

255+
<a class="next" href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;my-book-writing-experience&#x2F;">Paying my bills with &#x27;free&#x27; ebooks ›</a>
256+
255257

256258

257259
</div>

atom.xml

Lines changed: 152 additions & 7 deletions
Large diffs are not rendered by default.

customizing-pandoc/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,16 @@ <h1 class="post__title">
199199
<p>Either you've already heard of <code>pandoc</code> or if you have searched online for <code>markdown</code> to <code>pdf</code> or similar, you are sure to come across <code>pandoc</code>. This tutorial will help you use <code>pandoc</code> to generate <code>pdf</code> and <code>epub</code> from a <a href="https://github.github.com/gfm/">GitHub style markdown</a> file. The main motivation for this blog post is to highlight what customizations I did to generate <code>pdf</code> and <code>epub</code> versions for <a href="https://learnbyexample.github.io/books/">self-publishing my ebooks</a>. It wasn't easy to arrive at the set-up I ended up with, so I hope this will be useful for those looking to use <code>pandoc</code> to generate <code>pdf</code> and <code>epub</code> formats. This guide is specifically aimed at technical books that has code snippets.</p>
200200
<span id="continue-reading"></span><br>
201201
<h2 id="installation">Installation<a class="zola-anchor" href="#installation" aria-label="Anchor link for: installation">🔗</a></h2>
202-
<p>I use Ubuntu, as far as I remember, the below steps are enough to work for the demos in this tutorial. If you get an error or warning, search that issue online and you'll likely find what else has to be installed.</p>
202+
<p>If you use a debian based distro like Ubuntu, the below steps are enough for the demos in this tutorial. If you get an error or warning, search that issue online and you'll likely find what else has to be installed.</p>
203203
<p>I first downloaded <code>deb</code> file from <a href="https://github.com/jgm/pandoc/releases">pandoc: releases</a> and installed it. Followed by packages needed for <code>pdf</code> generation.</p>
204204
<pre style="background-color:#f5f5f5;">
205-
<code><span style="color:#5597d6;">$ </span><span style="color:#7f8989;"># latest pandoc version as of 21 July 2020 is 2.10
206-
</span><span style="color:#5597d6;">$</span><span style="color:#1f1f1f;"> sudo gdebi </span><span style="color:#5597d6;">~</span><span style="color:#1f1f1f;">/Downloads/pandoc-2.10-1-amd64.deb
205+
<code><span style="color:#5597d6;">$ </span><span style="color:#7f8989;"># latest pandoc version as of 24 Jan 2021 is 2.11.4
206+
</span><span style="color:#5597d6;">$</span><span style="color:#1f1f1f;"> sudo gdebi </span><span style="color:#5597d6;">~</span><span style="color:#1f1f1f;">/Downloads/pandoc-2.11.4-1-amd64.deb
207207

208-
</span><span style="color:#5597d6;">$ </span><span style="color:#7f8989;"># note that download size is 750+ MB
208+
</span><span style="color:#5597d6;">$ </span><span style="color:#7f8989;"># note that download size is hundreds of MB
209209
</span><span style="color:#5597d6;">$</span><span style="color:#1f1f1f;"> sudo apt install texlive-xetex
210210
</span><span style="color:#5597d6;">$</span><span style="color:#1f1f1f;"> sudo apt install librsvg2-bin
211-
</span><span style="color:#5597d6;">$</span><span style="color:#1f1f1f;"> sudo apt install texlive-math-extra
211+
</span><span style="color:#5597d6;">$</span><span style="color:#1f1f1f;"> sudo apt install texlive-science
212212
</span></code></pre>
213213
<p>For more details and guide for other OS, refer to <a href="https://pandoc.org/installing.html">pandoc: installation</a></p>
214214
<br>

images/books/book_writing.jpg

78.4 KB
Loading

images/books/gumroad_price_ui.png

2.73 KB
Loading

images/books/leanpub_price_ui.png

5.85 KB
Loading

images/books/roller_coaster.jpg

47.6 KB
Loading

index.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,27 @@
113113

114114
<article class="post">
115115

116+
<header class="post__header">
117+
<h1 class="post__title">
118+
<a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;my-book-writing-experience&#x2F;">Paying my bills with &#x27;free&#x27; ebooks</a>
119+
</h1>
120+
<div class="post__meta">
121+
<span class="post__time">2021-03-03</span>
122+
123+
</div>
124+
</header>
125+
126+
<div class="post__summary">
127+
<p><strong>TL;DR</strong>: Small victories are more precious when you have nothing. Instead of burning through my savings, I'm now adding to it. The relief is priceless.</p>
128+
129+
</div>
130+
<div class="read-more">
131+
<a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;my-book-writing-experience&#x2F;">Read more...</a>
132+
</div>
133+
</article>
134+
135+
<article class="post">
136+
116137
<header class="post__header">
117138
<h1 class="post__title">
118139
<a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;100-page-python-intro-book-announcement&#x2F;">100 Page Python Intro book announcement</a>
@@ -206,27 +227,6 @@ <h1 class="post__title">
206227
</div>
207228
</article>
208229

209-
<article class="post">
210-
211-
<header class="post__header">
212-
<h1 class="post__title">
213-
<a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;substitution-with-ripgrep&#x2F;">Search and replace tricks with ripgrep</a>
214-
</h1>
215-
<div class="post__meta">
216-
<span class="post__time">2020-09-16</span>
217-
218-
</div>
219-
</header>
220-
221-
<div class="post__summary">
222-
<p><a href="https://github.com/BurntSushi/ripgrep">ripgrep</a> (command name <code>rg</code>) is a <code>grep</code> tool, but supports search and replace as well. <code>rg</code> is far from a like-for-like alternate for <code>sed</code>, but it has nifty features like multiline replacement, fixed string matching, <code>PCRE2</code> support, etc. This post gives an overview of syntax for substitution and highlights some of the cases where <code>rg</code> is a handy replacement for <code>sed</code>.</p>
223-
224-
</div>
225-
<div class="read-more">
226-
<a href="https:&#x2F;&#x2F;learnbyexample.github.io&#x2F;substitution-with-ripgrep&#x2F;">Read more...</a>
227-
</div>
228-
</article>
229-
230230
</div>
231231
<nav class="pagination">
232232

0 commit comments

Comments
 (0)