Hi all,

I am new to PyX so sorry if I am asking now something obvious.
I am using PyX 0.9 , installed package for xubuntu 7.04.

I have searched in the archives of the Mailing List and I think I have not found
any answer to my question, which is :

Reading <http://pyx.sourceforge.net/manual/node19.html> I understand that the
default values for the class page are paperformat.A4 for the paper format and
the centered parameter is set to 1.

My document is built as follows :

#canevas

canevas = canvas.canvas()
canevas.insert (graph1) #graph1 contains a curve
canevas.insert (graph2) #graph2 contains a curve

pied_page = text.texrunner()
pied_page.set(mode="latex")
pied_page.preamble(r"\usepackage{datetime} \shortdate")
canevas.insert (pied_page.text(0,0,r"\begin{tabular}{|l|l|} \hline
\multicolumn{2}{|c|}{texte_line1} \\ \hline \today ~@ \xxivtime & text_line2 \\
\hline \multicolumn{2}{|c|}{text_line3} \\ \hline \end{tabular}"))

# Page
page1 = document.page(canevas,centered=0)
page2 = document.page(canevas)

# Document
my_doc = document.document([page1,page2])

Despite the "centered=0", the page1 output has a centered content, as page2.

The only way I have found to get a content not centered is by coding :

<--
page1 = document.page(canevas1,paperformat=document.paperformat.A4)
page1.centered=0
-->

Moreover, the result is now cut, I miss 0,5 cm on the left side of the page and
1 cm at its bottom (the printer margins).

Where is my mistake ?

Claude

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to