maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r628453 - in /maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer: LatexBookRenderer.java latex/LatexBookSink.java
Date Sun, 17 Feb 2008 08:27:29 GMT
Author: ltheussl
Date: Sun Feb 17 00:27:19 2008
New Revision: 628453

URL: http://svn.apache.org/viewvc?rev=628453&view=rev
Log:
Fix after r628378

Modified:
    maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/LatexBookRenderer.java
    maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/latex/LatexBookSink.java

Modified: maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/LatexBookRenderer.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/LatexBookRenderer.java?rev=628453&r1=628452&r2=628453&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/LatexBookRenderer.java
(original)
+++ maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/LatexBookRenderer.java
Sun Feb 17 00:27:19 2008
@@ -160,8 +160,9 @@
             writer.println( "\\author{" + book.getDate() + "}" );
         }
 
-        writer.print( IOUtil.toString( LatexSink.getDefaultSinkCommands() ) );
-        writer.print( IOUtil.toString( LatexSink.getDefaultPreamble() ) );
+        LatexBookSink sink = new LatexBookSink( writer );
+        sink.defaultBookPreamble();
+
         writer.println( "\\begin{document}" );
         writer.println( "\\maketitle" );
         writer.println( "\\tableofcontents" );

Modified: maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/latex/LatexBookSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/latex/LatexBookSink.java?rev=628453&r1=628452&r2=628453&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/latex/LatexBookSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-book/src/main/java/org/apache/maven/doxia/book/services/renderer/latex/LatexBookSink.java
Sun Feb 17 00:27:19 2008
@@ -101,4 +101,20 @@
     {
         return title;
     }
+
+    // ----------------------------------------------------------------------
+    //
+    // ----------------------------------------------------------------------
+
+    /**
+     * Writes the default LaTeX commands and preamble in the main book file.
+     */
+    public void defaultBookPreamble()
+    {
+        markup( defaultSinkCommands() );
+        markup( defaultPreamble() );
+        flush();
+    }
+
+
 }



Mime
View raw message