On Thursday 17 January 2002 11:12, Juergen Vigna wrote: > > I'm glad that you ask this although you will be soon on vacations. > > #:O)
I hope you enjoy it. :-) > > For latex Standard can have two different meanings. Sometimes it acts > > as a paragraph, and sometimes as a place to put latex code. That is one > > of the > > For me "Standard" in LaTeX term means that I don't set any special Layout > I just leave the "Default" layout of the class I'm in. For me it really means that Standard is the Standard paragraph, for most of the documents this is the most used layout. > > For docbook I have attributed to Standard its usual role and that is > > paragraph -> <para>....</para> > > In what type of block do you put "Empty" Layout paragraphs? You have to > have a block or you don't? Some of the insets we have, can have a block property. For example it doesn't make sense to insert a TOC in a normal paragraph (docbook doesn't allow it), so the TOC inset must be inserted inside an Empty layout. Inside the floats for example, I can have any layout I want, but for example most of the time I just want a figure or a table, and I don't want them inside a paragraph (in some cases docbook doesn't allow them). > > This means that Empty != SGML, if you want the old SGML, you should use > > Empty+ERT. > > I could think that we could use this "Empty" or IMO "Dummy" would be better > for LaTeX too and it should also be in ALL textclasses AND it should be as > the "Standard" a fixed number (we can do this if we force this 2 Layout's > to be present in all text-classes!) That can be a property specified in the layout class, some kind of logical style paragraph instead of relying on the order. > > Using Juergen's notation Empty is my dummy paragraph. > > We would need this in LaTeX terms ONLY if we have only ERT-Insets in a > and it seems that it is the same for DocBook, ahh no you still have the > problem with the table-cells, but IMO this can't be solved as you want it > you have to solve this in the docBook() code. You have to ask if the > owner()->owner() of this paragraph is a tabular and then adapt your export > code to what you need. I know that, I use that technic to see if a table is or not inside a float, and it works. :-) The question is that we should be able to choose the layout I want to in each cell. Imagine that I want an itemized list inside a table, what is the problem with it? I should be able to do it. Does latex allows lists inside table cells? > So this leaves us with the question if we use the "Empty" mechanism ONLY > for paragrphs which contain only ERT inset's, then do we really need the > Empty layout? We could say: > > if (layout == "Standard" && we_only_contain_ERT_inset) > assume layout empty and only put the contents of the ERT inset out I don't want to assume that, as there cases where one or the other are valid choices. And to ignore Empty will only imply a load of hacks to fix all those particular cases. Not nice. > > I intend to provide better documentation so that the users are not > > taken by surprise with this behaviour. What is my problem then? > > Which user will read documentation, before he is surprised! :O) That is my point, the users will find that the documentation warns against that case, and ashamed will not complain. ;-) > > Inside tables I would like to be able to select between Standard and > > Empty, and by default I would like to have Empty. > > See above! I want really, really, really to have an Empty layout. > > So I would like to have that choice. Is that to ask too much? ;-) > > Yes, you always ask too much ;) Who? Me? ;-) > > Not enlightment, only troubles. :-) > > Well I hope I confused you completely now ;) So it seems that we are only ones not confused. ;-) > Jug -- José Abílio