]> pere.pagekite.me Git - homepage.git/blobdiff - blog/archive/2015/07/07.rss
New post about a very nice game.
[homepage.git] / blog / archive / 2015 / 07 / 07.rss
index 96e1c6089ae1ee549514d639adae8a69a55fa1b8..660d22fe49824a0d3140a02226865d0b4547c9b6 100644 (file)
@@ -6,6 +6,64 @@
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
                 <link>http://people.skolelinux.org/pere/blog/</link>
 
        
+       <item>
+               <title>Typesetting DocBook footnotes as endnotes with dblatex</title>
+               <link>http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html</link>        
+               <guid isPermaLink="true">http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html</guid>
+                <pubDate>Thu, 16 Jul 2015 18:10:00 +0200</pubDate>
+               <description>&lt;p&gt;I&#39;m still working on the Norwegian version of the
+&lt;a href=&quot;http://free-culture.cc/&quot;&gt;Free Culture book by Lawrence
+Lessig&lt;/a&gt;, and is now working on the final typesetting and layout.
+One of the features I want to get the structure similar to the
+original book is to typeset the footnotes as endnotes in the notes
+chapter.  Based on the
+&lt;a href=&quot;https://bugs.debian.org/685063&quot;&gt;feedback from the Debian
+maintainer and the dblatex developer&lt;/a&gt;, I came up with this recipe I
+would like to share with you.  The proposal was to create a new LaTeX
+class file and add the LaTeX code there, but this is not always
+practical, when I want to be able to replace the class using a make
+file variable.  So my proposal misuses the latex.begindocument XSL
+parameter value, to get a small fragment into the correct location in
+the generated LaTeX File.&lt;/p&gt;
+
+&lt;p&gt;First, decide where in the DocBook document to place the endnotes,
+and add this text there:&lt;/p&gt;
+
+&lt;pre&gt;
+&amp;lt;?latex \theendnotes ?&amp;gt;
+&lt;/pre&gt;
+
+&lt;p&gt;Next, create a xsl stylesheet file dblatex-endnotes.xsl to add the
+code needed to add the endnote instructions in the preamble of the
+generated LaTeX document, with content like this:&lt;/p&gt;
+
+&lt;pre&gt;
+&amp;lt;?xml version=&#39;1.0&#39;?&amp;gt;
+&amp;lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; version=&#39;1.0&#39;&amp;gt;
+  &amp;lt;xsl:param name=&quot;latex.begindocument&quot;&amp;gt;
+    &amp;lt;xsl:text&amp;gt;
+\usepackage{endnotes}
+\let\footnote=\endnote
+\def\enoteheading{\mbox{}\par\vskip-\baselineskip }
+\begin{document}
+    &amp;lt;/xsl:text&amp;gt;
+  &amp;lt;/xsl:param&amp;gt;
+&amp;lt;/xsl:stylesheet&amp;gt;
+&lt;/pre&gt;
+
+&lt;p&gt;Finally, load this xsl file when running dblatex, for example like
+this:&lt;/p&gt;
+
+&lt;pre&gt;
+dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
+&lt;/pre&gt;
+
+&lt;p&gt;The end result can be seen on github, where
+&lt;a href=&quot;https://github.com/petterreinholdtsen/free-culture-lessig&quot;&gt;my
+book project&lt;/a&gt; is located.&lt;/p&gt;
+</description>
+       </item>
+       
        <item>
                <title>Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert</title>
                <link>http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html</link>        
        <item>
                <title>Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert</title>
                <link>http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html</link>        
@@ -15,7 +73,7 @@
 &lt;a href=&quot;https://www.whatdotheyknow.com/&quot;&gt;WhatDoTheyKnow&lt;/a&gt;.
 Tjenesten heter Mimes brønn, og ble
 &lt;a href=&quot;http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml&quot;&gt;annonsert
 &lt;a href=&quot;https://www.whatdotheyknow.com/&quot;&gt;WhatDoTheyKnow&lt;/a&gt;.
 Tjenesten heter Mimes brønn, og ble
 &lt;a href=&quot;http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml&quot;&gt;annonsert
-av NUUG&lt;/a&gt; via blog, epost og twitter til NUUG-assosierte personer.
+av NUUG&lt;/a&gt; via blogg, epost og twitter til NUUG-assosierte personer.
 Det har tatt noen år, men de siste dagene fikk vi endelig tid til å få
 på plass de siste bitene.  Vi er to, Gorm og meg selv, som har vært
 primus motor for det hele, men vi har fått hjelp med oversettelser og
 Det har tatt noen år, men de siste dagene fikk vi endelig tid til å få
 på plass de siste bitene.  Vi er to, Gorm og meg selv, som har vært
 primus motor for det hele, men vi har fått hjelp med oversettelser og
@@ -389,6 +447,10 @@ deteriorated since X41.&lt;/p&gt;
 seem sensible to me?  Are there better services around to search the
 set of available laptops for features?  Please send me an email if you
 have suggestions.&lt;/p&gt;
 seem sensible to me?  Are there better services around to search the
 set of available laptops for features?  Please send me an email if you
 have suggestions.&lt;/p&gt;
+
+&lt;p&gt;Update 2015-07-23: I got a suggestion to check out the FSF
+&lt;a href=&quot;http://www.fsf.org/resources/hw/endorsement/respects-your-freedom&quot;&gt;list
+of endorsed hardware&lt;/a&gt;, which is useful background information.&lt;/p&gt;
 </description>
        </item>
        
 </description>
        </item>