Hallo Christine,
Post by Christine RoemerPost by Susanne WunschSicher sind einige persönliche Customizations notwendig, dass es Deinen
Vorstellungen entspricht.
Wo kann man die vornehmen? Im docbook.sty?
Kannst Du mal ein Beispiel geben?
Ja, klar. Im folgenden ist ein Beispiel. Aber die dblatex-Doku ist
eigentlich ganz gut strukturiert und inhaltsvoll. Schau mal ins
dblatex-Verzeichnis unter docs/manual.pdf oder docs/xhtml/index.html.
Kommandozeile für folgende Costumization-Files wie folgt:
dblatex -s mystyle.sty -p mystyle.xsl -o Ausgabe.pdf DocBook-Datei.xml
(Die Pfade müssen natürlich entsprechend angepasst werden, damit alles
zusammen spielt.)
/-- mystyle.sty -------------------------------------------
%%
%% This style is derivated from the docbook one
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mystyle}[2011/09/09 My DocBook Style]
%% Needed for "`DarkRed"' link color
\usepackage[svgnames]{xcolor}
\usepackage{lastpage}
%% Just use the original package and pass the options
\RequirePackageWithOptions{style/docbook}
\hyphenation{foo-bar}
\fancyhead[LE,RO]{\thepage\ / \getpagerefnumber{LastPage}}
\fancyhead[LO,RE]{\slshape \rightmark}
\fancyfoot[C]{}
\-- Ende (mystyle.sty) -------------------------------------
/-- mystyle.xsl --------------------------------------------
<?xml version='1.0' encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<!-- Print the table of contents when set to 1. -->
<xsl:param name="doc.toc.show">1</xsl:param>
<!-- Table of contents from chapter down to subsection only -->
<xsl:param name="doc.section.depth">2</xsl:param>
<!-- Depth of the TOC. Used to set the latex tocdepth counter. -->
<xsl:param name="toc.section.depth">2</xsl:param>
<!-- Linking table of content titles, not page numbers, all links in
dark red, break links at line ends -->
<xsl:param name="latex.hyperparam">colorlinks, citecolor=DarkRed,
linkcolor=DarkRed, urlcolor=DarkRed, breaklinks</xsl:param>
<!-- No revision history (Versionsgeschichte) -->
<xsl:param name="insert.xref.page.number">maybe</xsl:param>
<!-- the whole cross reference markup produced for an xref is
converted to an hyperlink. -->
<xsl:param name="xref.hypermarkup" select="1"/>
<!-- the glossterms in the document are linked to their definition
in the glossary. -->
<xsl:param name="glossterm.auto.link" select="0"/>
<!-- Don't put the term description on the next line. -->
<xsl:param name="term.breakline">0</xsl:param>
<!-- Use KomaScript report class -->
<xsl:param name="latex.class.book">scrreprt</xsl:param>
<!-- Options passed to the \documentclass command -->
<xsl:param name="latex.class.options">paper=a4, oneside, open=any, numbers=noenddot</xsl:param>
<!-- Page number references will not be generated for an xref
element unless it has an xrefstyle attribute whose value
specifies a page reference. -->
<xsl:param name="latex.output.revhistory">0</xsl:param>
<!-- Set to 1 the babel package corresponding to the document
language is included. Set to 0 no babel package is included
whatever the document language is.-->
<xsl:param name="latex.babel.use">1</xsl:param>
</xsl:stylesheet>
\-- Ende (mystyle.xsl) --------------------------------------------
Post by Christine RoemerPost by Susanne WunschBTW, was nutzt Du für die epub-Ausgabe? Bluefish?
https://addons.mozilla.org/de/firefox/addon/epubreader/
Danke für den Tipp, den kannte ich noch nicht.
Ich meinte eher, welches Tool verwendest Du, um aus DocBook ein
ePub zu erstellen?
Liebe Grüße...
Susanne