You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<aclass="previous" href="https://learnbyexample.github.io/2020-favorite-fiction/">‹ Favorite fictional books I read this year</a>
253
253
254
254
255
+
<aclass="next" href="https://learnbyexample.github.io/my-book-writing-experience/">Paying my bills with 'free' ebooks ›</a>
Copy file name to clipboardExpand all lines: customizing-pandoc/index.html
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -199,16 +199,16 @@ <h1 class="post__title">
199
199
<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 <ahref="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 <ahref="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>
200
200
<spanid="continue-reading"></span><br>
201
201
<h2id="installation">Installation<aclass="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>
203
203
<p>I first downloaded <code>deb</code> file from <ahref="https://github.com/jgm/pandoc/releases">pandoc: releases</a> and installed it. Followed by packages needed for <code>pdf</code> generation.</p>
204
204
<prestyle="background-color:#f5f5f5;">
205
-
<code><spanstyle="color:#5597d6;">$ </span><spanstyle="color:#7f8989;"># latest pandoc version as of 21 July 2020 is 2.10
Copy file name to clipboardExpand all lines: index.html
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,27 @@
113
113
114
114
<articleclass="post">
115
115
116
+
<headerclass="post__header">
117
+
<h1class="post__title">
118
+
<ahref="https://learnbyexample.github.io/my-book-writing-experience/">Paying my bills with 'free' ebooks</a>
119
+
</h1>
120
+
<divclass="post__meta">
121
+
<spanclass="post__time">2021-03-03</span>
122
+
123
+
</div>
124
+
</header>
125
+
126
+
<divclass="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>
<ahref="https://learnbyexample.github.io/100-page-python-intro-book-announcement/">100 Page Python Intro book announcement</a>
@@ -206,27 +227,6 @@ <h1 class="post__title">
206
227
</div>
207
228
</article>
208
229
209
-
<articleclass="post">
210
-
211
-
<headerclass="post__header">
212
-
<h1class="post__title">
213
-
<ahref="https://learnbyexample.github.io/substitution-with-ripgrep/">Search and replace tricks with ripgrep</a>
214
-
</h1>
215
-
<divclass="post__meta">
216
-
<spanclass="post__time">2020-09-16</span>
217
-
218
-
</div>
219
-
</header>
220
-
221
-
<divclass="post__summary">
222
-
<p><ahref="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>
0 commit comments