darioteixeira / lambdoc

Lambdoc is a library providing support for semantically complex documents in Ocsigen web applications
GNU General Public License v2.0
17 stars 1 forks source link

confusion between block and inline extensions #26

Closed edwintorok closed 9 years ago

edwintorok commented 9 years ago

There is some confusion between block and inline extensions. The 5-extcomm-extension tutorial defines a block command called banner, that produces a Block.frag_t, but it actually accepts \banner{..} and not \begin{banner}...\end{banner} in lambtex. I guess you meant it the other way around and have \begin{banner}...\end{banner} for the block extension, right?

darioteixeira commented 9 years ago

Note that in Lambtex, block commands may actually be simple or environment commands (inline commands are always simple, which may be the source of your confusion). There is in fact already a number of built-in simple block commands in Lambtex, such as \paragraph and \picture.

edwintorok commented 9 years ago

Ah so block/inline refers to the output of the command and simple/environment refers to the lambtex input form.