Cyril is now doing all the work on Pillar On May 17, 2015 1:03:19 PM GMT+02:00, "Jan Valášek" <valas...@fit.cvut.cz> wrote: >Dne 2015-04-20 14:12, Damien Cassou napsal: >Hi Damien, > >Finally, I have used both ways in my work. So thank you for the >clarification. Pillar is a very useful tool :-) > >Jan > >> Hi Jan, >> >> the following complements Cyril's answers. You can have a look at all >> the unit-tests, they do a lot of things like what you want. >> >> Jan Valášek <valas...@fit.cvut.cz> writes: >>> header := pillarHeaderObject new. //creating pillar objects >directly >> >> header := PRHeader new level: 2; add: (PRText content: 'foo'); >yourself. >> >> >>> aPillarDocument add: header. //adding them to the whole document >> >> >> document := PRDocument new. >> document add: header. >> >>> aPillarDocument exportToLatex. //export the document >> >> >> to only export the body of the document: >> >> PRLaTeXWriter write: document >> >> >>> or I can just write the text in the pillar notation to >"myTextObject" >>> and then call something like-> >>> ------- >>> pillarParseAndExportToLatex: myTextObject. >> >> >> document := PRDocumentParser parse: '!!foo'. >> PRLaTeXWriter write: document.
-- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill