|QuoteNumber| works as long as it is in my rst content. It will get
replaced with the actual InvoiceNumber.
**my bold text** works as long as it is in my rst content.
However if I use the markup in a footer or header. It will actually
print "|QuoteNumber|" and "**my bold text**".
Here is my style
defaultFooter : |QuoteNumber| **Customer Initials:**_______
Date:_______ Page ###Page### of 4
Also is there any variable for total pages? I would like to use Page
###Page### of ###TotalPages###
Thanks for any pointers.
Troy
I tried it with this file and it works (current SVN):
.. header::
I recommend you try |Python|.
.. footer::
I recommend you try |Python|.
I recommend you try |Python|.
.. |Python| replace:: Python, *the best language* around
--------------------
Maybe you can share a failing file? I'll be happy to test it!
> Here is my style
> defaultFooter : |QuoteNumber| **Customer Initials:**_______
> Date:_______ Page ###Page### of 4
>
> Also is there any variable for total pages? I would like to use Page
> ###Page### of ###TotalPages###
In 0.14 and later you can use ###Total###
Yes your example works with the header and footer in the rst
document. I was trying to use the stylesheet which did not work.
st.style
pageTemplates:
cutePage:
frames: []
[0%, 0%, 100%, 100%]
showHeader : true
showFooter : true
defaultHeader : "|Python| **Customer Initials:**_______
Date:_______ Page ###Page### of ###Total###"
defaultFooter : "|Python| **Customer Initials:**_______
Date:_______ Page ###Page### of ###Total###"
st.txt
I recommend you try |Python|.
.. |Python| replace:: Python, **the best language** around
http://groups.google.com/group/rst2pdf-discuss/web/st-example.zip
I was expecting the |Python| to be replaced and the "Customer
Initial:" to be in bold. This is not a major issue for me as I can
use the header and footer in the rst content. I just assumed it would
work in the style sheet.
> > Also is there any variable for total pages? I would like to use Page
> > ###Page### of ###TotalPages###
>
> In 0.14 and later you can use ###Total###
Thank you ###Total### is what I was looking for and it works.
Troy
Ok then, I'll test it but it's probably a bug. The header/footer stuff is not
the easiest part of rst2pdf :-(
It should, it's a bug, thanks for the report!
I have entered it as Issue 307:
http://code.google.com/p/rst2pdf/issues/detail?id=307
You can "star" that issue and get notified by mail of any progress,
There is now also a test case in the test suite, and I will take a look at it
ASAP.
To make a long story short: Now you can define headers and footers in the
stylesheet using any markup that would work in the main document.
For example, you can use in the header an image substitution defined in the
document body, and it should work.
Best regards,