Jelajahi Sumber

* Help for latex backend

git-svn-id: trunk@32897 -
michael 9 tahun lalu
induk
melakukan
288aa63a67
1 mengubah file dengan 21 tambahan dan 0 penghapusan
  1. 21 0
      utils/fpdoc/dw_latex.pp

+ 21 - 0
utils/fpdoc/dw_latex.pp

@@ -134,6 +134,7 @@ Type
     Function SplitLine (ALine : String): String; virtual;
     Function SplitLine (ALine : String): String; virtual;
     Function InterPretOption(Const Cmd,Arg : String) : boolean; override;
     Function InterPretOption(Const Cmd,Arg : String) : boolean; override;
     Class Function FileNameExtension : String; override;
     Class Function FileNameExtension : String; override;
+    class procedure Usage(List: TStrings); override;
   end;
   end;
 
 
 
 
@@ -795,6 +796,26 @@ begin
     Result:=False;
     Result:=False;
 end;
 end;
 
 
+Resourcestring
+  SLatexHighlightDocs = 'Use the syntax highlighter for declarations.';
+  SLatexExtensionDocs = 'Specify the extension for the latex files.';
+  SLatexVerbatimLengthDocs = 'Specify maximum line length for verbatim environments (default 64).';
+  SLatexImageDirDocs = 'Specify the directory where the images are stored.';
+
+class procedure TLaTeXWriter.Usage(List: TStrings); 
+
+begin
+  Inherited;
+  List.Add('--latex-highlight');
+  List.Add(SLatexHighlightDocs);
+  List.Add('--latex-extension=ext');
+  List.Add(SLatexExtensionDocs);
+  List.Add('--latex-verbatim-length=len');
+  List.Add(SLatexVerbatimLengthDocs);
+  List.Add('--image-dir=dir');
+  List.Add(SLatexImageDirDocs);
+end;
+
 initialization
 initialization
   // Do not localize.
   // Do not localize.
   RegisterWriter(TLaTeXWriter,'latex','Latex output using fpc.sty class.');
   RegisterWriter(TLaTeXWriter,'latex','Latex output using fpc.sty class.');