[fpc-devel] Help with FPDoc output to LaTeX

Michael Van Canneyt michael at freepascal.org
Tue Mar 25 15:17:52 CET 2008



On Tue, 25 Mar 2008, Graeme Geldenhuys wrote:

> Hi,
> 
> I've tried for the first time to output some of my fpdoc documentation
> to a LaTeX format. I only tried one fully documented unit as an
> example.
> 
> The latex (source) file gets generated without issue. I looks like
> it's in a book format.
> 
> So I enclode the whole document with the following.... I think in book
> format you can use includes as well for each chapter.
> 
> ---------------------------
> \documentclass[a4paper,12pt]{book}
> \begin{document}
> % This file has been created automatically by FPDoc.
> % Linear output (c) 2005 Michael Van Canneyt
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> <...snip all auto generate content...>
> 
> \end{document}
> ---------------------------
> 
> 
> Now I tried to generate a PDF document and LaTeX complains about the following:
> 
> l.55 \begin{FPCltable}
>                       {ll}{Enumeration values for type TTokenSeparator
> 
> 
> 
> I guess from this, I am missing some or other \usepackage clause in
> the beginning of my document?  fpdoc did not generate any package
> template for me, so where could I get this?  I guess I'm looking for
> the definition of 'FPCltable'.  I did end up with a .pdf document, but
> I am missing tables (formatting text in tables).

You should use fpc.sty that comes with the FPC docs;
Alternatively, copy the definition of FPCltable from the fpc.sty
file to your main document preamble.

It is one of the things on my todo list to remove this dependency.
The main problem is that there is a variety of table formats, and
I haven't found a satisfying approach to this.

Michael.



More information about the fpc-devel mailing list