Hi! Sergiu Dumitriu wrote:
I managed to get those margins in pdf and rtf, using the 0.95beta release of fop (now used in the trunk). You should take into account the different bugs css4j has (most of them are still present in the most recent version). So, I have this working:
h2 {
margin-left: 2cm; margin-bottom: 1cm; color: yellow; } You can also use margin: 1cm; to set all 4 margins to the same length, but you cannot use margin: 2cm 0cm 1cm; to set different values. Also, you cannot use !important.
You just have to upgrade http://repo1.maven.org/maven2/org/apache/xmlgraphics/fop/0.95beta-1/fop-0.95... and http://repo1.maven.org/maven2/org/apache/xmlgraphics/xmlgraphics-commons/1.3... (replace the older jars in WEB-INF/libs)
Thanks! Those are great news! I'll test this along the day and report back results here! It seems that I have to consider to subscribe css4j as well :-)
I am taking land with my new responsibilities and the new group clearly needs XWiki :-) And this css4j/Xalan/FOP thing is a key component of its current and future use.
One of my concerns is to establish a link between this world an a different issue we have talked about before: TeX and related environments (LaTeX, LyX,...). I don't know how these two worlds could link. Even if they are different worlds or just facets of the same topic. Or perhaps I am completely lost!
Well, TeX is different, because fop only accepts xsl-fo documents as its input, and TeX is a standalone applications hard to combine with a Java application directly.
Yeap, but there must exist a "link" between xls-fo documents and TeX. I am sure you remember a former discussion about mathematical expressions... I think it has been not much active lately. The point is that in scientific environments. TeX or TeX-based "languages" are a must (nowadays), so we have to find how to move out our documents from XWiki to TeX and vice-versa. I must recognize that I have not advanced since the times of this named discussion :-( I'll catch up with this issue! Cheers, Ricardo -- Ricardo RodrÃguez Your EPEC Network ICT Team