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.


Reply via email to