-
Notifications
You must be signed in to change notification settings - Fork 10
The format
#The Lua Cookbook Text Format
We still have to pick one
Options, suggested in the Lua ML:
- Auto table of contents
- Auto index
- Part/Chapter/Section/Subsection etc
- Bold text
- Italic text
- Inline code
- Code blocks with highlighting
- Console sessions
- Footnotes
- Header / footer
- Auto page numbers
- Images
- Note, Warning, Caution, Tip
- Bullet lists
- Numbered lists
- Definition lists
- Quote/Quotation
- Story
Definitely we must have at least these formats as output:
- Set of HTML files, as in ProGit
- A PDF file
- ePub
mbalmer:
We should also think about the final output format. This could be html/css, ePub, PDF, or all of them.
Personally, I (mbalmer) prefer PDF and ePub, with table of contents etc.My (mbalmer) preferred source format is LaTeX. Don't how sensible it is to use mixed formats, i.e. I use LaTeX and you use XML. Maybe we need an > editor that edits all the text documents.
leafstorm:
Definitely in favor of Sphinx + reST. reStructuredText supports all those formatting things, and it can output to HTML, LaTeX, and ePub. (I put an example at https://gist.github.com/769988)
Also, Sphinx has a lot of useful features for books like table of contents, index, and the like that we would have to write ourselves if we used a custom pipeline.