Closed exodehm closed 4 years ago
Ok I must to use the parent style for inherit the propertys. The base style has the property name="Tabuladores Base" and the derived styles has the property parentstylename = "Tabuladores Base" I put a complete example:
tabstops_list = TabStops()
tabstop = TabStop(position="2.5cm")
tabstops_list.addElement(tabstop)
tabstop = TabStop(position="12.5cm")
tabstops_list.addElement(tabstop)
tabstop = TabStop(position="14cm")
tabstops_list.addElement(tabstop)
tabstoppar = ParagraphProperties()
tabstoppar.addElement(tabstops_list)
tabstyle = Style(name="Tabuladores Base", family="paragraph")
tabstyle.addElement(tabstoppar)
s.addElement(tabstyle)
#bold with tabs
boldtabstyle = Style(name="Negritas con tabuladores", family="paragraph", parentstylename = "Tabuladores Base")
boldtabstyle.addElement(TextProperties(fontweight ="bold", fontfamily="helvetica"))
s.addElement(boldtabstyle)
#normal con tabs
normaltabstyle = Style(name="Normal con tabuladores", family="paragraph", parentstylename = "Tabuladores Base")
normaltabstyle.addElement(TextProperties(fontweight ="light", fontfamily="helvetica", fontsize="10pt"))
s.addElement(normaltabstyle)
Hello
It is possible to use a tabs in different styles. I mean that:
And forward (it doesn work):
Thanks!