Tables of Contents
I'm writing (what I believe to be) a relatively complex template to be populated by a ton of data extracted from a PostGreSQL database using psycopg2. Graphs are generated, information is given, etc.
The thing is, I would really like to structure the document as follows:
Customer Cover Page
Basic Table of Contents (listing the clusters owned by this customer)
Cluster 1 Cover Page
Cluster 1 Table of Contents (listing the cluster graphs and the databases within this cluster)
Cluster 1 Graphs
Database Cover Page
Database 1 Cover Page
Database 1 Table of contents (listing the database graphs and the tables and indexes within this database)
And so on and so forth. My problem with the ToC is that oowriter at most allows me to limit each ToC to the current "chapter" (in this case, the current Cluster, as I'm using the Header 1 style for Clusters). I cannot create a database table of contents, because there seems to be no way to limit the table of contents to the database (which is a Heading 2 and a sub-section of the Cluster section). Of course, I may be wrong about this - I've only been trying to force oowriter to do my bidding for a few hours, now, and it could very well just be resisting. If anyone knows how to restrict a table of contents to a single section, or to create a toc for a heading 2, please tell me.
However, if this isn't exactly possible, I was wondering of Pod can possibly, somehow, access page numbers - so that I could do something along the lines of a table of contents. I know how many pages each section contains, so I should be able to create a table of contents programmatically as long as I can get the current page number. Can I do this? If not, is there another solution?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Appy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask valczir for more information if necessary.