X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/6c92129913263a5b7b8fee10725796a1a7d22376..3f8051a7da60ef98586d6d56df6771a3f557f6d7:/blog/archive/2015/07/07.rss diff --git a/blog/archive/2015/07/07.rss b/blog/archive/2015/07/07.rss index f4d9f66757..660d22fe49 100644 --- a/blog/archive/2015/07/07.rss +++ b/blog/archive/2015/07/07.rss @@ -6,6 +6,97 @@ http://people.skolelinux.org/pere/blog/ + + Typesetting DocBook footnotes as endnotes with dblatex + http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html + http://people.skolelinux.org/pere/blog/Typesetting_DocBook_footnotes_as_endnotes_with_dblatex.html + Thu, 16 Jul 2015 18:10:00 +0200 + <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> +&lt;?latex \theendnotes ?&gt; +</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> +&lt;?xml version='1.0'?&gt; +&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt; + &lt;xsl:param name="latex.begindocument"&gt; + &lt;xsl:text&gt; +\usepackage{endnotes} +\let\footnote=\endnote +\def\enoteheading{\mbox{}\par\vskip-\baselineskip } +\begin{document} + &lt;/xsl:text&gt; + &lt;/xsl:param&gt; +&lt;/xsl:stylesheet&gt; +</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> + + + + + Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert + http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html + http://people.skolelinux.org/pere/blog/Mimes_br_nn__norsk_utgave_av_Alaveteli___WhatDoTheyKnow__endelig_lansert.html + Thu, 9 Jul 2015 11:40:00 +0200 + <p>I går fikk vi endelig lansert en norsk version av mySocietys +<a href="https://www.whatdotheyknow.com/">WhatDoTheyKnow</a>. +Tjenesten heter Mimes brønn, og ble +<a href="http://www.nuug.no/news/NUUG_lanserer_innsynstjenesten_Mimes_Br_nn.shtml">annonsert +av NUUG</a> 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 +oppsett fra mange flere. Jeg vil si tusen takk til hver og en av dem, +og er veldig fornøyd med at vi klarte å få tjenesten opp å kjøre før +ferietiden slo inn for fullt.</p> + +<p>Vi er usikker på hvor mye belastning den virtuelle maskinen der +tjenesten kjører klarer, så vi har lansert litt i det stille og ikke +til for mange folk for å se hvordan maskinen klarer seg over sommeren, +før vi går mer aktivt ut og annonserer til høsten. Ta en titt, og se +om du kanskje har et spørsmål til det offentlige som er egnet å sende +inn via Mimes brønn.</p> + +<p>Hvis du lurer på hva i alle dager en slik tjenestes kan brukes til, +anbefaler jeg deg å se +<a href="http://beta.frikanalen.no/video/625321">TED-foredraget til +Heather Brook</a> om hvordan hun brukte WhatDoTheyKnow til å lære +hvordan offentlige midler ble misbrukt. Det er en inspirerende +historie.</p> + + + MPEG LA on "Internet Broadcast AVC Video" licensing and non-private use http://people.skolelinux.org/pere/blog/MPEG_LA_on__Internet_Broadcast_AVC_Video__licensing_and_non_private_use.html @@ -123,7 +214,7 @@ such content would constitute Free Television AVC Video and would be subject to the applicable royalties.</p> <p>For your reference, I have attached -<a href="http://people.skolelinux.org/pere/blog/images/2015-07-07-mpeg-la.pdf">a +<a href="http://people.skolelinux.org/pere/blog/images/2015-07-07-mpegla.pdf">a .pdf copy of the AVC License</a>. You will find the relevant sublicense information regarding AVC Video in Sections 2.2 through 2.5, and the corresponding royalties in Section 3.1.2 through 3.1.4. @@ -356,6 +447,10 @@ deteriorated since X41.</p> 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.</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>