X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/7b04edb41d1f6a8d8ee3a21f493f732b5d372398..a1c8926cfbb8ef725b6c6ddf804a5f46c2b2575f:/blog/archive/2015/07/index.html diff --git a/blog/archive/2015/07/index.html b/blog/archive/2015/07/index.html index 853d2b9592..78918f2c48 100644 --- a/blog/archive/2015/07/index.html +++ b/blog/archive/2015/07/index.html @@ -21,6 +21,76 @@

Entries from July 2015.

+
+
+ Typesetting DocBook footnotes as endnotes with dblatex +
+
+ 16th July 2015 +
+
+

I'm still working on the Norwegian version of the +Free Culture book by Lawrence +Lessig, 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 +feedback from the Debian +maintainer and the dblatex developer, 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.

+ +

First, decide where in the DocBook document to place the endnotes, +and add this text there:

+ +
+<?latex \theendnotes ?>
+
+ +

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:

+ +
+<?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>
+
+ +

Finally, load this xsl file when running dblatex, for example like +this:

+ +
+dblatex --xsl-user=dblatex-endnotes.xsl freeculture.nb.xml
+
+ +

The end result can be seen on github, where +my +book project is located.

+ +
+
+ + + Tags: docbook, english, freeculture. + + +
+
+
+
Mimes brønn, norsk utgave av Alaveteli / WhatDoTheyKnow, endelig lansert @@ -33,7 +103,7 @@ WhatDoTheyKnow. Tjenesten heter Mimes brønn, og ble annonsert -av NUUG via blog, epost og twitter til NUUG-assosierte personer. +av NUUG 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 @@ -444,6 +514,10 @@ 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.

+

Update 2015-07-23: I got a suggestion to check out the FSF +list +of endorsed hardware, which is useful background information.

+
@@ -552,6 +626,46 @@ easier to publish NUUG videos on Frikanalen.

Archive