To help the person who'll need to use Pillar from Pharo I added some
documentation about it on the Pillar's documentation:
https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/lastBuild/artifact/PillarChap/Pillar.html


On 17 May 2015 at 13:03, 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.
>
>



-- 
Cheers
Cyril Ferlicot

Reply via email to