Lacking Natural Simplicity (Posts about .QS/.QE)https://tkurtbond.github.io/categories/qsqe.atom2024-01-23T18:49:41ZT. Kurt BondNikolapandoc-discuss post: Can the .RS/.RE macros in ms output be replaced with .QS/.QE?https://tkurtbond.github.io/posts/2020/03/11/pandoc-discuss-post-can-the-rsre-macros-in-ms-output-be-replaced-with-qsqe/2020-03-11T20:35:47-04:002020-03-11T20:35:47-04:00T. Kurt Bond<p>On March 9, 2020 I made a <a class="reference external" href="https://groups.google.com/forum/#!topic/pandoc-discuss/zulmB6uujgc">post</a> on the pandoc-discuss mailing list
that explains some changes to pandoc to better handle block quotes in
ms output, and a workaround for it until the version with changes
comes out, but I forgot to mention it here.</p>
<p>In short, use a pipeline like this:</p>
<p><a class="reference external" href="https://tkurtbond.github.io/listings/GNUmakefile.change-RS-RE-to-QS-QE.html">GNUmakefile.change-RS-RE-to-QS-QE</a> <a class="reference external" href="https://tkurtbond.github.io/listings/GNUmakefile.change-RS-RE-to-QS-QE">(Source)</a></p>
<div class="code"><pre class="code make"><a id="rest_code_0bf34e09220c4b06984c83beeabc43bd-1" name="rest_code_0bf34e09220c4b06984c83beeabc43bd-1" href="https://tkurtbond.github.io/posts/2020/03/11/pandoc-discuss-post-can-the-rsre-macros-in-ms-output-be-replaced-with-qsqe/#rest_code_0bf34e09220c4b06984c83beeabc43bd-1"></a><span class="nf">%.qs.ms.pdf </span><span class="o">:</span><span class="w"> </span>%.<span class="n">rst</span>
<a id="rest_code_0bf34e09220c4b06984c83beeabc43bd-2" name="rest_code_0bf34e09220c4b06984c83beeabc43bd-2" href="https://tkurtbond.github.io/posts/2020/03/11/pandoc-discuss-post-can-the-rsre-macros-in-ms-output-be-replaced-with-qsqe/#rest_code_0bf34e09220c4b06984c83beeabc43bd-2"></a><span class="w"> </span>pandoc<span class="w"> </span>--verbose<span class="w"> </span>-r<span class="w"> </span>rst<span class="w"> </span>-w<span class="w"> </span>ms<span class="w"> </span><span class="k">$(</span>PANDOCOPTS<span class="k">)</span><span class="w"> </span><span class="se">\</span>
<a id="rest_code_0bf34e09220c4b06984c83beeabc43bd-3" name="rest_code_0bf34e09220c4b06984c83beeabc43bd-3" href="https://tkurtbond.github.io/posts/2020/03/11/pandoc-discuss-post-can-the-rsre-macros-in-ms-output-be-replaced-with-qsqe/#rest_code_0bf34e09220c4b06984c83beeabc43bd-3"></a><span class="w"> </span>--output<span class="o">=</span>-<span class="w"> </span>$<<span class="w"> </span><span class="p">|</span><span class="w"> </span>gsed<span class="w"> </span>-e<span class="w"> </span><span class="s1">'s/^\.RS$$/.QS/'</span><span class="w"> </span>-e<span class="w"> </span><span class="s1">'s/^\.RE$$/.QE/'</span><span class="w"> </span><span class="p">|</span><span class="w"> </span><span class="se">\</span>
<a id="rest_code_0bf34e09220c4b06984c83beeabc43bd-4" name="rest_code_0bf34e09220c4b06984c83beeabc43bd-4" href="https://tkurtbond.github.io/posts/2020/03/11/pandoc-discuss-post-can-the-rsre-macros-in-ms-output-be-replaced-with-qsqe/#rest_code_0bf34e09220c4b06984c83beeabc43bd-4"></a><span class="w"> </span>pdfroff<span class="w"> </span>-ms<span class="w"> </span>-mpdfmark<span class="w"> </span>-e<span class="w"> </span>-t<span class="w"> </span>-k<span class="w"> </span>-KUTF-8<span class="w"> </span>-i<span class="w"> </span>--no-toc-relocation<span class="w"> </span>><span class="nv">$@</span>
</pre></div>