|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <feed xmlns="http://www.w3.org/2005/Atom">
|
3 | 3 | <title>Through the Looking-Glass</title>
|
4 |
| - <subtitle>Mort's random homepage.</subtitle> |
| 4 | + <subtitle>Mort’s random homepage.</subtitle> |
5 | 5 | <link rel="alternate" type="text/html" href="https://www.soimort.org/" />
|
6 | 6 | <link rel="self" type="application/atom+xml" href="https://www.soimort.org/feed.atom" />
|
7 | 7 | <id>tag:www.soimort.org,2017:/</id>
|
8 |
| - <updated>2017-02-06T00:00:00+01:00</updated> |
| 8 | + <updated>2017-03-06T00:00:00+01:00</updated> |
9 | 9 | <author>
|
10 | 10 | <name>Mort Yao</name>
|
11 | 11 |
|
12 | 12 | </author>
|
13 | 13 |
|
| 14 | + <entry> |
| 15 | + <title>What I Wish I Knew When Learning Boolean Circuits</title> |
| 16 | + <link rel="alternate" type="text/html" href="https://blog.soimort.org/comp/c/boolean-circuit/" /> |
| 17 | + <id>tag:www.soimort.org,2017:/posts/170306</id> |
| 18 | + <published>2017-03-06T00:00:00+01:00</published> |
| 19 | + <updated>2017-03-06T00:00:00+01:00</updated> |
| 20 | + <author> |
| 21 | + <name>Mort Yao</name> |
| 22 | + </author> |
| 23 | + <category term="blog" /> |
| 24 | + <content type="html" xml:lang="en" xml:base="https://www.soimort.org/"> |
| 25 | +<![CDATA[ |
| 26 | +<p style="text-align:center !important;text-indent:0 !important">test</p> |
| 27 | +
|
| 28 | +]]> |
| 29 | + </content> |
| 30 | + </entry> |
14 | 31 | <entry>
|
15 | 32 | <title>The Fundamental Justification</title>
|
16 | 33 | <link rel="alternate" type="text/html" href="https://www.soimort.org/mst/5" />
|
@@ -543,8 +560,8 @@ Notice that
|
543 | 560 | <tr class="header">
|
544 | 561 | <th style="text-align: center;"><span class="math inline">\(k\)</span>th coin flip</th>
|
545 | 562 | <th style="text-align: center;"><span class="math inline">\(\Pr[\text{Tails}]\)</span></th>
|
546 |
| -<th style="text-align: center;">Stake ($)</th> |
547 |
| -<th style="text-align: center;">Expected payoff ($)</th> |
| 563 | +<th style="text-align: center;">Stake (<span class="math inline">\() | Expected payoff (\)</span>)</th> |
| 564 | +<th style="text-align: center;"></th> |
548 | 565 | </tr>
|
549 | 566 | </thead>
|
550 | 567 | <tbody>
|
@@ -729,21 +746,21 @@ Notice that
|
729 | 746 | <p>I wouldn’t claim that I know the best practice of using Pandoc, but there’s such a common idiom that cannot be overstressed: <em>Separate presentation and content!</em></p>
|
730 | 747 | <p>In the YAML front matter of <code>src.md</code> (the main Markdown file you’re writing), put only things that matter to your potential readers:</p>
|
731 | 748 | <div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="ot">---</span>
|
732 |
| -<span class="fu">title:</span> Boilerplating Pandoc for Academic Writing |
733 |
| -<span class="fu">subtitle:</span> or How I Learned to Stop Typesetting and Concentrate on the Math |
734 |
| -<span class="fu">author:</span> Mort Yao |
735 |
| -<span class="fu">date:</span> 17 November 2016 |
736 |
| -<span class="fu">abstract:</span> | |
| 749 | +<span class="fu">title:</span><span class="at"> Boilerplating Pandoc for Academic Writing</span> |
| 750 | +<span class="fu">subtitle:</span><span class="at"> or How I Learned to Stop Typesetting and Concentrate on the Math</span> |
| 751 | +<span class="fu">author:</span><span class="at"> Mort Yao</span> |
| 752 | +<span class="fu">date:</span><span class="at"> 17 November 2016</span> |
| 753 | +<span class="fu">abstract:</span><span class="at"> |</span> |
737 | 754 | Lorem ipsum dolor sit amet, consectetur adipiscing elit,
|
738 | 755 | sed do eiusmod tempor incididunt ut labore et dolore magna
|
739 | 756 | aliqua. Ut enim ad minim veniam, quis nostrud exercitation
|
740 | 757 | ullamco laboris nisi ut aliquip ex ea commodo consequat.
|
741 | 758 | <span class="ot">---</span></code></pre></div>
|
742 | 759 | <p>And in a separate YAML file (let’s call it <code>default.yaml</code>), here goes the formatting stuff:</p>
|
743 | 760 | <div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="ot">---</span>
|
744 |
| -<span class="fu">geometry:</span> margin=1.5in |
745 |
| -<span class="fu">indent:</span> true |
746 |
| -<span class="fu">header-includes:</span> | |
| 761 | +<span class="fu">geometry:</span><span class="at"> margin=1.5in</span> |
| 762 | +<span class="fu">indent:</span><span class="at"> true</span> |
| 763 | +<span class="fu">header-includes:</span><span class="at"> |</span> |
747 | 764 | \usepackage<span class="kw">{</span>tcolorbox<span class="kw">}</span>
|
748 | 765 | \newcommand\qed<span class="kw">{</span>\hfill\rule{1em<span class="kw">}{</span>1em<span class="kw">}</span>}
|
749 | 766 | <span class="ot">---</span></code></pre></div>
|
@@ -790,8 +807,8 @@ Notice that
|
790 | 807 | </ul></li>
|
791 | 808 | </ul>
|
792 | 809 | <p>As part of the YAML metadata: (Assume you have <code>ieee.csl</code> and <code>references.bib</code>)</p>
|
793 |
| -<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="fu">csl:</span> ieee.csl |
794 |
| -<span class="fu">bibliography:</span> references.bib</code></pre></div> |
| 810 | +<div class="sourceCode"><pre class="sourceCode yaml"><code class="sourceCode yaml"><span class="fu">csl:</span><span class="at"> ieee.csl</span> |
| 811 | +<span class="fu">bibliography:</span><span class="at"> references.bib</span></code></pre></div> |
795 | 812 | <p>Using <code>pandoc-citeproc</code> as a filter, generate the document with citations:</p>
|
796 | 813 | <pre><code>$ pandoc <span class="do">--filter pandoc-citeproc</span> -H header.tex default.yaml src.md -o out.pdf</code></pre>
|
797 | 814 | <p>The list of references is appended to the end of the document. It is often desirable to give the references an obvious title (“References”), start from a new page and avoid any further indentation, so the following comes in the end of the Markdown source:</p>
|
|
0 commit comments