Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2008-03

Help with FPDoc output to LaTeX

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

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).

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 38 lines
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.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt
Michael Van Canneyt wrote 9 lines
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.

Thanks for the quick response Michael. I'll go have a look at 'fpc.sty'.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email