From 4e53f79a6ad372180e416d5c54798a10d21b99d8 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 16 Jul 2015 19:37:08 +0200 Subject: [PATCH] Switch to new dblatex endnote handling, and drop the use of home made class. --- Makefile | 1 + data/dblatex-endnotes.xsl | 21 +++++++++++++++++++++ data/lulu.xsl | 1 - data/origsize.xsl | 1 - data/pdf.xsl | 1 - scrreprtmargins.cls | 22 ---------------------- 6 files changed, 22 insertions(+), 25 deletions(-) create mode 100644 data/dblatex-endnotes.xsl delete mode 100644 scrreprtmargins.cls diff --git a/Makefile b/Makefile index b60884f..68b3e68 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ DBLATEX = dblatex \ -b xetex \ -r data/dblatex-postprocess \ --indexstyle=myindexstyle.ist \ + --xsl-user=data/dblatex-endnotes.xsl \ --xsl-user=data/user_param.xsl \ --xsl-user=data/xetex_param.xsl \ -p data/pdf.xsl diff --git a/data/dblatex-endnotes.xsl b/data/dblatex-endnotes.xsl new file mode 100644 index 0000000..187ff79 --- /dev/null +++ b/data/dblatex-endnotes.xsl @@ -0,0 +1,21 @@ + + + + + + + +\usepackage{endnotes} +\let\footnote=\endnote +\def\enoteheading{\mbox{}\par\vskip-\baselineskip } +\begin{document} + + + + + diff --git a/data/lulu.xsl b/data/lulu.xsl index cd7a7fb..e1358cf 100644 --- a/data/lulu.xsl +++ b/data/lulu.xsl @@ -16,7 +16,6 @@ 1 -scrreprtmargins paper=6in:9in,pagesize=pdftex,headinclude=on,footinclude=on,twoside diff --git a/data/origsize.xsl b/data/origsize.xsl index a51004e..a58b5ba 100644 --- a/data/origsize.xsl +++ b/data/origsize.xsl @@ -17,7 +17,6 @@ Crimson Text Crimson Text -scrreprtmargins pagesize=pdftex,headinclude=on,footinclude=on,twoside diff --git a/data/pdf.xsl b/data/pdf.xsl index 0aec30c..41e1881 100644 --- a/data/pdf.xsl +++ b/data/pdf.xsl @@ -26,7 +26,6 @@ 0 -scrreprtmargins a4paper diff --git a/scrreprtmargins.cls b/scrreprtmargins.cls deleted file mode 100644 index a6f2146..0000000 --- a/scrreprtmargins.cls +++ /dev/null @@ -1,22 +0,0 @@ -%% -%% This style is derivated from the scrbook one. Partly based on -%% and -%% . -%% http://tex.stackexchange.com/questions/19497/how-do-you-setup-a-tex-document-to-self-publish-a-book-online -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{book6x9}[2007/04/04 My 6'' x 9'' book Style] - -%% Just use the original class and pass the options -\LoadClassWithOptions{scrreprt} -% report, book, memoir, scrreprt or scrbook ? - -%% Replace footnotes par end notes -\usepackage{endnotes} -\let\footnote=\endnote - -% Let user define its own endnote heading section(s) -\def\enoteheading{\mbox{}\par\vskip-\baselineskip } - -% Insert this in the docbook code where the notes should be inserted -% -- 2.47.2