1 29 30 package com.caucho.xtpdoc; 31 32 import java.io.IOException ; 33 import java.io.PrintWriter ; 34 35 public class S4 extends Section { 36 public S4(Document document, String parentHref) 37 { 38 super(document, parentHref); 39 } 40 41 public void writeLaTeXTop(PrintWriter out) 42 throws IOException 43 { 44 if (_type != null && _type.equals("defun")) 45 out.println("\\newpage"); 46 47 if (_title != null) 48 out.println("\\paragraph{" + LaTeXUtil.escapeForLaTeX(_title) + "}"); 49 50 super.writeLaTeX(out); 51 } 52 53 public void writeLaTeX(PrintWriter out) 54 throws IOException 55 { 56 if (_type != null && _type.equals("defun")) 57 out.println("\\newpage"); 58 59 if (_title != null) 60 out.println("\\textbf{" + LaTeXUtil.escapeForLaTeX(_title) + "}"); 61 62 super.writeLaTeX(out); 63 } 64 65 public void writeLaTeXEnclosed(PrintWriter out) 66 throws IOException 67 { 68 if (_type != null && _type.equals("defun")) 69 out.println("\\newpage"); 70 71 if (_title != null) 72 out.println("{" + LaTeXUtil.escapeForLaTeX(_title) + ": }"); 73 74 super.writeLaTeX(out); 75 } 76 } 77 | Popular Tags |