Ferlicot D. Cyril <cyril.ferli...@gmail.com> writes:

> Le 21/06/2015 05:21, Hernán Morales Durand a écrit :
>> About instructions given here
>> 
>> https://ci.inria.fr/pharo-contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/PillarChap/Pillar.html#sec:windowsusers
>> 
>> you do not need MinGW to export a Pier chapter. See here
>> https://github.com/biosmalltalk/biopharo/blob/develop/doc/pier2tex.bat
>> for an example
>
> We know that Pillar is not easy to use on Windows and we need to
> improve that, but for now we have a lot of work to do with Pillar and
> not enough time to do it. Using MinGW is only a temporary solution.


I asked Cyril to work on integrating what's currently in Bash scripts
inside Pillar itself (e.g.,, iterating over input files, generating pdf
from latex). This should make porting much easier (as well as creating
new Pillar-based projects).


>> Another (worst) situation happened when I wanted to convert a generated
>> LaTeX to PDF. I had to remove all tables, annotations and notes from the
>> .pier file because errors reported in pdfLaTeX .
>> 
>> For tables  :
>> 
>> ! Undefined control sequence.
>> 
>> l.176 \toprule
>> 
>
> I'll try to take a look at that one.
> Can you send me a pillar file that raise this please ?


this one is related to a missing latex package in your latex template.
Add this to your LaTeX template (or use the default template Pillar
provides or use the template from
https://github.com/SquareBracketAssociates/EnterprisePharo/)

    \usepackage{booktabs}


>> For notes (i.e. @@note )
>> 
>> ! LaTeX Error: Environment note undefined.
>> 
>> 
>> See the LaTeX manual or LaTeX Companion for explanation.
>> 
>> Type H <return> for immediate help.
>> 
>> ...
>> 
>> l.178 \begin{note}


each time you use @@XXXX, the LaTeX document will contain a
\begin{XXXX}. This means you have to create the environments you need.
So, if you write @@note in your Pillar document, you must add something
like this to your LaTeX template:


    
\newenvironment{note}{\begin{center}\begin{minipage}{8cm}\hrule\vspace{0.2cm}
    \textbf{Note:}}{\vspace{0.3cm}\hrule\end{minipage}\end{center}}

Look here for what we use in EnterprisePharo:
    
https://github.com/SquareBracketAssociates/EnterprisePharo/blob/master/support/latex/common.tex

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

Reply via email to