On 2009-04-06, Olivier Ripoll wrote: > Just for fun, I've tried to make a module out of it. I am no LaTeX > expert at all, so I have issues and perhaps someone can clarify them to me:
> LaTeX complains about environment "Sbox" being undefined. I can work > around using "sbox" instead, but then, I still get plenty of errors. Is > Sbox different from sbox ? If so, should I add something to define it ? Generally, LaTeX commands are case sensitive, so \Sbox != \sbox. Normally you should just load the package where it is defined. > My second question is for layout module experts. I see two ways to put > the preamble part of the style in modules. One is to use "AddToPreamble" > like in "Braille" module, the other one is to put the latex code > directly in the style, with "Preamble" like in the "Hanging" module. The first will add the code to the preamble if the module is used, the second will do so only if the actual Style is used. > Which one should I use ? Both seem to give the same result. If it is needed in one Style only (and works this way), put it into the Style definition. If it is needed in several Styled of the moduel, put it into AddToPreamble. Günter
