<h3>Entries from July 2015.</h3>
+ <div class="entry">
+ <div class="title">
+ <a href="http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html">Typesetting DocBook footnotes as endnotes with dblatex</a>
+ </div>
+ <div class="date">
+ 16th July 2015
+ </div>
+ <div class="body">
+ <p>I'm still working on the Norwegian version of the
+<a href="http://free-culture.cc/">Free Culture book by Lawrence
+Lessig</a>, 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
+<a href="https://bugs.debian.org/685063">feedback from the Debian
+maintainer and the dblatex developer</a>, 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.</p>
+
+<p>First, decide where in the DocBook document to place the endnotes,
+and add this text there:</p>
+
+<pre>
+<?latex \theendnotes ?>
+</pre>
+
+<p>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:</p>
+
+<pre>
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+ <xsl:param name="latex.begindocument">
+ <xsl:text>
+\usepackage{endnotes}
+\let\footnote=\endnote
+\def\enoteheading{\mbox{}\par\vskip-\baselineskip }
+\begin{document}
+ </xsl:text>
+ </xsl:param>
+</xsl:stylesheet>
+</pre>
+
+<p>Finally, load this xsl file when running dblatex, for example like
+this:</p>
+
+<pre>
+dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
+</pre>
+
+<p>The end result can be seen on github, where
+<a href="https://github.com/petterreinholdtsen/free-culture-lessig">my
+book project</a> is located.</p>
+
+ </div>
+ <div class="tags">
+
+
+ Tags: <a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook</a>, <a href="http://people.skolelinux.org/pere/blog/tags/english">english</a>, <a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture</a>.
+
+
+ </div>
+ </div>
+ <div class="padding"></div>
+
<div class="entry">
<div class="title">
<a href="http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html">Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert</a>
set of available laptops for features? Please send me an email if you
have suggestions.</p>
+<p>Update 2015-07-23: I got a suggestion to check out the FSF
+<a href="http://www.fsf.org/resources/hw/endorsement/respects-your-freedom">list
+of endorsed hardware</a>, which is useful background information.</p>
+
</div>
<div class="tags">
<li><a href="http://people.skolelinux.org/pere/blog/archive/2015/06/">June (4)</a></li>
-<li><a href="http://people.skolelinux.org/pere/blog/archive/2015/07/">July (5)</a></li>
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2015/07/">July (6)</a></li>
+
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2015/08/">August (2)</a></li>
+
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2015/09/">September (2)</a></li>
+
+<li><a href="http://people.skolelinux.org/pere/blog/archive/2015/10/">October (7)</a></li>
</ul></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/bankid">bankid (4)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (8)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/bitcoin">bitcoin (9)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/bootsystem">bootsystem (15)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/chrpath">chrpath (2)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (111)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/debian">debian (112)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/debian edu">debian edu (153)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/dld">dld (15)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (13)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/docbook">docbook (20)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/drivstoffpriser">drivstoffpriser (4)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (283)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/english">english (292)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/fiksgatami">fiksgatami (23)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/fildeling">fildeling (12)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (15)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/freeculture">freeculture (22)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/freedombox">freedombox (9)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/multimedia">multimedia (36)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (264)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/norsk">norsk (267)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/nuug">nuug (177)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (19)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/offentlig innsyn">offentlig innsyn (20)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/open311">open311 (2)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (53)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/opphavsrett">opphavsrett (54)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (86)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/personvern">personvern (88)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/raid">raid (1)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/scraperwiki">scraperwiki (2)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (41)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/sikkerhet">sikkerhet (43)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/sitesummary">sitesummary (4)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/stavekontroll">stavekontroll (3)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (9)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/stortinget">stortinget (10)</a></li>
- <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (33)</a></li>
+ <li><a href="http://people.skolelinux.org/pere/blog/tags/surveillance">surveillance (35)</a></li>
<li><a href="http://people.skolelinux.org/pere/blog/tags/sysadmin">sysadmin (2)</a></li>