This is a test to see if it makes sense to convert PharoByExample into pier format.
I (Stef) have a log here of what I should have a look https://docs.google.com/document/d/1lVOTw2d5Bqv_49XPZ9MwUF6zDbsLWf8l7ev2NAgHhhg/edit?usp=drive_web I pay attention to do it in the frnech and english version in parallel.
So if somebody changes something in the english version please add it to this log
This book is continuously built on an Inria Jenkins server.
###Generating the book
First of all you have to run ./download.sh to obtain the Pillar executable
that does all the job.
To generate your book execute ./compile.sh. If you want to generate only one
chapter, pass the file's path to the script: ./compile.sh Example/Example.pillar. If you have pdflatex installed and available in your
system's PATH, the script will also generate pdf files.
If you're on a recent Mac OS X version, you will need to do the following:
-
Download and install MacTeX (the 2.4Gb MacTeX.pkg file)
-
Manually ensure that
pdftex(and other LaTeX-related binaries) are in your system PATH. If, after installing the .pkg, the commandwhich pdftexyields an empty result, run the following in your terminal:echo /usr/texbin > TeX sudo mv TeX /etc/paths.d
###Adding a chapter
To add a chapter create a directory for it (named, e.g., Example) and put
there a .pillar file (named, e.g., Example.pillar) which will contain the
chapter itself. Put images in the figures subdirectory of the new chapter
directory.
Add your chapter to:
pillar.confin theinputFilesarray as:"Example/Example.pillar", and_support/templates/book.latex.templatein\graphicspathas{Example/}
###Caveats
- You must neither use spaces nor underscores (
_) in file names.
There are mods/bundles/packages for text editors, that provide improvements for pillar files editing:
- Emacs: pillar-mode
- Vim: vim-pillar
- TextMate: Pillar.tmbundle
- ATOM: language-pillar